Skip to content

Commit 09e7ccd

Browse files
authored
Merge pull request #210 from wp-cli/fix/tests
Skip fix-orientation tests on WP 4.9
2 parents a40a67a + e382c12 commit 09e7ccd

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

features/media-fix-orientation.feature

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ Feature: Fix WordPress attachments orientation
1111
Error: No images found.
1212
"""
1313

14-
@require-extension-exif @require-wp-4.0 @less-than-wp-5.3
14+
# On WP 4.9 tests this results in "Couldn't fix orientation".
15+
# Todo: Revisit this test and improve or potentially remove it if useless.
16+
@require-extension-exif @require-wp-4.0 @less-than-wp-4.9
1517
Scenario: Fix orientation for all images
1618
Given download:
1719
| path | url |
@@ -94,8 +96,14 @@ Feature: Fix WordPress attachments orientation
9496
Success: Images already fixed.
9597
"""
9698

97-
@require-extension-exif @require-wp-4.0 @less-than-wp-5.3
99+
# On newer versions (5.3+) the image is already considered fixed.
100+
# On WP 4.9 tests this results in "Couldn't fix orientation".
101+
# Todo: Revisit this test and improve or potentially remove it if useless.
102+
@require-extension-exif @require-wp-4.0 @less-than-wp-4.9
98103
Scenario: Fix orientation for single image
104+
Given download:
105+
| path | url |
106+
| {CACHE_DIR}/portrait-6.jpg | https://raw.githubusercontent.com/thrijith/test-images/master/Portrait_6.jpg |
99107
When I run `wp media import {CACHE_DIR}/portrait-6.jpg --title="Portrait Six" --porcelain`
100108
Then save STDOUT as {PORTRAIT_SIX}
101109

0 commit comments

Comments
 (0)