Skip to content

607 — should set workflow ToDo - InPrg - Done with mouse drag and test it in task

Description

Verifies that a strict linear ToDo → InPrg → Done → ToDo Task workflow can be built entirely via drag-and-drop (starting from disabling the default Any status mode), and is then 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. Open the ToDo status, switch the "Any status" transition off, and Save the status. Expected: ToDo no longer accepts any transition.
  2. Drag ToDo → InPrg. Expected: InPrg lists ToDo as its incoming transition.
  3. Drag InPrg → Done. Expected: Done lists InPrg.
  4. Drag Done → ToDo. Expected: ToDo lists Done.
  5. Click Save workflow.
  6. Open Tasks, Add task, set title. Expected: default status ToDo, standard create-time menu. Click Create. Expected: "Created" toast.
  7. Reopen the task. Expected: only InPrg allowed. Set InPrg, Save. Expected: "Updated" toast.
  8. Reopen the task. Expected: only Done allowed. Set Done, Save. Expected: "Updated" toast.
  9. Reopen the task. Expected: only ToDo is allowed.
  • Spec: playwright/tests/integration/workflows.spec.ts (line 529)