mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
Add 4 end-to-end tests for the complete Edit flow: test_full_edit_flow_goal_to_publish (capability_check → send_edit_goal → submit_edit_rules → approve_repair → run_affected_tests → review → publish_workflow → EDIT_PUBLISH terminal), test_full_edit_flow_keep_draft_completes_without_publish (same but keep_draft without publishing), test_continue_adjusting_then_reapprove_is_idempotent (loop back via re_fix), and test_revert_then_retry_after_revert_reapprove_is_idempotent (loop via undo then re_fix). All tests drive the real Runner + edit_registry + PlaceholderAgent + FakeEditDifyPort with version-CAS for each advance(). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>