025 — should check correct counts of story points and logic for tasks in backlog¶
Description¶
Verifies the backlog header counters (task count, To-do / In progress / Done story-point totals) update correctly as task statuses change and that tasks moved to Done leave the backlog list.
Preconditions¶
- Fresh tenant is registered, onboarded and signed in via the API
- A seed project with 5 backlog tasks, each with the same story-point value, exists
- The user is on the project's Backlog page
Steps¶
- Inspect the "Backlog" group header. Expected: task count is 5 and the rendered task tiles also count 5; the To-do counter equals 5 × seed story points, In progress counter is 0 and Done counter is 0.
- Open the task tile "Task 05", change its status to "In progress" and save. Expected: "Updated" toast appears.
- Re-inspect the "Backlog" header. Expected: task count and tile count remain 5; To-do counter drops to 4 × story points, In progress counter equals 1 × story points, Done counter remains 0; "Task 05" displays the "In progress" status badge.
- Open the task tile "Task 04", change its status to "Done" and save. Expected: "Updated" toast appears.
- Re-inspect the "Backlog" header. Expected: task count and tile count are now 4 (Done task is no longer listed in Backlog); To-do counter is 3 × story points, In progress counter remains 1 × story points, Done counter is 0 (Done tasks are not counted in this Backlog total).
Related¶
- Spec:
playwright/tests/integration/backlog.spec.ts(line 150)