Skip to content

030 — should create two sprints, finish one of them and move unfinished task to second

Description

Verifies the "Complete sprint" dialog's "Move unfinished tasks to" option: when Sprint 1 is completed, its open task can be redirected to Sprint 2 instead of returning to the backlog.

Preconditions

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

Steps

  1. Create "Sprint 1" with 4-week duration starting today. Expected: "Sprint created" toast.
  2. Create "Sprint 2" with 4-week duration starting today. Expected: "Sprint created" toast and 3 sprint groups are listed.
  3. Add "Created Task 1" to Sprint 1 and "Created Task 2" to Sprint 2. Expected: "Created" toast appears for each, Backlog has 5 tasks, Sprint 1 has 1 task, Sprint 2 has 1 task, and 2 "Start sprint" buttons are visible.
  4. Click "Start sprint" on Sprint 1 and confirm. Expected: "Sprint started" toast appears and there are no remaining "Start sprint" buttons.
  5. Click "Complete sprint". Expected: overview shows Sprint 1 with 0 completed tasks and 1 open task.
  6. In the "Move unfinished tasks to" picker, select "Sprint 2", then confirm complete. Expected: "Completed" toast appears.
  7. Inspect the backlog. Expected: Sprint 2 now has 2 tasks and only 1 "Start sprint" button is visible, while Backlog still holds the original 5 tasks.
  • Spec: playwright/tests/integration/backlog.spec.ts (line 373)