From 54d75e0e54f982c321445524f09ca7674c26e663 Mon Sep 17 00:00:00 2001 From: carlosjr Date: Mon, 17 May 2021 11:08:00 +0200 Subject: [PATCH] e2e amends for salesPerson --- e2e/paths/02-client/06_add_address_notes.spec.js | 2 +- e2e/paths/12-entry/06_observations.spec.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/e2e/paths/02-client/06_add_address_notes.spec.js b/e2e/paths/02-client/06_add_address_notes.spec.js index 8ed9a0f28..c6837cc38 100644 --- a/e2e/paths/02-client/06_add_address_notes.spec.js +++ b/e2e/paths/02-client/06_add_address_notes.spec.js @@ -33,7 +33,7 @@ describe('Client add address notes path', () => { it('should not save an observation type without description', async() => { await page.clearInput(selectors.clientAddresses.firstObservationDescription); - await page.autocompleteSearch(selectors.clientAddresses.firstObservationType, 'comercial'); + await page.autocompleteSearch(selectors.clientAddresses.firstObservationType, 'SalesPerson'); await page.waitToClick(selectors.clientAddresses.saveButton); const message = await page.waitForSnackbar(); diff --git a/e2e/paths/12-entry/06_observations.spec.js b/e2e/paths/12-entry/06_observations.spec.js index b1a9f268a..c686d999a 100644 --- a/e2e/paths/12-entry/06_observations.spec.js +++ b/e2e/paths/12-entry/06_observations.spec.js @@ -20,8 +20,8 @@ describe('Entry observations path', () => { it(`should add two new observations of the same type then fail to save as they can't be repeated`, async() => { await page.waitToClick(selectors.entryObservations.addNewObservation); await page.waitToClick(selectors.entryObservations.addNewObservation); - await page.autocompleteSearch(selectors.entryObservations.firstObservationType, 'comercial'); - await page.autocompleteSearch(selectors.entryObservations.secondObservationType, 'comercial'); + await page.autocompleteSearch(selectors.entryObservations.firstObservationType, 'SalesPerson'); + await page.autocompleteSearch(selectors.entryObservations.secondObservationType, 'SalesPerson'); await page.write(selectors.entryObservations.firstObservationDescription, 'first observation'); await page.write(selectors.entryObservations.secondObservationDescription, 'second observation'); await page.waitToClick(selectors.entryObservations.saveObservationsButton); @@ -42,7 +42,7 @@ describe('Entry observations path', () => { await page.reloadSection('entry.card.observation'); const result = await page.waitToGetProperty(selectors.entryObservations.firstObservationType, 'value'); - expect(result).toEqual('Comercial'); + expect(result).toEqual('SalesPerson'); }); it('should make sure the first observation description was saved correctly', async() => {