fixtures to english changes + e2e amends
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2021-05-17 10:38:53 +02:00
parent bdcd05ee14
commit f0fbb13af8
5 changed files with 12 additions and 12 deletions

View File

@ -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

View File

@ -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();

View File

@ -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');

View File

@ -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();

View File

@ -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() => {