Guest checkout was unreachable: the homepage CTA "Fortsatt till brevet" always linked to /compose (requiresAuth), so anonymous users hit the router guard and got redirected to /logga-in instead of reaching the guest checkout flow. Changes: - HomePage.vue: compute CTA target based on auth state. Authenticated users still go to /compose; unauthenticated users go to /gast-bestallning with the plate as a query param. - GuestCheckoutPage.vue: accept plate from route.query.plate so the user does not have to re-enter it after looking it up on the homepage. - HomePage.spec.ts: add Pinia setup + guest-checkout route; update CTA assertion to expect /gast-bestallning?plate=... when unauthenticated. All 318 frontend tests pass, vue-tsc clean (exit 0). |
||
|---|---|---|
| .. | ||
| 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.