diff --git a/e2e/fixtures.ts b/e2e/fixtures.ts index 9d76db3..8936561 100644 --- a/e2e/fixtures.ts +++ b/e2e/fixtures.ts @@ -15,7 +15,7 @@ const MOCK_USER_ID = "mock_user_123"; const MOCK_SESSION_ID = "mock_session_456"; function mockAuthRoutes(page: Page, authenticated = false) { - page.route(/\/auth\/sign-up\/email/, async (route) => { + page.route(/.*\/auth\/sign-up\/email.*/, async (route) => { await route.fulfill({ status: 200, contentType: "application/json", @@ -41,7 +41,7 @@ function mockAuthRoutes(page: Page, authenticated = false) { }); }); - page.route(/\/auth\/sign-in\/email/, async (route) => { + page.route(/.*\/auth\/sign-in\/email.*/, async (route) => { await route.fulfill({ status: 200, contentType: "application/json", @@ -67,7 +67,7 @@ function mockAuthRoutes(page: Page, authenticated = false) { }); }); - page.route(/\/auth\/get-session/, async (route) => { + page.route(/.*\/auth\/get-session.*/, async (route) => { if (authenticated) { await route.fulfill({ status: 200,