Skip to content

078 — (receipt) km problems for all maintenance types when over limit

Description

Creates four maintenance records (oil change 10 000, brake discs 8 250, brake pads 8 500, other 8 750) and updates mileage to 9 510 — all four problems appear.

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 four maintenance records — Expected: All saved
  2. Update mileage to 9 510 — Expected: Problems count = 4
  3. Update to 20 000 — Expected: All four problems still present
  • Spec: tests/e2e/tests/vehicle.spec.ts