Skip to content

583 — should fill only working schedule and assert rest of expanded fields

Description

Verifies that the Working Schedule accordion (which behaves differently from the other creatable sections — it always starts collapsed regardless of saved data) can be filled at creation time, that the day checkboxes persist, and that filling only this section does not leave any of the other creatable sections expanded.

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; enter the new user's email.
  2. Expand the Working Schedule accordion and tick every weekday from Monday through Sunday.
  3. Click Create. Expected: a "user created" popup appears.
  4. Reload the Users page and double-click the new user to open the detail page. Expected: the email on the detail page matches.
  5. Expected: none of the other creatable accordions (work capacity, cost rate, commission, contract details) are expanded, because no values were saved into them.
  6. Click "Add working schedule" to expand the Working Schedule accordion. Expected: every day Monday–Sunday is shown as checked.
  • Spec: playwright/tests/integration/user.spec.ts (line 305)