diff --git a/apps/web/playwright/survey.spec.ts b/apps/web/playwright/survey.spec.ts index f689a6eb27..6d277dde41 100644 --- a/apps/web/playwright/survey.spec.ts +++ b/apps/web/playwright/survey.spec.ts @@ -889,10 +889,10 @@ test.describe("Testing Survey with advanced logic", async () => { await page.goBack(); await page.waitForURL(/\/environments\/[^/]+\/surveys\/[^/]+\/summary(\?.*)?$/); - await page.waitForLoadState("networkidle"); + const currentUrl = page.url(); + const updatedUrl = currentUrl.replace("summary?share=true", "responses"); - await page.getByRole("button", { name: "Close" }).click(); - await page.getByRole("link").filter({ hasText: "Responses" }).click(); + await page.goto(updatedUrl); await page.waitForSelector("#response-table"); await expect(page.getByRole("cell", { name: "score" })).toBeVisible();