Skip to content

fix(tests): ensure visibility checks for approval and rejection use f… #25

fix(tests): ensure visibility checks for approval and rejection use f…

fix(tests): ensure visibility checks for approval and rejection use f… #25

Triggered via push March 17, 2026 10:58
Status Failure
Total duration 3m 53s
Artifacts 3

ci.yml

on: push
Backend — quality
1m 3s
Backend — quality
Frontend — quality
1m 13s
Frontend — quality
Backend — integration tests
59s
Backend — integration tests
Backend — E2E tests
57s
Backend — E2E tests
Playwright — UI E2E tests
2m 35s
Playwright — UI E2E tests
Fit to window
Zoom out
Zoom in

Annotations

3 errors, 6 warnings, and 1 notice
Playwright — UI E2E tests
Process completed with exit code 1.
[chromium] › e2e/invoices.spec.ts:68:7 › Invoice list — navigation › Upload Invoice button links to /upload: packages/frontend/e2e/invoices.spec.ts#L70
1) [chromium] › e2e/invoices.spec.ts:68:7 › Invoice list — navigation › Upload Invoice button links to /upload Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Error: strict mode violation: getByRole('main').getByRole('link', { name: /upload invoice/i }) resolved to 2 elements: 1) <a href="/upload" data-slot="button" class="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive h-9 px-4 py-2…>…</a> aka locator('header').getByRole('link', { name: 'Upload Invoice' }) 2) <a href="/upload" data-slot="button" class="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive h-9 px-4 py-2…>Upload Invoice</a> aka getByRole('link', { name: 'Upload Invoice' }).nth(2) Call log: - waiting for getByRole('main').getByRole('link', { name: /upload invoice/i }) 68 | test('Upload Invoice button links to /upload', async ({ uploaderPage: page }) => { 69 | await page.goto('/invoices'); > 70 | await page.getByRole('main').getByRole('link', { name: /upload invoice/i }).click(); | ^ 71 | await expect(page).toHaveURL(/\/upload/); 72 | }); 73 | at /home/runner/work/InvoiceScan/InvoiceScan/packages/frontend/e2e/invoices.spec.ts:70:81
[chromium] › e2e/invoices.spec.ts:68:7 › Invoice list — navigation › Upload Invoice button links to /upload: packages/frontend/e2e/invoices.spec.ts#L70
1) [chromium] › e2e/invoices.spec.ts:68:7 › Invoice list — navigation › Upload Invoice button links to /upload Error: locator.click: Error: strict mode violation: getByRole('main').getByRole('link', { name: /upload invoice/i }) resolved to 2 elements: 1) <a href="/upload" data-slot="button" class="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive h-9 px-4 py-2…>…</a> aka locator('header').getByRole('link', { name: 'Upload Invoice' }) 2) <a href="/upload" data-slot="button" class="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive h-9 px-4 py-2…>Upload Invoice</a> aka getByRole('link', { name: 'Upload Invoice' }).nth(2) Call log: - waiting for getByRole('main').getByRole('link', { name: /upload invoice/i }) 68 | test('Upload Invoice button links to /upload', async ({ uploaderPage: page }) => { 69 | await page.goto('/invoices'); > 70 | await page.getByRole('main').getByRole('link', { name: /upload invoice/i }).click(); | ^ 71 | await expect(page).toHaveURL(/\/upload/); 72 | }); 73 | at /home/runner/work/InvoiceScan/InvoiceScan/packages/frontend/e2e/invoices.spec.ts:70:81
Backend — quality
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, actions/setup-node@v4, gitleaks/gitleaks-action@v2. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Frontend — quality
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Frontend — quality: packages/frontend/app/invoices/[id]/page.tsx#L442
Forbidden non-null assertion
Backend — E2E tests
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Backend — integration tests
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Playwright — UI E2E tests
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, actions/setup-node@v4, actions/upload-artifact@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
🎭 Playwright Run Summary
1 failed [chromium] › e2e/invoices.spec.ts:68:7 › Invoice list — navigation › Upload Invoice button links to /upload 1 skipped 37 passed (1.1m)

Artifacts

Produced during runtime
Name Size Digest
gitleaks-results.sarif
383 Bytes
sha256:c409487d77c929be07f8cf3f4201fd7cfe468f2ad9018156864040c93b6de97d
playwright-report Expired
1.35 MB
sha256:7635de721adb08a848fac85187b5e01405655d562baf32b76d23325e59318e32
playwright-results Expired
755 KB
sha256:1ee05ca3eb261e4c478061369272ddf8d6e591ab61ec1cceaba5f23d4aaa6794