diff --git a/test/e2e/specs/monitor-form.spec.js b/test/e2e/specs/monitor-form.spec.js index 82665c718..b41f6ceb9 100644 --- a/test/e2e/specs/monitor-form.spec.js +++ b/test/e2e/specs/monitor-form.spec.js @@ -60,7 +60,10 @@ test.describe("Monitor Form", () => { await resolveTypeSelect.getByRole("option", { name: "NS" }).click(); await page.getByTestId("add-condition-button").click(); - expect(await page.getByTestId("condition").count()).toEqual(2); // 1 added by default + 1 explicitly added + expect(await page.getByTestId("condition").count()).toEqual(1); // 1 explicitly added + + await page.getByTestId("add-condition-button").click(); + expect(await page.getByTestId("condition").count()).toEqual(2); // 2 explicitly added await page.getByTestId("condition-value").nth(0).fill("a.iana-servers.net"); await page.getByTestId("condition-and-or").nth(0).selectOption("or"); @@ -89,7 +92,8 @@ test.describe("Monitor Form", () => { await resolveTypeSelect.click(); await resolveTypeSelect.getByRole("option", { name: "NS" }).click(); - expect(await page.getByTestId("condition").count()).toEqual(1); // 1 added by default + await page.getByTestId("add-condition-button").click(); + expect(await page.getByTestId("condition").count()).toEqual(1); // 1 explicitly added await page.getByTestId("condition-value").nth(0).fill("definitely-not.net");