From 55b3a048e7bcc7cd3e61bdb3ddf308fb45371c18 Mon Sep 17 00:00:00 2001 From: joan Date: Wed, 14 Apr 2021 08:49:10 +0200 Subject: [PATCH] Updated E2E --- e2e/paths/02-client/01_create_client.spec.js | 2 +- e2e/paths/02-client/02_edit_basic_data.spec.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/paths/02-client/01_create_client.spec.js b/e2e/paths/02-client/01_create_client.spec.js index 4cb3c67ab..ae002b0ea 100644 --- a/e2e/paths/02-client/01_create_client.spec.js +++ b/e2e/paths/02-client/01_create_client.spec.js @@ -31,7 +31,7 @@ describe('Client create path', () => { await page.write(selectors.createClientView.taxNumber, '74451390E'); await page.write(selectors.createClientView.userName, 'CaptainMarvel'); await page.write(selectors.createClientView.email, 'CarolDanvers@verdnatura.es'); - await page.autocompleteSearch(selectors.createClientView.salesPerson, 'replenisher'); + await page.autocompleteSearch(selectors.createClientView.salesPerson, 'salesPerson'); await page.waitToClick(selectors.createClientView.createButton); const message = await page.waitForSnackbar(); diff --git a/e2e/paths/02-client/02_edit_basic_data.spec.js b/e2e/paths/02-client/02_edit_basic_data.spec.js index 6f331fb23..d770e7523 100644 --- a/e2e/paths/02-client/02_edit_basic_data.spec.js +++ b/e2e/paths/02-client/02_edit_basic_data.spec.js @@ -96,7 +96,7 @@ describe('Client Edit basicData path', () => { await page.write(selectors.clientBasicData.phone, '333333333'); await page.clearInput(selectors.clientBasicData.mobile); await page.write(selectors.clientBasicData.mobile, '444444444'); - await page.autocompleteSearch(selectors.clientBasicData.salesPerson, 'replenisherNick'); + await page.autocompleteSearch(selectors.clientBasicData.salesPerson, 'salesPerson'); await page.autocompleteSearch(selectors.clientBasicData.channel, 'Metropolis newspaper'); await page.waitToClick(selectors.clientBasicData.saveButton); const message = await page.waitForSnackbar(); @@ -143,7 +143,7 @@ describe('Client Edit basicData path', () => { const result = await page .waitToGetProperty(selectors.clientBasicData.salesPerson, 'value'); - expect(result).toEqual('replenisherNick'); + expect(result).toEqual('salesPersonNick'); }); it('should now confirm the channel have been selected', async() => {