diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js index 28263f2eb..46292a170 100644 --- a/e2e/helpers/selectors.js +++ b/e2e/helpers/selectors.js @@ -796,7 +796,7 @@ export default { undoChanges: 'vn-travel-basic-data vn-button[label="Undo changes"]' }, travelLog: { - firstLogFistTD: 'vn-travel-log vn-tbody > vn-tr > vn-td:nth-child(1) > div' + firstLogFirstTD: 'vn-travel-log vn-tbody > vn-tr > vn-td:nth-child(1) > div' }, travelThermograph: { add: 'vn-travel-thermograph-index vn-float-button[icon="add"]', diff --git a/e2e/paths/10-travel/02_basic_data_and_log.spec.js b/e2e/paths/10-travel/02_basic_data_and_log.spec.js index 491882f5e..20e0c0ac5 100644 --- a/e2e/paths/10-travel/02_basic_data_and_log.spec.js +++ b/e2e/paths/10-travel/02_basic_data_and_log.spec.js @@ -42,9 +42,7 @@ describe('Travel basic data path', () => { it('should now edit the whole form then save', async() => { await page.clearInput(selectors.travelBasicDada.reference); await page.write(selectors.travelBasicDada.reference, 'new reference!'); - await page.autocompleteSearch(selectors.travelBasicDada.agency, 'Quantum break device'); - await page.datePicker(selectors.travelBasicDada.shippingDate, -1, null); - await page.datePicker(selectors.travelBasicDada.deliveryDate, 1, null); + await page.autocompleteSearch(selectors.travelBasicDada.agency, 'Entanglement'); await page.autocompleteSearch(selectors.travelBasicDada.outputWarehouse, 'Warehouse Three'); await page.autocompleteSearch(selectors.travelBasicDada.inputWarehouse, 'Warehouse Four'); await page.waitToClick(selectors.travelBasicDada.delivered); @@ -65,7 +63,7 @@ describe('Travel basic data path', () => { it('should check the agency was saved', async() => { const result = await page.waitToGetProperty(selectors.travelBasicDada.agency, 'value'); - expect(result).toEqual('Quantum break device'); + expect(result).toEqual('Entanglement'); }); it('should check the output warehouse date was saved', async() => { @@ -96,7 +94,7 @@ describe('Travel basic data path', () => { }); it('should check the 1st log contains details from the changes made', async() => { - const result = await page.waitToGetProperty(selectors.travelLog.firstLogFistTD, 'innerText'); + const result = await page.waitToGetProperty(selectors.travelLog.firstLogFirstTD, 'innerText'); expect(result).toContain('new reference!'); });