diff --git a/e2e/ouvrages-empty-fields.e2e-spec.ts b/e2e/ouvrages-empty-fields.e2e-spec.ts index 6eac089d57e978822582a07de47244ede81f3db7..9ee6d8378b7aef345b6ecc56c6ed0602a0aba62e 100644 --- a/e2e/ouvrages-empty-fields.e2e-spec.ts +++ b/e2e/ouvrages-empty-fields.e2e-spec.ts @@ -163,4 +163,23 @@ describe("ngHyd - check that created/cloned structures have empty fields - ", () const emptys = [true, true, true]; await checkFields(inputIds, emptys); }); + + it("when a structure is modified (input) and then a structure is added", async () => { + await setup(); + + // fill + const inp = calcPage.getInputById("0_ZDV"); + await inp.clear(); + await inp.sendKeys("1"); + + // copy structure + const addStruct = calcPage.getAddStructureButton(); + await addStruct.click(); + await browser.sleep(200); + + // check empty fields + const inputIds = ["1_ZDV", "1_L", "1_W", "1_CdGR"]; + const emptys = [true, true, true, false]; + await checkFields(inputIds, emptys); + }); });