From bbbf0080768b05eee9142fb6e6c6c0965a01ccc1 Mon Sep 17 00:00:00 2001 From: joan Date: Thu, 17 Jun 2021 16:09:17 +0200 Subject: [PATCH 1/2] Added done() to async beforeAll() --- modules/ticket/back/methods/ticket/specs/makeInvoice.spec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ticket/back/methods/ticket/specs/makeInvoice.spec.js b/modules/ticket/back/methods/ticket/specs/makeInvoice.spec.js index e20d9d8a2..32c769ca4 100644 --- a/modules/ticket/back/methods/ticket/specs/makeInvoice.spec.js +++ b/modules/ticket/back/methods/ticket/specs/makeInvoice.spec.js @@ -17,6 +17,8 @@ describe('ticket makeInvoice()', () => { spyOn(LoopBackContext, 'getCurrentContext').and.returnValue({ active: activeCtx }); + + done(); }); afterAll(async done => { From 27240339092e89c3171953add14f898a0dae6224 Mon Sep 17 00:00:00 2001 From: carlosjr Date: Thu, 17 Jun 2021 16:17:18 +0200 Subject: [PATCH 2/2] added a waitForTimeout to allow descriptor component to load --- e2e/paths/10-travel/03_descriptor.spec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/e2e/paths/10-travel/03_descriptor.spec.js b/e2e/paths/10-travel/03_descriptor.spec.js index f3d573b9b..d7d38c7af 100644 --- a/e2e/paths/10-travel/03_descriptor.spec.js +++ b/e2e/paths/10-travel/03_descriptor.spec.js @@ -1,7 +1,7 @@ import selectors from '../../helpers/selectors.js'; import getBrowser from '../../helpers/puppeteer'; -// Tarea #2972 -xdescribe('Travel descriptor path', () => { + +describe('Travel descriptor path', () => { let browser; let page; @@ -136,6 +136,7 @@ xdescribe('Travel descriptor path', () => { it('should navigate to the summary and then clone the travel and its entries using the descriptor menu to get redirected to the cloned travel basic data', async() => { await page.waitToClick('vn-icon[icon="preview"]'); // summary icon await page.waitForState('travel.card.summary'); + await page.waitForTimeout(1000); await page.waitToClick(selectors.travelDescriptor.dotMenu); await page.waitToClick(selectors.travelDescriptor.dotMenuCloneWithEntries); await page.waitToClick(selectors.travelDescriptor.acceptClonation);