From e263e7e5e2134abe4e286ceb71b26c922e123d62 Mon Sep 17 00:00:00 2001 From: "empiricalrun[bot]" <180257021+empiricalrun[bot]@users.noreply.github.com> Date: Mon, 15 Dec 2025 17:02:33 +0530 Subject: [PATCH] fix: update expired auth token error message assertion (#515) --- tests/onboarding/magic-link.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/onboarding/magic-link.spec.ts b/tests/onboarding/magic-link.spec.ts index 4e7af4e7..b5154688 100644 --- a/tests/onboarding/magic-link.spec.ts +++ b/tests/onboarding/magic-link.spec.ts @@ -130,8 +130,8 @@ test("google login fails with expired auth token cookie", async ({ page, customC const hostPattern = new URL(baseUrl).hostname.replace(/\./g, '\\.'); await expect(cleanPage).toHaveURL(new RegExp(hostPattern), { timeout: 30000 }); - // Assert that login fails with "Auth code not found" error - await expect(cleanPage.getByText("Auth code not found, please try again.")).toBeVisible({ timeout: 15000 }); + // Assert that login fails with "session expired" error + await expect(cleanPage.getByText("Your session expired. Please try logging in again.")).toBeVisible({ timeout: 15000 }); // Assert that the expired auth cookie has been deleted const cookies = await context.cookies();