From e67569b9abb14a82596961cf8e03badadb72de21 Mon Sep 17 00:00:00 2001 From: Jonathan Niles Date: Wed, 3 Feb 2021 09:09:00 +0100 Subject: [PATCH] fix(fiscal): use correct FYs in E2E tests Updates the fiscal years for 2021. --- test/end-to-end/fiscalYears/fiscalYears.spec.js | 4 ++-- test/end-to-end/rubricsConfig/rubrics_config.spec.js | 2 +- test/end-to-end/stock/stock.inventories.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/end-to-end/fiscalYears/fiscalYears.spec.js b/test/end-to-end/fiscalYears/fiscalYears.spec.js index 45f1b973e2..c0527842fc 100644 --- a/test/end-to-end/fiscalYears/fiscalYears.spec.js +++ b/test/end-to-end/fiscalYears/fiscalYears.spec.js @@ -13,7 +13,7 @@ describe('Fiscal Year', () => { const fiscalYear = { label : 'A Special Fiscal Year', note : 'Note for the new fiscal Year', - previous : '2019', + previous : '2020', }; it('blocks invalid form submission with relevant error classes', async () => { @@ -39,7 +39,7 @@ describe('Fiscal Year', () => { await FU.input('FiscalManageCtrl.fiscal.label', fiscalYear.label); // select the proper date - await components.dateInterval.range('01/01/2021', '31/12/2021'); + await components.dateInterval.range('01/01/2022', '31/12/2022'); await FU.select('FiscalManageCtrl.fiscal.previous_fiscal_year_id', fiscalYear.previous); await FU.input('FiscalManageCtrl.fiscal.note', fiscalYear.note); await FU.buttons.submit(); diff --git a/test/end-to-end/rubricsConfig/rubrics_config.spec.js b/test/end-to-end/rubricsConfig/rubrics_config.spec.js index 0a3b103f37..ab2c81fbfd 100644 --- a/test/end-to-end/rubricsConfig/rubrics_config.spec.js +++ b/test/end-to-end/rubricsConfig/rubrics_config.spec.js @@ -39,7 +39,7 @@ describe('Rubrics Configuration Management', () => { await page.remove(updateRubricConfig.label); }); - it('should have 1 rubric to end with', async () => { + it('should have 2 rubrics to end with', async () => { expect(await page.count()).to.equal(2); }); }); diff --git a/test/end-to-end/stock/stock.inventories.js b/test/end-to-end/stock/stock.inventories.js index 19a0ef5a4a..bc8be48cdf 100644 --- a/test/end-to-end/stock/stock.inventories.js +++ b/test/end-to-end/stock/stock.inventories.js @@ -28,7 +28,7 @@ function StockInventoriesRegistryTests() { await GU.expectRowCount(gridId, 2 + depotGroupingRow); }); - it('find 3 inventory in Depot Principal plus one line for the Grouping', async () => { + it('find 5 inventory in Depot Principal plus one line for the Grouping', async () => { await modal.setDepot('Depot Principal'); await modal.submit(); await GU.expectRowCount(gridId, 5 + depotGroupingRow);