Skip to content

085 — (detail) km problem when 1 km over maintenance limit

Description

Same as 072 but maintenance created from the vehicle detail page (not via receipt).

Preconditions

  • Clean database
  • User logged in with ADMIN role
  • Two vehicle brands and models pre-created
  • One vehicle created via API with rexDeviceId=10

Steps

  1. Create maintenance from vehicle detail (mileage 10, next 10 000) — Expected: OK
  2. Update mileage to 9 511 — Expected: Problems count = 1
  • Spec: tests/e2e/tests/vehicle.spec.ts