diff --git a/e2e/remous.e2e-spec.ts b/e2e/remous.e2e-spec.ts index 5c4603946995d87a1e02285d0a1e2198cf8c7877..f79ad021fc64051b3603da1f4ef797663c59e3ff 100644 --- a/e2e/remous.e2e-spec.ts +++ b/e2e/remous.e2e-spec.ts @@ -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); + }); });