Skip to content

585 — should check required fields

Description

Verifies that submitting the Add User form with every optional section expanded but no values entered triggers the "required" validation error on every required field (email plus all the fields inside the expanded sections).

Preconditions

  • Signed-in admin on a freshly seeded organization.
  • The Users page is open.

Steps

  1. Click "Add user" and switch the modal to the detailed view.
  2. Without entering anything, expand all five creatable sections: Work Capacity, Working Schedule, Cost Rate, Commission, and Contract Details.
  3. Click Create. Expected: the form is not submitted.
  4. Expected: an inline "required" error is shown on each of the following fields: email, work-capacity value, work-capacity hours-per "Select" unit, work-capacity productivity coefficient, cost-rate value, commission value, contract type, and contract expiry date.
  • Spec: playwright/tests/integration/user.spec.ts (line 332)