Skip to content

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

  1. Create maintenance with mileage 10 km, next 10 000 km — Expected: Row appears
  2. Open detail > Maintenance — Expected: Detail mileage shows 10 km; Problems tab empty
  3. Update mileage to 20 000 via REX API and reload — Expected: Detail mileage shows 20 000
  • Spec: tests/e2e/tests/vehicle.spec.ts