Skip to content

005 — should check required fields with unit

Description

Verifies that turning the unit toggle on adds two new required fields to the create-additional-item form: when the form is submitted empty, name, unit and amount must all show validation errors.

Preconditions

  • Signed in as the owner of a freshly provisioned organization
  • The Additional Items page is open on the "Additional items" tab

Steps

  1. Click "Add additional item" then "Create additional item" to open the form.
  2. Switch the unit toggle on, then click "Save" without filling anything else. Expected: Required-field errors appear for the name, unit and amount fields.
  • Spec: playwright/tests/integration/additionalItem.spec.ts (line 310)