File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,24 @@ Feature: Manage WordPress post revisions
4949 Success: Updated post {POST_ID}.
5050 """
5151
52- When I run `wp post list --post_type=revision --post_parent={POST_ID} --fields=ID --format=csv --orderby=ID --order=ASC`
53- Then STDOUT should not be empty
52+ When I run `wp post update {POST_ID} --post_content='Third version' `
53+ Then STDOUT should contain:
54+ """
55+ Success: Updated post {POST_ID}.
56+ """
5457
55- When I run `wp post list --post_type=revision --post_parent={POST_ID} --format=ids --orderby=ID --order=ASC`
58+ When I run `wp post list --post_type=revision --post_parent={POST_ID} --fields=ID -- format=ids --orderby=ID --order=ASC`
5659 Then STDOUT should not be empty
60+ And save STDOUT as {REVISION_IDS}
61+
62+ When I run `echo "{REVISION_IDS}" | awk '{print $1}' `
63+ Then save STDOUT as {REVISION_ID_1}
64+
65+ When I run `echo "{REVISION_IDS}" | awk '{print $2}' `
66+ Then save STDOUT as {REVISION_ID_2}
67+
68+ When I run `wp post revision diff {REVISION_ID_1} {REVISION_ID_2}`
69+ Then the return code should be 0
5770
5871 Scenario : Show diff between revision and current post
5972 When I run `wp post create --post_title='Diff Test' --post_content='Original text' --porcelain`
You can’t perform that action at this time.
0 commit comments