029 — should create two sprints and start both of them¶
Description¶
Verifies that only one sprint can be active at a time: after starting and completing Sprint 1, the "Start sprint" affordance reappears on Sprint 2 and the start → complete flow works for it as well.
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, then click "Create". Expected: "Sprint created" toast.
- Create "Sprint 2" with 4-week duration starting today, then click "Create". Expected: "Sprint created" toast, backlog now shows 3 sprint groups.
- Add "Created Task 1" to Sprint 1 and "Created Task 2" to Sprint 2. Expected: "Created" toast appears for each; Backlog still has 5 tasks, Sprint 1 has 1 task, Sprint 2 has 1 task; 2 "Start sprint" buttons are visible on the page.
- Click "Start sprint" on Sprint 1 and confirm the dialog. Expected: "Sprint started" toast appears and exactly 0 remaining "Start sprint" buttons are visible (a sprint is now active).
- Click "Complete sprint". Expected: overview shows Sprint 1 with 0 completed tasks and 1 open task. Confirm. Expected: "Completed" toast.
- Check counters. Expected: 1 "Start sprint" button is visible again and Backlog now has 6 tasks (Sprint 1's open task returned to backlog).
- Click "Start sprint" on Sprint 2 and confirm. Expected: "Sprint started" toast, no remaining "Start sprint" buttons.
- Click "Complete sprint". Expected: overview shows Sprint 2 with 0 completed and 1 open task. Confirm. Expected: "Completed" toast and Backlog now has 7 tasks.
Related¶
- Spec:
playwright/tests/integration/backlog.spec.ts(line 302)