Skip to content

067 — should assign multiple vehicles to single receipt

Description

Links two different vehicles to the same receipt and verifies each vehicle's Receipts tab shows the shared receipt with both vehicles listed.

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 and vehicle2 to the same receipt — Expected: Vehicles field shows both plates
  2. Each vehicle's Receipts tab shows the receipt with both vehicles — Expected: Shared receipt visible
  • Spec: tests/e2e/tests/vehicle.spec.ts