chore: add playwright and add e2e tests #311
main.yml
on: push
Build app
1m 30s
Publish new release
0s
Build and publish docker image
0s
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
|
|