added waitForTimeout to e2e for the autocompleted fields
This commit is contained in:
parent
3f74b52049
commit
d164cb1c2c
|
@ -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');
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue