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 / Doneworkflow.
Steps¶
- Add a new custom status
In Test(underInPrg). Build the workflow by dragging:Done → ToDo,In Test → ToDo(Expected:ToDolistsDone,In Testas transitions);ToDo → InPrg(Expected:InPrglistsToDo);In Test → Done,InPrg → Done(Expected:DonelistsInPrg,In Test);InPrg → In Test(Expected:In TestlistsInPrg). - Save the workflow. Expected: "Saved" toast and all four statuses present.
- Open Tasks, Add task, set title. Expected: default status
ToDo. - Click Create. Expected: "Created" toast.
- Reopen the task. Expected: only
InPrgallowed. SetInPrg, Save. Expected: "Updated" toast. - Reopen the task. Expected: allowed next statuses are exactly
In TestandDone. SetIn Test, Save. Expected: "Updated" toast. - Reopen the task. Expected: allowed next statuses are
DoneandToDo. SetDone, Save. Expected: "Updated" toast. - Reopen the task. Expected: only
ToDois allowed.
Related¶
- Spec:
playwright/tests/integration/workflows.spec.ts(line 304)