068 — should add maintenance record via receipt¶
Description¶
Creates a maintenance record through a receipt's create maintenance action (type Výměna oleje a filtrů, price 3 333, mileage 10 km, next 10 000 km).
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 receipt click create maintenance — Expected: Maintenance form opens
- Fill and save — Expected: Maintenance appears on vehicle1 Maintenance tab with correct type/date/price
Related¶
- Spec:
tests/e2e/tests/vehicle.spec.ts