Skip to content

186 — should add three members at once

Description

Verifies that the Add Members dialog accepts multiple users and multiple roles in a single submission, that the existing owner is silently kept and surfaced via an "already added" notice, and that the new members receive both selected client roles.

Preconditions

  • Signed-in user (the owner) inside a freshly registered organization
  • A client and five additional employees have been seeded via the API
  • Two client roles have been pre-created
  • Browser is on the client's Members tab

Steps

  1. Click Add members, select employee 1, employee 2 and the owner in the Users field, and assign both Role 1 and Role 2, then Save. Expected: the owner is flagged with an "already added" warning.
  2. Verify the resulting list. Expected: the members list shows 3 entries — employee 1 and employee 2 each have both Role 1 and Role 2, while the owner keeps the Client Owner role.
  • Spec: playwright/tests/integration/client.spec.ts (line 583)