Skip to content

499 — should archive team from inside

Description

Verifies that an admin can archive a team from inside the team detail (via the Edit menu). Confirming the archive closes the edit modal and keeps the user on the team detail page (no redirect — unlike move-to-trash); navigating back to the Teams list shows the archived team hidden from the default view.

Preconditions

  • Signed-in admin user.
  • The Teams page is open.

Steps

  1. Click "Add team", enter the team name (team), and click Save. Expected: a "Created" popup appears and the Teams list shows 1 team.
  2. Double-click the team row to open the team detail, then click "Edit team".
  3. From the edit menu, click "Archive". Expected: a confirmation modal asks the user to confirm archiving this team.
  4. Confirm the modal. Expected: an "Archived" popup appears, the edit modal closes, and the user stays on the team detail page — a warning-colored "Archived" tag is shown next to the team title and the breadcrumb still shows the team name.
  5. Click the "Teams" breadcrumb to return to the Teams list. Expected: the archived team is hidden from the default view (0 teams shown).
  • Spec: playwright/tests/integration/teams.spec.ts (line 188)