065 — should assign single vehicle to receipt¶
Description¶
Links a single vehicle to a receipt and verifies linkage appears in both receipt list and vehicle's Receipts tab.
Preconditions¶
- Clean database
- User logged in with ADMIN role
- Two vehicle brands and models pre-created
- Two vehicles + receipts created via API; receipts linked to both vehicles; app settings configured
Steps¶
- On Receipts page verify receipt with empty vehicles field — Expected: Receipt listed
- Link vehicle1 (ABC1234) and save — Expected: Vehicles field shows ABC1234
- Open vehicle1 detail > Receipts tab with period start 01.01.2025 — Expected: Receipt visible with correct linkage
Related¶
- Spec:
tests/e2e/tests/vehicle.spec.ts