071 — should track mileage with maintenance record¶
Description¶
Verifies vehicle mileage on the detail page updates when REX device reports new mileage; no problems when still below threshold.
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¶
- Create maintenance with mileage 10 km, next 10 000 km — Expected: Row appears
- Open detail > Maintenance — Expected: Detail mileage shows 10 km; Problems tab empty
- Update mileage to 20 000 via REX API and reload — Expected: Detail mileage shows 20 000
Related¶
- Spec:
tests/e2e/tests/vehicle.spec.ts