Skip to content

Playwright

Playwright #1646

Triggered via deployment status November 5, 2024 11:53
Status Failure
Total duration 3m 24s
Artifacts

playwright.yml

on: deployment_status
Fit to window
Zoom out
Zoom in

Annotations

7 errors, 2 warnings, and 1 notice
[No persona] › tests/banned-users.test.ts:10:5 › Users are banned after 3 toxic lessons: apps/nextjs/tests-e2e/tests/banned-users.test.ts#L43
1) [No persona] › tests/banned-users.test.ts:10:5 › Users are banned after *** toxic lessons › Check account locked TimeoutError: page.waitForURL: Timeout 20000ms exceeded. =========================== logs =========================== waiting for navigation until "load" ============================================================ 41 | 42 | await test.step("Check account locked", async () => { > 4*** | await page.waitForURL(/\/legal\/account-locked/, { timeout: 20000 }); | ^ 44 | await expect(page.locator("h1")).toContainText("Account locked"); 45 | }); 46 | at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/banned-users.test.ts:4***:16 at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/banned-users.test.ts:42:14
[No persona] › tests/banned-users.test.ts:10:5 › Users are banned after 3 toxic lessons: apps/nextjs/tests-e2e/tests/banned-users.test.ts#L43
1) [No persona] › tests/banned-users.test.ts:10:5 › Users are banned after *** toxic lessons › Check account locked Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: page.waitForURL: Timeout 20000ms exceeded. =========================== logs =========================== waiting for navigation until "load" ============================================================ 41 | 42 | await test.step("Check account locked", async () => { > 4*** | await page.waitForURL(/\/legal\/account-locked/, { timeout: 20000 }); | ^ 44 | await expect(page.locator("h1")).toContainText("Account locked"); 45 | }); 46 | at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/banned-users.test.ts:4***:16 at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/banned-users.test.ts:42:14
[Common persona] › tests/aila-chat/full-romans.test.ts:25:5 › Full aila flow with Romans fixture: apps/nextjs/tests-e2e/tests/aila-chat/helpers.ts#L12
2) [Common persona] › tests/aila-chat/full-romans.test.ts:25:5 › Full aila flow with Romans fixture › Iterate through the fixtures Error: Timed out 5000ms waiting for expect(locator).toContainText(expected) Locator: getByTestId('chat-aila-streaming-status') Expected string: "RequestMade" Received string: "Idle" Call log: - expect.toContainText with timeout 5000ms - waiting for getByTestId('chat-aila-streaming-status') - locator resolved to <div data-testid="chat-aila-streaming-status">Idle</div> - unexpected value "Idle" - locator resolved to <div data-testid="chat-aila-streaming-status">Idle</div> - unexpected value "Idle" - locator resolved to <div data-testid="chat-aila-streaming-status">Idle</div> - unexpected value "Idle" - locator resolved to <div data-testid="chat-aila-streaming-status">Idle</div> - unexpected value "Idle" - locator resolved to <div data-testid="chat-aila-streaming-status">Idle</div> - unexpected value "Idle" - locator resolved to <div data-testid="chat-aila-streaming-status">Idle</div> - unexpected value "Idle" - locator resolved to <div data-testid="chat-aila-streaming-status">Idle</div> - unexpected value "Idle" - locator resolved to <div data-testid="chat-aila-streaming-status">Idle</div> - unexpected value "Idle" - locator resolved to <div data-testid="chat-aila-streaming-status">Idle</div> - unexpected value "Idle" at tests/aila-chat/helpers.ts:12 10 | ) { 11 | const statusElement = page.getByTestId("chat-aila-streaming-status"); > 12 | await expect(statusElement).toContainText(status, args); | ^ 1*** | } 14 | 15 | export async function waitForStreamingStatusChange( at expectStreamingStatus (/home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/aila-chat/helpers.ts:12:***1) at waitForStreamingStatusChange (/home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/aila-chat/helpers.ts:***9:9) at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/aila-chat/full-romans.test.ts:84:9 at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/aila-chat/full-romans.test.ts:57:5
[Common persona] › tests/aila-chat/full-romans.test.ts:25:5 › Full aila flow with Romans fixture: apps/nextjs/tests-e2e/tests/aila-chat/helpers.ts#L12
2) [Common persona] › tests/aila-chat/full-romans.test.ts:25:5 › Full aila flow with Romans fixture › Iterate through the fixtures Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toContainText(expected) Locator: getByTestId('chat-aila-streaming-status') Expected string: "RequestMade" Received string: "Idle" Call log: - expect.toContainText with timeout 5000ms - waiting for getByTestId('chat-aila-streaming-status') - locator resolved to <div data-testid="chat-aila-streaming-status">Idle</div> - unexpected value "Idle" - locator resolved to <div data-testid="chat-aila-streaming-status">Idle</div> - unexpected value "Idle" - locator resolved to <div data-testid="chat-aila-streaming-status">Idle</div> - unexpected value "Idle" - locator resolved to <div data-testid="chat-aila-streaming-status">Idle</div> - unexpected value "Idle" - locator resolved to <div data-testid="chat-aila-streaming-status">Idle</div> - unexpected value "Idle" - locator resolved to <div data-testid="chat-aila-streaming-status">Idle</div> - unexpected value "Idle" at tests/aila-chat/helpers.ts:12 10 | ) { 11 | const statusElement = page.getByTestId("chat-aila-streaming-status"); > 12 | await expect(statusElement).toContainText(status, args); | ^ 1*** | } 14 | 15 | export async function waitForStreamingStatusChange( at expectStreamingStatus (/home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/aila-chat/helpers.ts:12:***1) at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/aila-chat/full-romans.test.ts:67:***6 at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/aila-chat/full-romans.test.ts:57:5
[Common persona - mobile] › tests/aila-chat/full-romans.mobile.test.ts:42:5 › Full aila flow with Romans fixture: apps/nextjs/tests-e2e/tests/aila-chat/full-romans.mobile.test.ts#L39
***) [Common persona - mobile] › tests/aila-chat/full-romans.mobile.test.ts:42:5 › Full aila flow with Romans fixture Error: Timed out 5000ms waiting for expect(locator).toBeInViewport() Locator: getByTestId('chat-right-hand-side-lesson') Expected: in viewport Received: outside viewport Call log: - expect.toBeInViewport with timeout 5000ms - waiting for getByTestId('chat-right-hand-side-lesson') - locator resolved to <div data-testid="chat-right-hand-side-lesson" class="fixed bottom-0 right-[-100%] sm:right-0 right-0 top-0 z-***0 w-[95%] bg-white shadow-md duration-***00 sm:relative sm:z-0 sm:w-[50%] sm:shadow-none lg:w-full">…</div> - unexpected value "viewport ratio 0" - locator resolved to <div data-testid="chat-right-hand-side-lesson" class="fixed bottom-0 right-[-100%] sm:right-0 right-0 top-0 z-***0 w-[95%] bg-white shadow-md duration-***00 sm:relative sm:z-0 sm:w-[50%] sm:shadow-none lg:w-full">…</div> - unexpected value "viewport ratio 0" - locator resolved to <div data-testid="chat-right-hand-side-lesson" class="fixed bottom-0 right-[-100%] sm:right-0 right-0 top-0 z-***0 w-[95%] bg-white shadow-md duration-***00 sm:relative sm:z-0 sm:w-[50%] sm:shadow-none lg:w-full">…</div> - unexpected value "viewport ratio 0" - locator resolved to <div data-testid="chat-right-hand-side-lesson" class="fixed bottom-0 right-[-100%] sm:right-0 right-0 top-0 z-***0 w-[95%] bg-white shadow-md duration-***00 sm:relative sm:z-0 sm:w-[50%] sm:shadow-none lg:w-full">…</div> - unexpected value "viewport ratio 0" - locator resolved to <div data-testid="chat-right-hand-side-lesson" class="fixed bottom-0 right-[-100%] sm:right-0 right-0 top-0 z-***0 w-[95%] bg-white shadow-md duration-***00 sm:relative sm:z-0 sm:w-[50%] sm:shadow-none lg:w-full">…</div> - unexpected value "viewport ratio 0" - locator resolved to <div data-testid="chat-right-hand-side-lesson" class="fixed bottom-0 right-[-100%] sm:right-0 right-0 top-0 z-***0 w-[95%] bg-white shadow-md duration-***00 sm:relative sm:z-0 sm:w-[50%] sm:shadow-none lg:w-full">…</div> - unexpected value "viewport ratio 0" - locator resolved to <div data-testid="chat-right-hand-side-lesson" class="fixed bottom-0 right-[-100%] sm:right-0 right-0 top-0 z-***0 w-[95%] bg-white shadow-md duration-***00 sm:relative sm:z-0 sm:w-[50%] sm:shadow-none lg:w-full">…</div> - unexpected value "viewport ratio 0" - locator resolved to <div data-testid="chat-right-hand-side-lesson" class="fixed bottom-0 right-[-100%] sm:right-0 right-0 top-0 z-***0 w-[95%] bg-white shadow-md duration-***00 sm:relative sm:z-0 sm:w-[50%] sm:shadow-none lg:w-full">…</div> - unexpected value "viewport ratio 0" ***7 | await expect( ***8 | page.getByTestId("chat-right-hand-side-lesson"), > ***9 | ).toBeInViewport(); | ^ 40 | } 41 | 42 | test( at expectPreviewVisible (/home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/aila-chat/full-romans.mobile.test.ts:***9:5) at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/aila-chat/full-romans.mobile.test.ts:160:9 at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/aila-chat/full-romans.mobile.test.ts:15***:5
[Common persona - mobile] › tests/aila-chat/full-romans.mobile.test.ts:42:5 › Full aila flow with Romans fixture: apps/nextjs/tests-e2e/tests/aila-chat/helpers.ts#L12
***) [Common persona - mobile] › tests/aila-chat/full-romans.mobile.test.ts:42:5 › Full aila flow with Romans fixture Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toContainText(expected) Locator: getByTestId('chat-aila-streaming-status') Expected string: "RequestMade" Received string: "Idle" Call log: - expect.toContainText with timeout 5000ms - waiting for getByTestId('chat-aila-streaming-status') - locator resolved to <div data-testid="chat-aila-streaming-status">Idle</div> - unexpected value "Idle" - locator resolved to <div data-testid="chat-aila-streaming-status">Idle</div> - unexpected value "Idle" - locator resolved to <div data-testid="chat-aila-streaming-status">Idle</div> - unexpected value "Idle" - locator resolved to <div data-testid="chat-aila-streaming-status">Idle</div> - unexpected value "Idle" - locator resolved to <div data-testid="chat-aila-streaming-status">Idle</div> - unexpected value "Idle" at tests/aila-chat/helpers.ts:12 10 | ) { 11 | const statusElement = page.getByTestId("chat-aila-streaming-status"); > 12 | await expect(statusElement).toContainText(status, args); | ^ 1*** | } 14 | 15 | export async function waitForStreamingStatusChange( at expectStreamingStatus (/home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/aila-chat/helpers.ts:12:***1) at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/aila-chat/helpers.ts:44:11 at waitForGeneration (/home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/aila-chat/helpers.ts:4***:21) at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/aila-chat/full-romans.mobile.test.ts:159:***2 at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/aila-chat/full-romans.mobile.test.ts:15***:5
test-e2e
Process completed with exit code 1.
test-e2e
Failed to restore: Cache service responded with 403
test-e2e
Can't add secret mask for empty string in ##[add-mask] command.
🎭 Playwright Run Summary
*** failed [No persona] › tests/banned-users.test.ts:10:5 › Users are banned after *** toxic lessons ──────── [Common persona] › tests/aila-chat/full-romans.test.ts:25:5 › Full aila flow with Romans fixture [Common persona - mobile] › tests/aila-chat/full-romans.mobile.test.ts:42:5 › Full aila flow with Romans fixture 1 skipped 10 passed (1.7m)