From 19221a65d764507e234ba050cd7d99a423a02f28 Mon Sep 17 00:00:00 2001 From: Jakob Schott Date: Thu, 22 May 2025 08:46:01 +0200 Subject: [PATCH] Changed tests for NPS and Rating question, to accomedate new required preset in editor --- apps/web/playwright/survey.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/playwright/survey.spec.ts b/apps/web/playwright/survey.spec.ts index 4a9479ecb4..8a6e052929 100644 --- a/apps/web/playwright/survey.spec.ts +++ b/apps/web/playwright/survey.spec.ts @@ -760,7 +760,7 @@ test.describe("Testing Survey with advanced logic", async () => { page.locator("#questionCard-4").getByText(surveys.createWithLogicAndSubmit.ratingQuestion.highLabel) ).toBeVisible(); expect(await page.getByRole("group", { name: "Choices" }).locator("label").count()).toBe(5); - await expect(page.locator("#questionCard-4").getByRole("button", { name: "Next" })).not.toBeVisible(); + await expect(page.locator("#questionCard-4").getByRole("button", { name: "Next" })).toBeVisible(); await expect(page.locator("#questionCard-4").getByRole("button", { name: "Back" })).toBeVisible(); await page.getByRole("group", { name: "Choices" }).locator("path").nth(3).click(); @@ -772,7 +772,7 @@ test.describe("Testing Survey with advanced logic", async () => { await expect( page.locator("#questionCard-5").getByText(surveys.createWithLogicAndSubmit.npsQuestion.highLabel) ).toBeVisible(); - await expect(page.locator("#questionCard-5").getByRole("button", { name: "Next" })).not.toBeVisible(); + await expect(page.locator("#questionCard-5").getByRole("button", { name: "Next" })).toBeVisible(); await expect(page.locator("#questionCard-5").getByRole("button", { name: "Back" })).toBeVisible(); for (let i = 0; i < 11; i++) {