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

test(e2e): check that input empty in empty fields mode when modifying the target module

refs #601
parent fa7fd1b6
No related branches found
No related tags found
2 merge requests!225Release v4.17.0,!203Resolve "Solveur multimodule: le module existe toujours après suppression"
......@@ -375,4 +375,34 @@ describe("Solveur - nghyd#601 without empty fields option", () => {
await calcPage.checkEmptyInput("Xinit", false);
await browser.sleep(200);
});
it(" with empty fields option, check selecting a target module does not fill inputs", async () => {
// disable evil option "empty fields on module creation"
await prefPage.setEmptyFields(false);
await browser.sleep(200);
await navBar.clickNewCalculatorButton();
await browser.sleep(200);
// open "channel flow with hydraulic structures" example
const examples = await element.all(by.css("#examples-list .load-example"));
await examples[1].click();
await browser.sleep(500);
// close existing "solver" calculator
await navBar.middleClickCalculatorTab(3);
await browser.sleep(500);
// open new solver calculator
await openSolver();
await browser.sleep(500);
// select other target module
const ntc = calcPage.getSelectById("select_target_nub");
await calcPage.changeSelectValue(ntc, 1);
// check target value input is empty
await calcPage.checkEmptyInput("Ytarget", true);
await browser.sleep(200);
});
});
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