bilhej/frontend/e2e
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
..
admin-dashboard.spec.ts test: add payment flow tests and fix strict-mode e2e violations 2026-05-15 20:31:16 +02:00
auth-guards.spec.ts feat: add Vue Router auth guards with admin role support 2026-05-14 12:39:17 +02:00
compose.spec.ts test: add payment flow tests and fix strict-mode e2e violations 2026-05-15 20:31:16 +02:00
header-auth.spec.ts feat: add orders link to header nav for authenticated users 2026-05-14 15:31:06 +02:00
login.spec.ts feat: add Vue Router auth guards with admin role support 2026-05-14 12:39:17 +02:00
order-history.spec.ts test: add payment flow tests and fix strict-mode e2e violations 2026-05-15 20:31:16 +02:00
payment-redirect.spec.ts test: add payment flow tests and fix strict-mode e2e violations 2026-05-15 20:31:16 +02:00
register.spec.ts feat: add login page with Playwright E2E tests 2026-05-13 19:17:29 +02:00