File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ Feature: Manage WordPress attachments
8181 When I run `wp media import {CACHE_DIR}/large-image.jpg --post_id=1 --preserve-filetime --porcelain`
8282 Then save STDOUT as {ATTACH_ID}
8383
84- And I run `wp post get {ATTACH_ID} --field=post_date`
84+ When I run `wp post get {ATTACH_ID} --field=post_date`
8585 Then STDOUT should be:
8686 """
8787 1980-01-03 08:05:00
@@ -254,7 +254,7 @@ Feature: Manage WordPress attachments
254254 https://example.com/wp-content/uploads/
255255 """
256256
257- Then STDOUT should contain:
257+ And STDOUT should contain:
258258 """
259259 /large-image.jpg
260260 """
Original file line number Diff line number Diff line change @@ -434,7 +434,7 @@ Feature: Regenerate WordPress attachments
434434 """
435435 Success: Regenerated 2 of 2 images
436436 """
437- Then the wp-content/uploads/large-image-125x125.jpg file should exist
437+ And the wp-content/uploads/large-image-125x125.jpg file should exist
438438 And the wp-content/uploads/large-image-1-125x125.jpg file should exist
439439 And the wp-content/uploads/large-image-200x200.jpg file should exist
440440 And the wp-content/uploads/large-image-1-200x200.jpg file should exist
@@ -1032,7 +1032,7 @@ Feature: Regenerate WordPress attachments
10321032
10331033 When I run `wp media import {CACHE_DIR}/canola.jpg --title="My imported JPG attachment" --porcelain`
10341034 Then save STDOUT as {JPG_ATTACHMENT_ID}
1035- Then the wp-content/uploads/canola-300x225.jpg file should exist
1035+ And the wp-content/uploads/canola-300x225.jpg file should exist
10361036
10371037 When I run `wp media regenerate --yes`
10381038 Then STDOUT should contain:
You can’t perform that action at this time.
0 commit comments