Skip to content

062 — should create vehicle with all form fields filled

Description

Creates a vehicle with license plate, VIN, brand, model, 5 seats, state, 3 500 kg weight, tow bar, 500 000 acquisition value, warranty 24 months, REX device ID, note and image. Verifies all fields render on the detail page.

Preconditions

  • Clean database
  • User logged in with ADMIN role
  • Two vehicle brands and models pre-created

Steps

  1. On Vehicles page click new vehicleExpected: Form opens
  2. Fill all fields and upload car image; Save — Expected: Vehicle ABC1234 appears in list with Brand 1 / Model 1
  3. Open vehicle detail — Expected: All fields match entered values, image visible
  • Spec: tests/e2e/tests/vehicle.spec.ts