Skip to content
Snippets Groups Projects

Resolve "Sections: non convergence du calcul du tirant d'eau critique"

1 file
+ 23
0
Compare changes
  • Side-by-side
  • Inline
+ 23
0
@@ -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);
});
});
Loading