Skip to content

602 — should set workflow ToDo - InPrg/In Test - Done with drag statuses and test it in task

Description

Verifies the same branched ToDo → InPrg → (In Test or Done) → ToDo workflow as 601 can be built via drag-and-drop between statuses (instead of the Add-transition picker), and that drag-built workflow is enforced on a real task.

Preconditions

  • Signed in as an admin of a freshly seeded organization that already has a default project.
  • Task workflow editor open at the default ToDo / InPrg / Done workflow.

Steps

  1. Add a new custom status In Test (under InPrg). Build the workflow by dragging: Done → ToDo, In Test → ToDo (Expected: ToDo lists Done, In Test as transitions); ToDo → InPrg (Expected: InPrg lists ToDo); In Test → Done, InPrg → Done (Expected: Done lists InPrg, In Test); InPrg → In Test (Expected: In Test lists InPrg).
  2. Save the workflow. Expected: "Saved" toast and all four statuses present.
  3. Open Tasks, Add task, set title. Expected: default status ToDo.
  4. Click Create. Expected: "Created" toast.
  5. Reopen the task. Expected: only InPrg allowed. Set InPrg, Save. Expected: "Updated" toast.
  6. Reopen the task. Expected: allowed next statuses are exactly In Test and Done. Set In Test, Save. Expected: "Updated" toast.
  7. Reopen the task. Expected: allowed next statuses are Done and ToDo. Set Done, Save. Expected: "Updated" toast.
  8. Reopen the task. Expected: only ToDo is allowed.
  • Spec: playwright/tests/integration/workflows.spec.ts (line 304)