From c47252a3429c89e1fa09ceec08a42f6990f41169 Mon Sep 17 00:00:00 2001 From: Barcode Betty Date: Wed, 15 Apr 2026 10:44:57 +0000 Subject: [PATCH] fix(e2e): correct Better Auth mock route patterns - Changed sign-up route from /auth/register to /auth/sign-up/email - Changed session route from /auth/session to /auth/get-session Better Auth hits /auth/sign-up/email for registration and /auth/get-session for session checks. Co-Authored-By: Paperclip --- e2e/fixtures.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/fixtures.ts b/e2e/fixtures.ts index 921d9a4..9d76db3 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\/register/, async (route) => { + page.route(/\/auth\/sign-up\/email/, async (route) => { await route.fulfill({ status: 200, contentType: "application/json", @@ -67,7 +67,7 @@ function mockAuthRoutes(page: Page, authenticated = false) { }); }); - page.route(/\/auth\/session/, async (route) => { + page.route(/\/auth\/get-session/, async (route) => { if (authenticated) { await route.fulfill({ status: 200,