Skip to content

028 — should create two sprints and delete one of them

Description

Verifies that a sprint can be moved to trash from the backlog, the confirmation dialog shows the right wording, and the deleted sprint disappears from the list while the other remains.

Preconditions

  • Fresh tenant is registered, onboarded and signed in via the API
  • A seed project with 5 backlog tasks (and the default empty Backlog group) already exists
  • The user is on the project's Backlog page

Steps

  1. Create "Sprint 1" with 4-week duration starting today and click "Create". Expected: "Sprint created" toast appears.
  2. Create "Sprint 2" with 4-week duration starting today and click "Create". Expected: "Sprint created" toast appears.
  3. Inspect the backlog. Expected: 3 sprint groups are listed (Backlog default + Sprint 1 + Sprint 2).
  4. Open the row menu on "Sprint 1" and click "Delete". Expected: a confirmation dialog reads "Move sprint to trash" with the text "Are you sure you would like the selected sprint to be moved to trash?".
  5. Confirm by clicking "Move to trash". Expected: "Moved to trash" toast appears.
  6. Inspect the backlog. Expected: only 2 sprint groups remain (Backlog default + Sprint 2).
  • Spec: playwright/tests/integration/backlog.spec.ts (line 270)