004 — should check required fields without unit¶
Description¶
Verifies the validation behaviour of the create-additional-item form when the unit toggle is off: only the name is required, and trying to save an empty form must surface a "name is required" error without complaining about unit or amount.
Preconditions¶
- Signed in as the owner of a freshly provisioned organization
- The Additional Items page is open on the "Additional items" tab
Steps¶
- Click "Add additional item" then "Create additional item" to open the empty form.
- Click "Save" without entering anything. Expected: A required-field error is shown for the name field, while unit and amount stay free of validation errors.
Related¶
- Spec:
playwright/tests/integration/additionalItem.spec.ts(line 303)