Skip to content

032 — should create two sprints and check active/inactive statuses

Description

Verifies that the Sprint dropdown on the task form correctly groups sprints under "Active" and "Future": before any sprint is started both sit under "Future"; after one is started it moves to "Active" and only the unstarted one remains under "Future".

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 the backlog lists 3 sprint groups.
  3. Click "Add task" in the backlog and open the Sprint dropdown on the task form. Expected: under "Future" both "Sprint 1" and "Sprint 2" are listed, and under "Active" only the "No matches found" placeholder appears (no active sprint yet).
  4. Fill in title "Created Task 1", pick Sprint 1, then click "Create". Expected: "Created" toast appears, Backlog has 5 tasks, Sprint 1 has 1 task, Sprint 2 has 0 tasks, and 2 "Start sprint" buttons are visible.
  5. Click "Start sprint" on Sprint 1 and confirm. Expected: "Sprint started" toast appears and there are no remaining "Start sprint" buttons.
  6. Click "Add task" again and re-open the Sprint dropdown. Expected: under "Future" only "Sprint 2" is listed; under "Active" only "Sprint 1" is listed.
  • Spec: playwright/tests/integration/backlog.spec.ts (line 476)