Skip to content

Playwright

Playwright #10

Triggered via deployment status August 22, 2024 10:37
Status Failure
Total duration 2m 43s
Billable time 3m
Artifacts 2

playwright.yml

on: deployment_status
Fit to window
Zoom out
Zoom in

Annotations

6 errors, 3 warnings, and 1 notice
[auth-setup] › config/ui-auth.setup.ts:32:6 › authenticate through UI setup: apps/nextjs/tests-e2e/config/ui-auth.setup.ts#L1
1) [auth-setup] › config/ui-auth.setup.ts:***2:6 › authenticate through UI setup ─────────────────── Test timeout of ***0000ms exceeded.
[auth-setup] › config/ui-auth.setup.ts:32:6 › authenticate through UI setup: apps/nextjs/tests-e2e/config/ui-auth.setup.ts#L15
1) [auth-setup] › config/ui-auth.setup.ts:***2:6 › authenticate through UI setup ─────────────────── Error: page.goto: Target page, context or browser has been closed 1*** | } 14 | > 15 | await page.goto(`${TEST_BASE_URL}/sign-in`); | ^ 16 | await expect(page.locator("h1")).toContainText( 17 | "Sign in to Oak National Academy", 18 | ); at signInThroughUI (/home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/config/ui-auth.setup.ts:15:14) at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/config/ui-auth.setup.ts:46:9
[public] › tests/aila-chat.test.ts:25:7 › Unauthenticated › redirects to /sign-in: apps/nextjs/tests-e2e/tests/aila-chat.test.ts#L28
2) [public] › tests/aila-chat.test.ts:25:7 › Unauthenticated › redirects to /sign-in ───────────── Error: Timed out 5000ms waiting for expect(locator).toContainText(expected) Locator: locator('h1') Expected string: "Sign in" Received string: "Log in to Vercel" Call log: - expect.toContainText with timeout 5000ms - waiting for locator('h1') - locator resolved to <h1 data-version="v1" class="text_wrapper__i87JK">…</h1> - unexpected value "Log in to Vercel" - locator resolved to <h1 data-version="v1" class="text_wrapper__i87JK">…</h1> - unexpected value "Log in to Vercel" - locator resolved to <h1 data-version="v1" class="text_wrapper__i87JK">…</h1> - unexpected value "Log in to Vercel" - locator resolved to <h1 data-version="v1" class="text_wrapper__i87JK">…</h1> - unexpected value "Log in to Vercel" - locator resolved to <h1 data-version="v1" class="text_wrapper__i87JK">…</h1> - unexpected value "Log in to Vercel" - locator resolved to <h1 data-version="v1" class="text_wrapper__i87JK">…</h1> - unexpected value "Log in to Vercel" - locator resolved to <h1 data-version="v1" class="text_wrapper__i87JK">…</h1> - unexpected value "Log in to Vercel" - locator resolved to <h1 data-version="v1" class="text_wrapper__i87JK">…</h1> - unexpected value "Log in to Vercel" 26 | await bypassVercelProtection(page); 27 | await page.goto(`${TEST_BASE_URL}/aila`); > 28 | await expect(page.locator("h1")).toContainText("Sign in"); | ^ 29 | }); ***0 | }); ***1 | at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/aila-chat.test.ts:28:***8
[public] › tests/public.test.ts:6:5 › / loads: apps/nextjs/tests-e2e/tests/public.test.ts#L12
***) [public] › tests/public.test.ts:6:5 › / loads ───────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeInViewport() Locator: getByRole('heading', { name: 'Introducing Aila' }) Expected: in viewport Received: <element(s) not found> Call log: - expect.toBeInViewport with timeout 5000ms - waiting for getByRole('heading', { name: 'Introducing Aila' }) 10 | await expect( 11 | page.getByRole("heading", { name: "Introducing Aila" }), > 12 | ).toBeInViewport(); | ^ 1*** | }); 14 | at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/public.test.ts:12:5
test-e2e
Tests failed
test-e2e
Process completed with exit code 1.
🎭 Playwright Run Summary
*** failed [auth-setup] › config/ui-auth.setup.ts:***2:6 › authenticate through UI setup ──────────────────── [public] › tests/aila-chat.test.ts:25:7 › Unauthenticated › redirects to /sign-in ────────────── [public] › tests/public.test.ts:6:5 › / loads ────────────────────────────────────────────────── 4 did not run
test-e2e
Failed to restore: Cache service responded with 403
Slow Test: apps/nextjs/[auth-setup] › config/ui-auth.setup.ts#L1
apps/nextjs/[auth-setup] › config/ui-auth.setup.ts took ***0.2s
test-e2e
Can't add secret mask for empty string in ##[add-mask] command.

Artifacts

Produced during runtime
Name Size
playwright-failure-screenshots Expired
1.69 MB
playwright-report Expired
2.17 MB