Add 41 tests covering all four guest checkout modules that had 0% function coverage in CI, raising overall frontend coverage from 76.69% to 84.64% statements, well above the 70% threshold. New test files: - guestOrders.spec.ts: verify createGuestOrder posts correct body, fetchGuestOrder GETs /guest-orders/:token, payGuestOrder POSTs /guest-orders/:token/pay; error propagation - GuestCheckoutPage.spec.ts: form validation (plate regex, email regex, button disabled state), character counter, successful submission navigates to guest-payment with token+plate query, API failure shows Swedish error message - GuestOrderPage.spec.ts: loading state, order detail rendering, all six status labels (pending_payment, paid, sent, delivered, failed, cancelled), payment link visibility, fetch error handling - GuestPaymentRedirect.spec.ts: Swish number/amount display, QR code rendering, Swish payment link, confirmation dialog flow, payGuestOrder call on confirm, navigation on success, error for missing token and failed fetch, redirect when already paid, magic order link Also includes a rebase onto origin/master (PR #16 Swish QR fixes, payment unit tests, e2e retry improvements) which resolves the 'not up to date with master' from the review comment. |
||
|---|---|---|
| .. | ||
| e2e | ||
| public | ||
| src | ||
| .gitignore | ||
| .prettierrc | ||
| eslint.config.ts | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| playwright.config.ts | ||
| README.md | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
Vue 3 + TypeScript + Vite
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.
Learn more about the recommended Project Setup and IDE Support in the Vue Docs TypeScript Guide.