From af1ad7e08c7ca51bc65c017f1e5c973f44bcb199 Mon Sep 17 00:00:00 2001 From: alexandre Date: Fri, 21 Apr 2023 09:47:34 +0200 Subject: [PATCH] fixed e2e --- .../05_negative_bases.spec.js | 8 ++++---- modules/invoiceOut/front/routes.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) rename e2e/paths/{09-invoice-in => 09-invoice-out}/05_negative_bases.spec.js (70%) diff --git a/e2e/paths/09-invoice-in/05_negative_bases.spec.js b/e2e/paths/09-invoice-out/05_negative_bases.spec.js similarity index 70% rename from e2e/paths/09-invoice-in/05_negative_bases.spec.js rename to e2e/paths/09-invoice-out/05_negative_bases.spec.js index 4c9fe651f..43ced2115 100644 --- a/e2e/paths/09-invoice-in/05_negative_bases.spec.js +++ b/e2e/paths/09-invoice-out/05_negative_bases.spec.js @@ -1,6 +1,6 @@ import getBrowser from '../../helpers/puppeteer'; -describe('InvoiceIn negative bases path', () => { +describe('InvoiceOut negative bases path', () => { let browser; let page; const httpRequests = []; @@ -9,11 +9,11 @@ describe('InvoiceIn negative bases path', () => { browser = await getBrowser(); page = browser.page; page.on('request', req => { - if (req.url().includes(`InvoiceIns/negativeBases`)) + if (req.url().includes(`InvoiceOuts/negativeBases`)) httpRequests.push(req.url()); }); - await page.loginAndModule('administrative', 'invoiceIn'); - await page.accessToSection('invoiceIn.negative-bases'); + await page.loginAndModule('administrative', 'invoiceOut'); + await page.accessToSection('invoiceOut.negative-bases'); }); afterAll(async() => { diff --git a/modules/invoiceOut/front/routes.json b/modules/invoiceOut/front/routes.json index 7965a7e99..f7f589b01 100644 --- a/modules/invoiceOut/front/routes.json +++ b/modules/invoiceOut/front/routes.json @@ -55,6 +55,6 @@ "acl": [ "administrative" ] - }, + } ] }