Skip to content
Snippets Groups Projects
Commit 51eee443 authored by David Dorchies's avatar David Dorchies Committed by François Grand
Browse files

test: add test that currently fails on critical flow calculation

Refs #528
parent eac40683
No related branches found
No related tags found
2 merge requests!133Release version 4.15.0,!125Resolve "Sections: non convergence du calcul du tirant d'eau critique"
Pipeline #139435 passed
......@@ -47,4 +47,27 @@ describe("ngHyd − remous", () => {
// 5. there should still be 6 messages in the log
expect(await calcPage.nbLogEntries()).toBe(6);
});
it("Calculation with large bed width should run successfully", async () => {
await navBar.clickNewCalculatorButton();
// 1. create new Remous
await listPage.clickMenuEntryForCalcType(4);
await browser.sleep(300);
// 2. Set to trapezoidal section with bank slope of 2m/m and 20 meter width bed
await calcPage.changeSelectValue(calcPage.getSelectById("select_section"), 2);
await browser.sleep(300);
await calcPage.getInputById("LargeurFond").clear();
await browser.sleep(300);
await calcPage.getInputById("LargeurFond").sendKeys("20");
await calcPage.getInputById("Fruit").clear();
await browser.sleep(300);
await calcPage.getInputById("Fruit").sendKeys("2");
// 3. Calculate, the calculation should succeed
await calcPage.getCalculateButton().click();
const hasResults = await calcPage.hasResults();
expect(hasResults).toBe(true);
});
});
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