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

test(e2e): canal critical slope example: check solver selected searched...

test(e2e): canal critical slope example: check solver selected searched parameter is set to bottom slope

refs #555
parent ba84d775
No related branches found
No related tags found
1 merge request!164Resolve "Solveur: le paramètre recherché n'est pas conservé"
......@@ -170,4 +170,20 @@ describe("Solveur - ", () => {
// check "search parameter" value has not changed
expect(await calcPage.getSelectValueText(sel)).toEqual(selText);
});
it("check solver searched parameter is set to 'bottom slope'", async () => {
// open "canal critical slope" example
const examples = await element.all(by.css("#examples-list .load-example"));
await examples[3].click();
await browser.sleep(500);
// select solver tab
await navbar.clickCalculatorTab(2);
await browser.sleep(500);
// check selected searched parameter text
const sel = calcPage.getSelectById("select_searched_param");
const selText = await calcPage.getSelectValueText(sel);
expect(selText).toEqual("If - Pente du fond (Sec. param.)");
});
});
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