Skip to content

066 — should display vehicle in multiple receipts

Description

Links the same vehicle to two receipts and verifies both appear in the vehicle's Receipts tab; the other vehicle has no receipts.

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. Link vehicle1 to receipt1 and receipt2 — Expected: Both receipts show vehicle1
  2. Open vehicle1 > Receipts — Expected: Both receipts appear
  3. Open vehicle2 > Receipts — Expected: No receipts
  • Spec: tests/e2e/tests/vehicle.spec.ts