diff --git a/e2e/calculator.e2e-spec.ts b/e2e/calculator.e2e-spec.ts index 58beabb11e1a15b082f9554744d028d9d8ce9a77..f7e986344c299fcb0117e168b4feeb81f0eea51a 100644 --- a/e2e/calculator.e2e-spec.ts +++ b/e2e/calculator.e2e-spec.ts @@ -17,7 +17,7 @@ describe("ngHyd − calculator page", () => { expect(text.length).toBeGreaterThan(0); }); - it("when a calculator is open, no label should be empty", async () => { + it("when a calculator is open, no active label should be empty", async () => { const labels = page.getInputLabels(); await labels.each(async (l) => { const label = await l.getText(); diff --git a/e2e/calculator.po.ts b/e2e/calculator.po.ts index 86aa3a7bf6a5b7393b2a6e9444611d8ff67e456b..d4b7a51d5adc0649cc0a73b1fdb2a04ce2ff1a7b 100644 --- a/e2e/calculator.po.ts +++ b/e2e/calculator.po.ts @@ -3,7 +3,7 @@ import { browser, by, element } from "protractor"; export class CalculatorPage { getInputLabels() { - return element.all(by.css("ngparam-input label")); + return element.all(by.css("ngparam-input input:not([disabled]) label")); } getHeader1() { diff --git a/e2e/navigate-through-calculators.e2e-spec.ts b/e2e/navigate-through-calculators.e2e-spec.ts index 54e255dadb8e31141179c25ad71defc673d854ba..f2f91340e01c80d132312f9d96bfab31a9268eb6 100644 --- a/e2e/navigate-through-calculators.e2e-spec.ts +++ b/e2e/navigate-through-calculators.e2e-spec.ts @@ -14,7 +14,7 @@ describe("ngHyd − create calculators and navigate among them", () => { navbar = new Navbar(); }); - it("when many calculators are open, navigating among them should not fail (all labels should be visible)", async () => { + it("when many calculators are open, navigating among them should not fail (all active labels should be visible)", async () => { await listPage.navigateTo(); // open 8 calculators for (let i = 0; i < 6; i++) {