Skip to content
Snippets Groups Projects
Commit 3d0b3067 authored by Dorchies David's avatar Dorchies David
Browse files

Merge branch '606-solveur-multimodule-impossibilite-d-utilisation-sur-un-seul-module' into 'devel'

Resolve "Solveur multimodule: impossibilité d'utilisation sur un seul module"

Closes #606

See merge request !214
parents 74c412cd 3b07b658
No related branches found
No related tags found
2 merge requests!225Release v4.17.0,!214Resolve "Solveur multimodule: impossibilité d'utilisation sur un seul module"
Pipeline #140307 passed
......@@ -405,3 +405,53 @@ describe("Solveur - nghyd#601 without empty fields option", () => {
await browser.sleep(200);
});
});
describe("Solveur - nghyd#606 - a single module cannot be used with solver", () => {
let prefPage: PreferencesPage;
let navBar: Navbar;
let listPage: ListPage;
let calcPage: CalculatorPage;
beforeAll(() => {
prefPage = new PreferencesPage();
navBar = new Navbar();
listPage = new ListPage();
calcPage = new CalculatorPage();
});
async function openCalculator(id: number) {
await navBar.clickNewCalculatorButton();
await browser.sleep(200);
await listPage.clickMenuEntryForCalcType(id);
await browser.sleep(200);
}
async function openSolver() {
await openCalculator(22);
}
beforeEach(async () => {
// await browser.manage().window().setPosition(2000, 30);
// disable evil option "empty fields on module creation"
await prefPage.setEmptyFields(false);
});
it("", async () => {
// open uniform flow calculator
await openCalculator(3);
// open a solver module
await openSolver();
// set speed as target parameter
const trs = calcPage.getSelectById("select_target_result");
await changeSelectValue(trs, 1);
await browser.sleep(200);
// check searched parameter has options
const sps = calcPage.getSelectById("select_searched_param");
expect(await calcPage.isSelectEmpty(sps)).toBe(false);
});
});
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