Skip to content
Snippets Groups Projects
Commit e2ee7ca6 authored by mathias.chouet's avatar mathias.chouet
Browse files

Update e2e tests for Jet and Grille

parent 04fad2fd
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ describe("ngHyd − calculate all parameters of all calculators", () => {
});
// get calculators list (IDs) @TODO read it from config !
const calcTypes = [ 0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 15, 17 ];
const calcTypes = [ 0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 15, 17, 18, 19 ];
// for each calculator
for (const ct of calcTypes) {
......@@ -28,14 +28,6 @@ describe("ngHyd − calculate all parameters of all calculators", () => {
// go to list page
await listPage.navigateTo();
// special case for PAB: create a Cloisons and an Ouvrages before
if (ct === 15) {
await listPage.clickMenuEntryForCalcType(8);
await navBar.clickNewCalculatorButton();
await listPage.clickMenuEntryForCalcType(10);
await navBar.clickNewCalculatorButton();
}
// click calculator button (instanciate)
await listPage.clickMenuEntryForCalcType(ct);
// get all parameters IDs
......
......@@ -104,6 +104,8 @@ export class CalculatorPage {
await element(by.css("pab-results pab-results-table")).isPresent()
||
await element(by.css("macrorugo-compound-results macrorugo-compound-results-table")).isPresent()
||
await element(by.css("jet-results .fixed-results-container")).isPresent()
);
}
......
......@@ -18,7 +18,7 @@ describe("ngHyd − clone all calculators with all possible <select> values", ()
});
// get calculators list (IDs) @TODO read it from config !
const calcTypes = [ 0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 15, 17 ];
const calcTypes = [ 0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 15, 17, 18, 19 ];
// for each calculator
for (const ct of calcTypes) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment