diff --git a/features/post.feature b/features/post.feature index ff510fe74..9fb286ac4 100644 --- a/features/post.feature +++ b/features/post.feature @@ -223,7 +223,7 @@ Feature: Manage WordPress posts Then STDOUT should be: """ http://example.com/?p=1 - http://example.com/?p=3 + http://example.com/?p={POST_ID} """ Scenario: Update a post from file or STDIN @@ -308,7 +308,7 @@ Feature: Manage WordPress posts """ When I run `wp post list --post_type='page' --field=title` - Then STDOUT should be: + Then STDOUT should contain: """ Sample Page """ diff --git a/features/site-empty.feature b/features/site-empty.feature index f04fe85c3..11d33db04 100644 --- a/features/site-empty.feature +++ b/features/site-empty.feature @@ -17,10 +17,10 @@ Feature: Empty a WordPress site of its data """ And the return code should be 1 - When I run `wp post create --post_title='Test post' --post_content='Test content.' --porcelain` - Then STDOUT should be: + When I run `wp post create --post_title='Test post' --post_content='Test content.'` + Then STDOUT should contain: """ - 4 + Success: Created post """ When I run `wp term create post_tag 'Test term' --slug=test --description='This is a test term'`