bilhej/frontend/src/__tests__
Joakim Mörling 8cd7991603 test: add payment flow tests and fix strict-mode e2e violations
Vitest:
  - PaymentRedirect.spec.ts (8 tests): renders heading and 49 kr,
    shows plate from query, Betalt button exists, calls payOrder on
    click, navigates to /orders on success, shows error on failure,
    disables button while paying, shows mock note
  - ComposePage.spec.ts: update navigation test to expect /betalning
    route with orderId param instead of /orders; add payment route
    to test router; add PaymentRedirect import

Playwright E2E:
  - payment-redirect.spec.ts (4 tests): compose→payment navigation,
    Betalt→orders flow, auth guard redirects to login, mock note
    visible
  - compose.spec.ts: rename test and update assertion from /orders
    to /betalning/ URL pattern; use getByRole('heading',
    { name: 'Betalning' }) to avoid strict mode violation with
    mock-note paragraph containing the word 'Betalning'
2026-05-15 20:31:16 +02:00
..
AboutPage.spec.ts feat: add app shell with header, footer, and compose flow 2026-05-01 18:19:53 +02:00
AdminDashboard.spec.ts test: add tracking entry vitest and e2e tests, fix pre-existing flaky tests 2026-05-15 19:59:00 +02:00
App.spec.ts feat: show auth state in header with conditional nav links 2026-05-14 13:11:11 +02:00
AppFooter.spec.ts feat: add app shell with header, footer, and compose flow 2026-05-01 18:19:53 +02:00
AppHeader.spec.ts refactor: remove template from order flow 2026-05-14 16:55:59 +02:00
authStore.spec.ts feat: show auth state in header with conditional nav links 2026-05-14 13:11:11 +02:00
ComposePage.spec.ts test: add payment flow tests and fix strict-mode e2e violations 2026-05-15 20:31:16 +02:00
ContactPage.spec.ts feat: add app shell with header, footer, and compose flow 2026-05-01 18:19:53 +02:00
HomePage.spec.ts feat: add app shell with header, footer, and compose flow 2026-05-01 18:19:53 +02:00
LoginPage.spec.ts feat: add Vue Router auth guards with admin role support 2026-05-14 12:39:17 +02:00
OrdersPage.spec.ts refactor: remove template from order flow 2026-05-14 16:55:59 +02:00
PaymentRedirect.spec.ts test: add payment flow tests and fix strict-mode e2e violations 2026-05-15 20:31:16 +02:00
PlateInput.spec.ts feat: add PlateInput component with Swedish plate validation and fake vehicle lookup 2026-05-01 17:38:28 +02:00
RegisterPage.spec.ts feat: add user registration flow (backend + frontend) 2026-05-01 19:37:39 +02:00
Router.spec.ts refactor: remove template from order flow 2026-05-14 16:55:59 +02:00
setup.ts feat: add user registration flow (backend + frontend) 2026-05-01 19:37:39 +02:00
Store.spec.ts feat: add PlateInput component with Swedish plate validation and fake vehicle lookup 2026-05-01 17:38:28 +02:00
TemplatePicker.spec.ts feat: add template picker modal to compose page 2026-05-14 17:39:21 +02:00
VehicleInfo.spec.ts feat: extract VehicleInfo component from HomePage 2026-05-01 18:06:04 +02:00