Skip to content

494 — should create new team

Description

Verifies that an admin can create a new team with labels and that the team is listed correctly with its labels, title, and breadcrumb on the Teams page.

Preconditions

  • Signed-in admin user with seeded test users and three pre-created labels.
  • The Teams page is open.

Steps

  1. Click the "Add team" button to open the new-team form.
  2. Enter the generated team name into the Title field.
  3. Add the three seeded labels (label1, label2, label3) to the team.
  4. Click Save. Expected: a "Created" success popup appears and the Teams list shows 1 team. Expected: the new team row displays all three labels (label1, label2, label3).
  5. Double-click the team row, then click "Edit team". Expected: the Title field shows the original team name, and the Labels chip control shows all three labels (label1, label2, label3).
  6. Click Cancel. Expected: the breadcrumb on the team detail page reads the team's name.
  7. Click "All teams" to return to the list. Expected: the list still shows exactly 1 team.
  • Spec: playwright/tests/integration/teams.spec.ts (line 98)