diff --git a/e2e/select-default-value.e2e-spec.ts b/e2e/select-default-value.e2e-spec.ts index 8796f19ace63fb1d0b64c0e807f459b5a6ee9b56..9ec1205cdac37a9665052370a8ee95ab8147194a 100644 --- a/e2e/select-default-value.e2e-spec.ts +++ b/e2e/select-default-value.e2e-spec.ts @@ -35,8 +35,21 @@ describe("check the select default value - ", () => { // in the calculator configuration file, the default resolution method is 'Trapezes'. // let's check this... - const sel_section = calcPage.getSelectById("select_resolution"); - const val = await calcPage.getSelectValueText(sel_section); + const sel = calcPage.getSelectById("select_resolution"); + const val = await calcPage.getSelectValueText(sel); expect(val).toBe("Intégration par trapèzes"); }); + + it("in the 'up/downstream elevations of a reach' calculator", async () => { + // open "up/downstream elevations of a reach" calculator + await navBar.clickNewCalculatorButton(); + await listPage.clickMenuEntryForCalcType(21); + await browser.sleep(200); + + // in the calculator configuration file, the default section method is 'Rectangulaire'. + // let's check this... + const sel = calcPage.getSelectById("select_section"); + const val = await calcPage.getSelectValueText(sel); + expect(val).toBe("Rectangulaire"); + }); });