diff --git a/e2e/paths/09-invoice-out/04_globalInvoice.spec.js b/e2e/paths/09-invoice-out/04_globalInvoice.spec.js index 412ea8741..b62c889db 100644 --- a/e2e/paths/09-invoice-out/04_globalInvoice.spec.js +++ b/e2e/paths/09-invoice-out/04_globalInvoice.spec.js @@ -10,7 +10,7 @@ describe('InvoiceOut global invoice path', () => { page = browser.page; await page.loginAndModule('administrative', 'invoiceOut'); await page.waitToClick('[icon="search"]'); - await page.waitForTimeout(1000); + await page.waitForTimeout(1000); // index search needs time to return results }); afterAll(async() => { @@ -33,11 +33,8 @@ describe('InvoiceOut global invoice path', () => { it('should create a global invoice for charles xavier today', async() => { await page.pickDate(selectors.invoiceOutIndex.globalInvoiceDate); - await page.waitForTimeout(1000); await page.autocompleteSearch(selectors.invoiceOutIndex.globalInvoiceFromClient, 'Petter Parker'); - await page.waitForTimeout(1000); await page.autocompleteSearch(selectors.invoiceOutIndex.globalInvoiceToClient, 'Petter Parker'); - await page.waitForTimeout(1000); await page.waitToClick(selectors.invoiceOutIndex.saveInvoice); const message = await page.waitForSnackbar(); @@ -46,7 +43,7 @@ describe('InvoiceOut global invoice path', () => { it('should count the amount of invoices listed after globla invocing', async() => { await page.waitToClick('[icon="search"]'); - await page.waitForTimeout(1000); + await page.waitForTimeout(1000); // index search needs time to return results const currentInvoices = await page.countElement(selectors.invoiceOutIndex.searchResult); expect(currentInvoices).toBeGreaterThan(invoicesBefore);