Skip to content

027 — should create sprint, create two tasks with one InPrg and one Done and end sprint

Description

End-to-end happy path for a sprint lifecycle: create sprint → add three tasks → start sprint → flip statuses (Done, In progress) → complete sprint, then check that unfinished tasks return to the backlog and Done tasks leave the sprint counts.

Preconditions

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

Steps

  1. Create a sprint named "Sprint 1" with a 4-week duration starting today and a description "Sprint description", then click "Create". Expected: "Sprint created" toast appears.
  2. Add three tasks ("Created Task 1", "Created Task 2", "Created Task 3"), each with story points = 10, into "Sprint 1". Expected: a "Created" toast appears for each.
  3. Click "Start sprint" on "Sprint 1". Expected: the dialog shows the sprint description "Sprint description". Click "Start". Expected: "Sprint started" toast appears.
  4. Inspect "Sprint 1" header. Expected: task count = 3, To-do = 30, In progress = 0, Done = 0.
  5. Open "Created Task 1", set status to Done and save. Open "Created Task 3", set status to In progress and save. Expected: "Updated" toast appears for each.
  6. Inspect counters. Expected: in "Sprint 1" To-do = 10, In progress = 10, Done = 10; in "Backlog" To-do = 5 × seed story points and 5 tasks remain.
  7. Click "Complete sprint". Expected: the overview dialog lists "Sprint 1" with 1 completed task and 2 open tasks. Confirm complete. Expected: "Completed" toast appears.
  8. Inspect the backlog after completion. Expected: Backlog To-do = 5 × seed story points + 10 and In progress = 10, total backlog tasks = 7, "Created Task 2" is back in Backlog with status To do, "Created Task 3" is back in Backlog with status In progress, and "Sprint 1" is no longer visible.
  • Spec: playwright/tests/integration/backlog.spec.ts (line 193)