Skip to content

Commit

Permalink
fix(fiscal): use correct FYs in E2E tests
Browse files Browse the repository at this point in the history
Updates the fiscal years for 2021.
  • Loading branch information
jniles committed Apr 12, 2021
1 parent 776380e commit e67569b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/end-to-end/fiscalYears/fiscalYears.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion test/end-to-end/rubricsConfig/rubrics_config.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
2 changes: 1 addition & 1 deletion test/end-to-end/stock/stock.inventories.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e67569b

Please sign in to comment.