From 72ecf7dbf2c34cf402d130189d270f8ac54dd6ee Mon Sep 17 00:00:00 2001 From: Ionys <9364594+Ionys320@users.noreply.github.com> Date: Mon, 18 Nov 2024 10:52:12 +0100 Subject: [PATCH] fix(e2e): Ajust E2E test because there is no default condition anymore --- test/e2e/specs/monitor-form.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/specs/monitor-form.spec.js b/test/e2e/specs/monitor-form.spec.js index 7a84f3c93..82665c718 100644 --- a/test/e2e/specs/monitor-form.spec.js +++ b/test/e2e/specs/monitor-form.spec.js @@ -28,16 +28,16 @@ test.describe("Monitor Form", () => { await selectMonitorType(page); 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-group-button").click(); expect(await page.getByTestId("condition-group").count()).toEqual(1); - expect(await page.getByTestId("condition").count()).toEqual(3); // 2 solo conditions + 1 condition in group + expect(await page.getByTestId("condition").count()).toEqual(2); // 1 solo conditions + 1 condition in group await screenshot(testInfo, page); await page.getByTestId("remove-condition").first().click(); - expect(await page.getByTestId("condition").count()).toEqual(2); // 1 solo condition + 1 condition in group + expect(await page.getByTestId("condition").count()).toEqual(1); // 0 solo condition + 1 condition in group await page.getByTestId("remove-condition-group").first().click(); expect(await page.getByTestId("condition-group").count()).toEqual(0);