Skip to content

chore: add playwright and add e2e tests #311

chore: add playwright and add e2e tests

chore: add playwright and add e2e tests #311

Triggered via push March 23, 2025 08:18
Status Success
Total duration 1m 36s
Artifacts 1

main.yml

on: push
Publish new release
0s
Publish new release
Build and publish docker image
0s
Build and publish docker image
Fit to window
Zoom out
Zoom in

Annotations

2 errors, 1 warning, and 1 notice
[firefox] › tests/navigation.spec.ts:3:1 › Navigate and show correct page title: tests/navigation.spec.ts#L5
1) [firefox] › tests/navigation.spec.ts:3:1 › Navigate and show correct page title ─────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveTitle(expected) Locator: locator(':root') Expected string: "Dashboard" Received string: "page.dashboard.title" Call log: - expect.toHaveTitle with timeout 5000ms - waiting for locator(':root') 9 × locator resolved to <html lang="en">…</html> - unexpected value "page.dashboard.title" 3 | test('Navigate and show correct page title', async ({ page }) => { 4 | await page.goto('/'); > 5 | await expect(page).toHaveTitle('Dashboard'); | ^ 6 | 7 | await page.getByTestId('navigation-income').click(); 8 | await expect(page).toHaveTitle('Income'); at /home/runner/work/ocular/ocular/tests/navigation.spec.ts:5:22
[firefox] › tests/navigation.spec.ts:3:1 › Navigate and show correct page title: tests/navigation.spec.ts#L5
1) [firefox] › tests/navigation.spec.ts:3:1 › Navigate and show correct page title ─────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveTitle(expected) Locator: locator(':root') Expected string: "Dashboard" Received string: "page.dashboard.title" Call log: - expect.toHaveTitle with timeout 5000ms - waiting for locator(':root') 9 × locator resolved to <html lang="en">…</html> - unexpected value "page.dashboard.title" 3 | test('Navigate and show correct page title', async ({ page }) => { 4 | await page.goto('/'); > 5 | await expect(page).toHaveTitle('Dashboard'); | ^ 6 | 7 | await page.getByTestId('navigation-income').click(); 8 | await expect(page).toHaveTitle('Income'); at /home/runner/work/ocular/ocular/tests/navigation.spec.ts:5:22
Build app
No files were found with the provided path: playwright-report/. No artifacts will be uploaded.
🎭 Playwright Run Summary
1 flaky [firefox] › tests/navigation.spec.ts:3:1 › Navigate and show correct page title ──────────────── 2 passed (22.0s)

Artifacts

Produced during runtime
Name Size Digest
app Expired
728 KB
sha256:aa549bb53b945d5bad8a8ad9eae02daddc861a5d1e5d2238551a96c7b2b07ce9