From e68453c0478acd1e6684b2b7f468fc7c9655d6ae Mon Sep 17 00:00:00 2001 From: bernat Date: Mon, 2 Nov 2020 08:26:53 +0100 Subject: [PATCH] fix test --- e2e/paths/02-client/05_add_address.spec.js | 6 +++--- e2e/paths/07-order/01_summary.spec.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/e2e/paths/02-client/05_add_address.spec.js b/e2e/paths/02-client/05_add_address.spec.js index d7fa9a8d7..bade51718 100644 --- a/e2e/paths/02-client/05_add_address.spec.js +++ b/e2e/paths/02-client/05_add_address.spec.js @@ -95,14 +95,14 @@ describe('Client Add address path', () => { }); it(`should confirm the default address is the expected one`, async() => { - await page.waitForTextInElement(selectors.clientAddresses.defaultAddress, 'Somewhere in Thailand'); + await page.waitForTextInElement(selectors.clientAddresses.defaultAddress, 'somewhere in new york'); const result = await page.waitToGetProperty(selectors.clientAddresses.defaultAddress, 'innerText'); - expect(result).toContain('Somewhere in Thailand'); + expect(result).toContain('Somewhere in New York'); }); it(`should click on the edit icon of the default address`, async() => { - await page.waitForTextInElement(selectors.clientAddresses.defaultAddress, 'Somewhere in Thailand'); + await page.waitForTextInElement(selectors.clientAddresses.defaultAddress, 'somewhere in new york'); await page.waitToClick(selectors.clientAddresses.firstEditAddress); await page.waitForState('client.card.address.edit'); }); diff --git a/e2e/paths/07-order/01_summary.spec.js b/e2e/paths/07-order/01_summary.spec.js index d170f290e..f21015c52 100644 --- a/e2e/paths/07-order/01_summary.spec.js +++ b/e2e/paths/07-order/01_summary.spec.js @@ -29,13 +29,13 @@ describe('Order summary path', () => { it('should check the summary contains the order alias', async() => { const result = await page.waitToGetProperty(selectors.orderSummary.alias, 'innerText'); - expect(result).toEqual('address 26'); + expect(result).toEqual('Many places'); }); it('should check the summary contains the order consignee', async() => { const result = await page.waitToGetProperty(selectors.orderSummary.consignee, 'innerText'); - expect(result).toEqual('Many places - Silla (Province one)'); + expect(result).toEqual('address 26 - Silla (Province one)'); }); it('should check the summary contains the order subtotal', async() => {