Skip to content

Playwright

Playwright #1631

Triggered via deployment status November 5, 2024 09:07
Status Failure
Total duration 4m 8s
Artifacts

playwright.yml

on: deployment_status
Fit to window
Zoom out
Zoom in

Annotations

8 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" 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] › 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" - 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 - 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
[Common persona] › tests/aila-chat/downloads.test.ts:15:5 › Downloading a completed lesson plan: apps/nextjs/tests-e2e/tests/aila-chat/downloads.test.ts#L53
4) [Common persona] › tests/aila-chat/downloads.test.ts:15:5 › Downloading a completed lesson plan › Go to downloads page Error: Timed out ***0000ms waiting for expect(locator).toContainText(expected) Locator: getByTestId('chat-download-lesson-plan') Expected string: "Download lesson plan (.docx)" Received: <element(s) not found> Call log: - expect.toContainText with timeout ***0000ms - waiting for getByTestId('chat-download-lesson-plan') - locator resolved to <button data-testid="chat-download-lesson-plan" class="flex items-center justify-between gap-9 rounded-md border-2 border-black px-14 py-10 border-opacity-100">…</button> - unexpected value "Lesson planGenerating lesson plan for export" - locator resolved to <button data-testid="chat-download-lesson-plan" class="flex items-center justify-between gap-9 rounded-md border-2 border-black px-14 py-10 border-opacity-100">…</button> - unexpected value "Lesson planGenerating lesson plan for export" - locator resolved to <button data-testid="chat-download-lesson-plan" class="flex items-center justify-between gap-9 rounded-md border-2 border-black px-14 py-10 border-opacity-100">…</button> - unexpected value "Lesson planGenerating lesson plan for export" - locator resolved to <button data-testid="chat-download-lesson-plan" class="flex items-center justify-between gap-9 rounded-md border-2 border-black px-14 py-10 border-opacity-100">…</button> - unexpected value "Lesson planGenerating lesson plan for export" - locator resolved to <button data-testid="chat-download-lesson-plan" class="flex items-center justify-between gap-9 rounded-md border-2 border-black px-14 py-10 border-opacity-100">…</button> - unexpected value "Lesson planGenerating lesson plan for export" - locator resolved to <button data-testid="chat-download-lesson-plan" class="flex items-center justify-between gap-9 rounded-md border-2 border-black px-14 py-10 border-opacity-100">…</button> - unexpected value "Lesson planGenerating lesson plan for export" 51 | 52 | // Generated > 5*** | await expect(downloadLessonPlan).toContainText( | ^ 54 | "Download lesson plan (.docx)", 55 | { ignoreCase: ***, timeout: ***0000 }, 56 | ); at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/aila-chat/downloads.test.ts:5***:40 at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/aila-chat/downloads.test.ts:***0: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 flaky [Common persona] › tests/aila-chat/downloads.test.ts:15:5 › Downloading a completed lesson plan 1 skipped 9 passed (2.1m)