Skip to content

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

  1. On receipt click create maintenanceExpected: Maintenance form opens
  2. Fill and save — Expected: Maintenance appears on vehicle1 Maintenance tab with correct type/date/price
  • Spec: tests/e2e/tests/vehicle.spec.ts