Skip to content

Scheduling infrastructure for absolutely everyone.

Update testUtils.ts

zomarse89520d7d645
diff --git a/apps/web/playwright/lib/testUtils.ts b/apps/web/playwright/lib/testUtils.ts
index ea8c9921695..136b40b73c1 100644
--- a/apps/web/playwright/lib/testUtils.ts
+++ b/apps/web/playwright/lib/testUtils.ts
@@ -96,6 +96,11 @@ export async function bookFirstEvent(page: Page) {
await bookTimeSlot(page);
// Make sure we're navigated to the success page
+ await page.waitForNavigation({
+ url(url) {
+ return url.pathname.endsWith("/success");
+ },
+ });
await expect(page.locator("[data-testid=success-page]")).toBeVisible();
}