diff --git a/e2e/paths/10-travel/01_create.spec.js b/e2e/paths/10-travel/01_create.spec.js index 6f5956377..e5d812ebd 100644 --- a/e2e/paths/10-travel/01_create.spec.js +++ b/e2e/paths/10-travel/01_create.spec.js @@ -26,7 +26,8 @@ describe('Travel create path', () => { it('should fill the reference, agency and ship date then save the form', async() => { await page.write(selectors.travelIndex.reference, 'Testing reference'); await page.autocompleteSearch(selectors.travelIndex.agency, 'inhouse pickup'); - await page.pickDate(selectors.travelIndex.shipDate, date); + await page.pickDate(selectors.travelIndex.shipDate, date); // this line autocompletes another 3 fields + await page.waitForTimeout(1000); await page.waitToClick(selectors.travelIndex.save); const message = await page.waitForSnackbar(); @@ -35,8 +36,6 @@ describe('Travel create path', () => { }); it('should check the user was redirected to the travel basic data upon creation', async() => { - // backup code for further intermitences still on track. - // await page.screenshot({path: 'e2e/paths/10-travel/error.jpeg', type: 'jpeg'}); await page.waitForState('travel.card.basicData'); });