Skip to content
Snippets Groups Projects
Commit 13153718 authored by François Grand's avatar François Grand
Browse files

test(e2e): check section select default value from calculator configuration is honored

refs #483
parent 285aad67
No related branches found
No related tags found
2 merge requests!225Release v4.17.0,!176Resolve "Fusionner les "select" avec "source" et les "select_custom""
Pipeline #139936 passed
......@@ -35,8 +35,21 @@ describe("check the select default value - ", () => {
// in the calculator configuration file, the default resolution method is 'Trapezes'.
// let's check this...
const sel_section = calcPage.getSelectById("select_resolution");
const val = await calcPage.getSelectValueText(sel_section);
const sel = calcPage.getSelectById("select_resolution");
const val = await calcPage.getSelectValueText(sel);
expect(val).toBe("Intégration par trapèzes");
});
it("in the 'up/downstream elevations of a reach' calculator", async () => {
// open "up/downstream elevations of a reach" calculator
await navBar.clickNewCalculatorButton();
await listPage.clickMenuEntryForCalcType(21);
await browser.sleep(200);
// in the calculator configuration file, the default section method is 'Rectangulaire'.
// let's check this...
const sel = calcPage.getSelectById("select_section");
const val = await calcPage.getSelectValueText(sel);
expect(val).toBe("Rectangulaire");
});
});
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