Skip to content

591 — should discard changes

Description

Verifies that confirming "Discard changes" reverts pending edits in the workflow editor, restoring the previously saved statuses. Runs in both the Task and Project workflow editor.

Preconditions

  • Signed in as an admin of a freshly seeded organization that already has a default project.
  • Workflow editor open showing the default three statuses: ToDo, InPrg, Done.

Steps

  1. Confirm the editor shows 3 statuses.
  2. Delete the InPrg status. Expected: the editor now shows 2 statuses.
  3. Click "Discard changes". Expected: a confirmation dialog appears asking the user to confirm discarding the unsaved edits.
  4. Confirm the discard. Expected: the editor restores all 3 original statuses (ToDo, InPrg, Done).
  • Spec: playwright/tests/integration/workflows.spec.ts (line 87)