diff --git a/test/data.sql b/test/data.sql index 113b3c574e..bb79a25d03 100644 --- a/test/data.sql +++ b/test/data.sql @@ -179,7 +179,7 @@ INSERT INTO permission (unit_id, user_id) VALUES -- [Folder] reports/aged_debtors: The Report Aged Debtors (151,1), --- [Folder] Cashflow report: +-- [Folder] Cashflow report: (145,1), -- [Folder] reports/account_reports: The Report accounts diff --git a/test/end-to-end/shared/components/bhDepotSelect.js b/test/end-to-end/shared/components/bhDepotSelect.js index 4bfb6a6254..cb4fafac83 100644 --- a/test/end-to-end/shared/components/bhDepotSelect.js +++ b/test/end-to-end/shared/components/bhDepotSelect.js @@ -5,11 +5,7 @@ const FU = require('../FormUtils'); module.exports = { selector : '[bh-depot-select]', set : function set(depot, id) { - const locator = (id) ? by.id(id) : by.css(this.selector); - const target = element(locator); - - target.click(); - - FU.dropdown('$ctrl.depotUuid', depot, target); + const anchor = id ? element(by.id(id)) : $('body'); + FU.uiSelect('$ctrl.depotUuid', depot, anchor); }, }; diff --git a/test/end-to-end/shared/search.page.js b/test/end-to-end/shared/search.page.js index 90c7ac6ce9..23ffa18c61 100644 --- a/test/end-to-end/shared/search.page.js +++ b/test/end-to-end/shared/search.page.js @@ -82,11 +82,11 @@ class SearchModal { FU.input('$ctrl.searchQueries.description', description, this.element); } - setEntryExit (value) { + setEntryExit(value) { FU.radio('$ctrl.searchQueries.is_exit', value); } - setMovementReason (reason) { + setMovementReason(reason) { FU.uiSelect('$ctrl.searchQueries.flux_id', reason); } @@ -122,11 +122,11 @@ class SearchModal { bhSupplierSelect.set(supplier); } - setDepot (depot){ + setDepot(depot) { bhDepotSelect.set(depot); } - setInventory (inventory){ + setInventory(inventory) { bhInventorySelect.set(inventory); } @@ -134,7 +134,7 @@ class SearchModal { FU.input('$ctrl.searchQueries.label', label, this.element); } - setdateInterval (dateFrom, dateTo, id) { + setdateInterval(dateFrom, dateTo, id) { bhDateInterval.range(dateFrom, dateTo, id); } diff --git a/test/end-to-end/stock/stock.entry.spec.js b/test/end-to-end/stock/stock.entry.spec.js index 878eb96f6b..84f9217e59 100644 --- a/test/end-to-end/stock/stock.entry.spec.js +++ b/test/end-to-end/stock/stock.entry.spec.js @@ -3,7 +3,7 @@ const EntryPage = require('./stock.entry.page'); function StockEntryTests() { const DEPOT_PRINCIPAL = 'Depot Principal'; - const DEPOT_SECONDAIRE = 'Depot Secondaire'; + const DEPOT_SECONDAIRE = 'Second'; const DESCRIPTION = 'Entree de stock'; // the page object diff --git a/test/end-to-end/stock/stock.lots.spec.js b/test/end-to-end/stock/stock.lots.spec.js index abada129ad..14dfa34cb6 100644 --- a/test/end-to-end/stock/stock.lots.spec.js +++ b/test/end-to-end/stock/stock.lots.spec.js @@ -27,7 +27,7 @@ function StockLotsRegistryTests() { const LOT_FOR_ALLTIME = 16; const LOT_FOR_TODAY = 10; const LOT_FOR_LAST_YEAR = 16; - + it(`finds ${LOT_FOR_TODAY} lot for today`, () => { modal.switchToDefaultFilterTab(); @@ -51,6 +51,7 @@ function StockLotsRegistryTests() { }); it('find lots in depot principal', () => { + browser.debugger(); modal.setDepot('Depot Principal'); modal.submit(); GU.expectRowCount(gridId, 8 + depotGroupingRow);