fix: failing e2e test (#5234)

This commit is contained in:
Matti Nannt
2025-04-05 21:20:22 +09:00
committed by GitHub
parent c03e60ac0b
commit ec314c14ea
+3 -3
View File
@@ -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();