042 — should assign task to sprint, and move sprint to trash¶
Description¶
Verifies what happens to a sprint's task when the sprint is moved to trash: the task is preserved and returned to the Backlog group while the sprint disappears.
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¶
- Create "Sprint 1" with 4-week duration starting today. Expected: "Sprint created" toast appears and the backlog now lists 2 sprint groups (Backlog default + Sprint 1).
- Add "Created Task 1" to Sprint 1. Expected: "Created" toast appears; Backlog has 5 tasks and Sprint 1 has 1 task.
- Open the row menu on "Sprint 1" and click "Delete". Expected: the "Move sprint to trash" confirmation dialog with the matching prompt is shown.
- Confirm by clicking "Move to trash". Expected: "Moved to trash" toast appears, only 1 sprint group remains (the Backlog default), and the Backlog group still shows 5 tasks — i.e. the task that was inside Sprint 1 was trashed together with the sprint and did not return to the backlog.
Related¶
- Spec:
playwright/tests/integration/backlog.spec.ts(line 743)