From 8b4d25d506f5d9f6404f94d949e79dc38a3046e1 Mon Sep 17 00:00:00 2001 From: jgallego Date: Fri, 2 Oct 2020 08:57:51 +0200 Subject: [PATCH] test arreglados windows --- e2e/paths/04-item/09_regularize.spec.js | 2 +- e2e/paths/05-ticket/14_create_ticket.spec.js | 1 + e2e/paths/12-entry/04_create.spec.js | 7 +++---- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/e2e/paths/04-item/09_regularize.spec.js b/e2e/paths/04-item/09_regularize.spec.js index 6b39ed361..fdb1e0184 100644 --- a/e2e/paths/04-item/09_regularize.spec.js +++ b/e2e/paths/04-item/09_regularize.spec.js @@ -1,7 +1,7 @@ import selectors from '../../helpers/selectors.js'; import getBrowser from '../../helpers/puppeteer'; -fdescribe('Item regularize path', () => { +describe('Item regularize path', () => { let browser; let page; beforeAll(async() => { diff --git a/e2e/paths/05-ticket/14_create_ticket.spec.js b/e2e/paths/05-ticket/14_create_ticket.spec.js index 26c22ad3d..496cac161 100644 --- a/e2e/paths/05-ticket/14_create_ticket.spec.js +++ b/e2e/paths/05-ticket/14_create_ticket.spec.js @@ -42,6 +42,7 @@ describe('Ticket create path', () => { it('should again open the new ticket form', async() => { await page.waitToClick(selectors.globalItems.returnToModuleIndexButton); + await page.waitFor(500); await page.waitToClick(selectors.ticketsIndex.newTicketButton); await page.waitForState('ticket.create'); }); diff --git a/e2e/paths/12-entry/04_create.spec.js b/e2e/paths/12-entry/04_create.spec.js index 90dac618a..8cf23813b 100644 --- a/e2e/paths/12-entry/04_create.spec.js +++ b/e2e/paths/12-entry/04_create.spec.js @@ -20,14 +20,13 @@ describe('Entry create path', () => { await page.waitForState('entry.create'); }); - it('should fill the form to create a valid entry', async() => { + it('should fill the form to create a valid entry then redirect to basic Data', async() => { await page.autocompleteSearch(selectors.entryIndex.newEntrySupplier, '2'); await page.autocompleteSearch(selectors.entryIndex.newEntryTravel, 'Warehouse Three'); await page.autocompleteSearch(selectors.entryIndex.newEntryCompany, 'ORN'); - await page.waitToClick(selectors.entryIndex.saveNewEntry); - }); - it('should be redirected to entry basic data', async() => { + await page.waitToClick(selectors.entryIndex.saveNewEntry); + await page.waitFor(500); await page.waitForState('entry.card.basicData'); }); });