Skip to content

509 — should create two teams and check users tab if teams are assigned

Description

Verifies that team membership added on the Teams page is correctly reflected on the Users tab — each user shows all teams they belong to.

Preconditions

  • Signed-in admin user (the team owner).
  • Two seeded users (member1, member2) are available.
  • A first team (team) has just been created and the team detail is open.

Steps

  1. In team, click "Add members", pick member1 and member2, pick the roles teamRoleName1 and teamRoleName2, and click Save. Expected: a success popup appears.
  2. Click "All teams" to return to the list.
  3. Click "Add team", enter the second team name (team2), and click Save. Expected: a "Created" popup appears and the Teams list shows 2 teams.
  4. Double-click team2, click "Add members", pick member1, pick the role teamRoleName3, and click Save. Expected: a success popup appears.
  5. Switch to the Users tab. Expected: the Users page is shown.
  6. Reload the page so the Teams column is up-to-date. Expected: member1's row shows both team and team2 in the Teams column. Expected: member2's row shows only team. Expected: the signed-in user's row shows both team and team2 (they are the owner of both).
  • Spec: playwright/tests/integration/teams.spec.ts (line 373)