From 5e5f13c5b5f017882e00f6b1f357fa2d7d549b37 Mon Sep 17 00:00:00 2001 From: Barcode Betty Date: Wed, 15 Apr 2026 11:00:56 +0000 Subject: [PATCH] fix(e2e): use more permissive regex patterns for route mocking Use wildcard patterns to match URLs with query parameters or trailing slashes. Co-Authored-By: Paperclip --- e2e/fixtures.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,