Skip to content

601 — should set workflow ToDo - InPrg/In Test - Done and test it in task

Description

Verifies a branched workflow with a custom In Test status alongside InPrg: ToDo → InPrg → (In Test or Done) → ToDo. The branching choice between In Test and Done 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 group), and configure transitions: ToDoDone, In Test; InPrgToDo; DoneInPrg, In Test; In TestInPrg. Save the workflow. Expected: "Saved" toast and all four statuses (ToDo, InPrg, Done, In Test) appear in the editor.
  2. Open Tasks, Add task, set title. Expected: default status ToDo and standard create-time menu.
  3. Click Create. Expected: "Created" toast.
  4. Reopen the task. Expected: only InPrg is allowed. Set InPrg, Save. Expected: "Updated" toast.
  5. Reopen the task. Expected: allowed next statuses are exactly In Test and Done (branch point). Set In Test, Save. Expected: "Updated" toast.
  6. Reopen the task. Expected: allowed next statuses are Done and ToDo. Set Done, Save. Expected: "Updated" toast.
  7. Reopen the task. Expected: only ToDo is allowed, confirming the loop back.
  • Spec: playwright/tests/integration/workflows.spec.ts (line 254)