50 lines
3.6 KiB
Plaintext
50 lines
3.6 KiB
Plaintext
|
|
[1A[2K[2m[WebServer] [22m[0m[2m[35m$[0m [2m[1mnext dev[0m
|
|||
|
|
|
|||
|
|
[1A[2K[2m[WebServer] [22m[33m[1m⚠[22m[39m The "middleware" file convention is deprecated. Please use "proxy" instead. Learn more: https://nextjs.org/docs/messages/middleware-to-proxy
|
|||
|
|
|
|||
|
|
|
|||
|
|
Running 6 tests using 6 workers
|
|||
|
|
|
|||
|
|
[1A[2K[1/6] [chromium] › e2e/auth.spec.ts:78:7 › Authentication Flow › Scenario 2: Club switching refreshes data
|
|||
|
|
[1A[2K[2/6] [chromium] › e2e/auth.spec.ts:140:7 › Authentication Flow › Scenario 3: Logout flow - clears session and blocks protected routes
|
|||
|
|
[1A[2K[3/6] [chromium] › e2e/auth.spec.ts:22:7 › Authentication Flow › Scenario 1: Full auth flow E2E - redirect → Keycloak → club picker → dashboard
|
|||
|
|
[1A[2K[4/6] [chromium] › e2e/auth.spec.ts:165:7 › Authentication Flow › Unauthenticated user blocked from protected routes
|
|||
|
|
[1A[2K[5/6] [chromium] › e2e/auth.spec.ts:180:7 › Authentication Flow › Single-club user bypasses club picker
|
|||
|
|
[1A[2K[6/6] [chromium] › e2e/auth.spec.ts:203:7 › Authentication Flow › Keycloak login with invalid credentials fails
|
|||
|
|
[1A[2K[2m[WebServer] [22m[31m[auth][error][0m MissingSecret: Please define a `secret`. Read more at https://errors.authjs.dev#missingsecret
|
|||
|
|
|
|||
|
|
[1A[2K[2m[WebServer] [22m at assertConfig (/Users/mastermito/Dev/opencode/frontend/.next/dev/server/edge/chunks/97170_@auth_core_71f8dcfb._.js:513:16)
|
|||
|
|
[2m[WebServer] [22m at Auth (/Users/mastermito/Dev/opencode/frontend/.next/dev/server/edge/chunks/97170_@auth_core_71f8dcfb._.js:5331:242)
|
|||
|
|
[2m[WebServer] [22m at runNextTicks (node:internal/process/task_queues:65:5)
|
|||
|
|
[2m[WebServer] [22m at listOnTimeout (node:internal/timers:567:9)
|
|||
|
|
[2m[WebServer] [22m at process.processTimers (node:internal/timers:541:7)
|
|||
|
|
|
|||
|
|
[1A[2K[2m[WebServer] [22m[31m[auth][error][0m MissingSecret: Please define a `secret`. Read more at https://errors.authjs.dev#missingsecret
|
|||
|
|
|
|||
|
|
[1A[2K[2m[WebServer] [22m at assertConfig (/Users/mastermito/Dev/opencode/frontend/.next/dev/server/edge/chunks/97170_@auth_core_71f8dcfb._.js:513:16)
|
|||
|
|
[2m[WebServer] [22m at Auth (/Users/mastermito/Dev/opencode/frontend/.next/dev/server/edge/chunks/97170_@auth_core_71f8dcfb._.js:5331:242)
|
|||
|
|
|
|||
|
|
[1A[2K 1) [chromium] › e2e/auth.spec.ts:165:7 › Authentication Flow › Unauthenticated user blocked from protected routes
|
|||
|
|
|
|||
|
|
Error: [2mexpect([22m[31mreceived[39m[2m).[22mtoBe[2m([22m[32mexpected[39m[2m) // Object.is equality[22m
|
|||
|
|
|
|||
|
|
Expected: [32m"/tasks"[39m
|
|||
|
|
Received: [31mnull[39m
|
|||
|
|
|
|||
|
|
173 | // Verify callbackUrl query param exists
|
|||
|
|
174 | const url = new URL(page.url());
|
|||
|
|
> 175 | expect(url.searchParams.get('callbackUrl')).toBe('/tasks');
|
|||
|
|
| ^
|
|||
|
|
176 |
|
|||
|
|
177 | console.log('✅ Protected route correctly blocked');
|
|||
|
|
178 | });
|
|||
|
|
at /Users/mastermito/Dev/opencode/frontend/e2e/auth.spec.ts:175:49
|
|||
|
|
|
|||
|
|
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
|
|||
|
|
test-results/auth-Authentication-Flow-U-632cf-ocked-from-protected-routes-chromium/test-failed-1.png
|
|||
|
|
────────────────────────────────────────────────────────────────────────────────────────────────
|
|||
|
|
|
|||
|
|
Error Context: test-results/auth-Authentication-Flow-U-632cf-ocked-from-protected-routes-chromium/error-context.md
|
|||
|
|
|
|||
|
|
|