Skip to content

Commit

Permalink
Test: restaure value for stock tests E2E
Browse files Browse the repository at this point in the history
  • Loading branch information
lomamech committed Apr 6, 2021
1 parent e0a8fd0 commit b22e4a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions test/end-to-end/stock/stock.inventories.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ function StockInventoriesRegistryTests() {
await filters.resetFilters();
});

it('find 0 inventory by state (security reached)', async () => {
await FU.radio('$ctrl.searchQueries.status', 0);
it('find 2 inventory by state (security reached)', async () => {
await FU.radio('$ctrl.searchQueries.status', 2);
await FU.modal.submit();
await GU.expectRowCount(gridId, 0);
await GU.expectRowCount(gridId, 2);

await filters.resetFilters();
});
Expand All @@ -77,7 +77,7 @@ function StockInventoriesRegistryTests() {
await FU.radio('$ctrl.searchQueries.status', 4);
await FU.modal.submit();

await GU.expectRowCount(gridId, 9);
await GU.expectRowCount(gridId, 8);
await filters.resetFilters();
});

Expand All @@ -89,10 +89,10 @@ function StockInventoriesRegistryTests() {
await filters.resetFilters();
});

it('find 0 inventories who requires a purchase order plus one line of grouping', async () => {
it('find 1 inventories who requires a purchase order plus one line of grouping', async () => {
await element(by.model('$ctrl.searchQueries.require_po')).click();
await FU.modal.submit();
await GU.expectRowCount(gridId, 0);
await GU.expectRowCount(gridId, 2);
await filters.resetFilters();
});
}
Expand Down
2 changes: 1 addition & 1 deletion test/end-to-end/stock/stock.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const StockInventoryAdjustement = require('./stock.z1.inventory-adjustment');
const StockSetting = require('./stock.setting');
const StockAggregateConsumptionTests = require('./stock.aggregate_consumption');

describe.only('Stock end-to-end test', () => {
describe('Stock end-to-end test', () => {
describe('Stock Aggregate ConsumptionTests', StockAggregateConsumptionTests);
describe('Stock Adjustment Test', StockAdjustmentTests);
describe('Stock Assign Module', StockAssignTests);
Expand Down

0 comments on commit b22e4a1

Please sign in to comment.