From 262e0cd44708b0ac57978b4ca2f85c961fba7004 Mon Sep 17 00:00:00 2001 From: Carlos Jimenez Ruiz Date: Thu, 27 Feb 2020 10:58:58 +0100 Subject: [PATCH] fix --- e2e/paths/02-client/05_add_address.spec.js | 4 ++-- e2e/paths/05-ticket/10_request.spec.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/paths/02-client/05_add_address.spec.js b/e2e/paths/02-client/05_add_address.spec.js index e8c6120f8..737d6b05b 100644 --- a/e2e/paths/02-client/05_add_address.spec.js +++ b/e2e/paths/02-client/05_add_address.spec.js @@ -70,13 +70,13 @@ describe('Client Add address path', () => { }); it(`should confirm the new address exists and it's the default one`, async() => { + await page.waitFor(2000); // needs more than a single second to load the section const result = await page.waitToGetProperty(selectors.clientAddresses.defaultAddress, 'innerText'); expect(result).toContain('320 Park Avenue New York'); }); - it(`should click on the make default icon of the second address`, async() => { - await page.waitForContentLoaded(); + it('should click on the make default icon of the second address', async() => { await page.waitToClick(selectors.clientAddresses.secondMakeDefaultStar); const result = await page.waitForLastSnackbar(); diff --git a/e2e/paths/05-ticket/10_request.spec.js b/e2e/paths/05-ticket/10_request.spec.js index fd4231809..737d69048 100644 --- a/e2e/paths/05-ticket/10_request.spec.js +++ b/e2e/paths/05-ticket/10_request.spec.js @@ -36,7 +36,7 @@ describe('Ticket purchase request path', () => { }); it(`should edit the third request quantity as it's state is still new`, async() => { - await page.waitForContentLoaded(); + await page.waitFor(2000); // looks like it needs more than a single second some times to load await page.write(selectors.ticketRequests.thirdRequestQuantity, '9'); await page.keyboard.press('Enter'); const result = await page.waitForLastSnackbar();