diff --git a/db/dump/fixtures.sql b/db/dump/fixtures.sql index 7239fb3b77..55d9623307 100644 --- a/db/dump/fixtures.sql +++ b/db/dump/fixtures.sql @@ -410,12 +410,12 @@ INSERT INTO `vn`.`clientObservation`(`id`, `clientFk`, `workerFk`, `text`, `crea INSERT INTO `vn`.`observationType`(`id`,`description`, `code`) VALUES - (1, 'Sacador', 'itemPicker'), - (2, 'Encajador', 'packager'), - (3, 'Repartidor', 'delivery'), - (4, 'Comercial', 'salesPerson'), - (5, 'Administración', 'administrative'), - (6, 'Peso Aduana', 'weight'); + (1, 'ItemPicker', 'itemPicker'), + (2, 'Packager', 'packager'), + (3, 'Delivery', 'delivery'), + (4, 'SalesPerson', 'salesPerson'), + (5, 'Administrative', 'administrative'), + (6, 'Weight', 'weight'); INSERT INTO `vn`.`addressObservation`(`id`,`addressFk`,`observationTypeFk`,`description`) VALUES 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 8c1f937491..8ed9a0f280 100644 --- a/e2e/paths/02-client/06_add_address_notes.spec.js +++ b/e2e/paths/02-client/06_add_address_notes.spec.js @@ -43,7 +43,7 @@ describe('Client add address notes path', () => { it('should create two new observations', async() => { await page.write(selectors.clientAddresses.firstObservationDescription, 'first description'); await page.waitToClick(selectors.clientAddresses.addObservationButton); - await page.autocompleteSearch(selectors.clientAddresses.secondObservationType, 'Sacador'); + await page.autocompleteSearch(selectors.clientAddresses.secondObservationType, 'ItemPicker'); await page.write(selectors.clientAddresses.secondObservationDescription, 'second description'); await page.waitToClick(selectors.clientAddresses.saveButton); const message = await page.waitForSnackbar(); diff --git a/e2e/paths/05-ticket/01_observations.spec.js b/e2e/paths/05-ticket/01_observations.spec.js index ec00a7122c..45b4ebb3ea 100644 --- a/e2e/paths/05-ticket/01_observations.spec.js +++ b/e2e/paths/05-ticket/01_observations.spec.js @@ -19,7 +19,7 @@ describe('Ticket Create notes path', () => { it('should create a new note', async() => { await page.waitToClick(selectors.ticketNotes.addNoteButton); - await page.autocompleteSearch(selectors.ticketNotes.firstNoteType, 'sacador'); + await page.autocompleteSearch(selectors.ticketNotes.firstNoteType, 'ItemPicker'); await page.write(selectors.ticketNotes.firstDescription, 'description'); await page.waitToClick(selectors.ticketNotes.submitNotesButton); const message = await page.waitForSnackbar(); @@ -32,7 +32,7 @@ describe('Ticket Create notes path', () => { const result = await page .waitToGetProperty(selectors.ticketNotes.firstNoteType, 'value'); - expect(result).toEqual('Sacador'); + expect(result).toEqual('ItemPicker'); const firstDescription = await page .waitToGetProperty(selectors.ticketNotes.firstDescription, 'value'); diff --git a/e2e/paths/05-ticket/17_log.spec.js b/e2e/paths/05-ticket/17_log.spec.js index a37a3f3072..399eb647b5 100644 --- a/e2e/paths/05-ticket/17_log.spec.js +++ b/e2e/paths/05-ticket/17_log.spec.js @@ -24,7 +24,7 @@ describe('Ticket log path', () => { it('should create a new note for the test', async() => { await page.waitToClick(selectors.ticketNotes.addNoteButton); - await page.autocompleteSearch(selectors.ticketNotes.firstNoteType, 'Sacador'); + await page.autocompleteSearch(selectors.ticketNotes.firstNoteType, 'ItemPicker'); await page.write(selectors.ticketNotes.firstDescription, 'description'); await page.waitToClick(selectors.ticketNotes.submitNotesButton); 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 f2dd93a034..b1a9f268af 100644 --- a/e2e/paths/12-entry/06_observations.spec.js +++ b/e2e/paths/12-entry/06_observations.spec.js @@ -31,7 +31,7 @@ describe('Entry observations path', () => { }); it('should set the 2nd observation of a different one and successfully save both', async() => { - await page.autocompleteSearch(selectors.entryObservations.secondObservationType, 'repartidor'); + await page.autocompleteSearch(selectors.entryObservations.secondObservationType, 'Delivery'); await page.waitToClick(selectors.entryObservations.saveObservationsButton); const message = await page.waitForSnackbar(); @@ -54,7 +54,7 @@ describe('Entry observations path', () => { it('should make sure the second observation type was saved correctly', async() => { const result = await page.waitToGetProperty(selectors.entryObservations.secondObservationType, 'value'); - expect(result).toEqual('Repartidor'); + expect(result).toEqual('Delivery'); }); it('should make sure the second observation description was saved correctly', async() => {