diff --git a/apps/web/playwright/dynamic-booking-pages.e2e.ts b/apps/web/playwright/dynamic-booking-pages.e2e.ts index f15054d1b3..545a3daf9b 100644 --- a/apps/web/playwright/dynamic-booking-pages.e2e.ts +++ b/apps/web/playwright/dynamic-booking-pages.e2e.ts @@ -118,8 +118,9 @@ test("multiple duration selection updates event length correctly", async ({ page await page.goto(`/${user.username}/multiple-duration`); - // Wait for time slots to be visible and clickable - await page.locator('[data-testid="time"]').nth(0).waitFor({ state: "visible" }); + await page.waitForURL((url) => { + return url.searchParams.get("overlayCalendar") === "true"; + }); await page.locator('[data-testid="multiple-choice-30mins"]').waitFor({ state: "visible" }); @@ -131,6 +132,7 @@ test("multiple duration selection updates event length correctly", async ({ page await test.step("book with 90min duration and verify title", async () => { await page.getByTestId("multiple-choice-90mins").click(); + await page.locator('[data-testid="time"]').nth(0).waitFor({ state: "visible" }); const duration90 = page.getByTestId("multiple-choice-90mins"); const activeState = await duration90.getAttribute("data-active");