Skip to content

Commit

Permalink
Merge pull request #277 from wp-cli/fix/flaky-test
Browse files Browse the repository at this point in the history
Fix flaky tests due to changing download URL
  • Loading branch information
swissspidy authored Dec 20, 2024
2 parents 4bb39ec + 56bcdc2 commit ab65d19
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions features/core-check-update.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,27 @@ Feature: Check for more recent versions
When I run `wp core download --version=5.8 --force`
Then STDOUT should not be empty

When I run `wp core check-update`
Then STDOUT should be a table containing rows:
| version | update_type | package_url |
| {WP_VERSION-latest} | major | https://downloads.wordpress.org/release/wordpress-{WP_VERSION-latest}.zip |
| {WP_VERSION-5.8-latest} | minor | https://downloads.w.org/release/wordpress-{WP_VERSION-5.8-latest}-partial-0.zip |
When I run `wp core check-update --format=csv`
Then STDOUT should match #{WP_VERSION-latest},major,https://downloads.(w|wordpress).org/release/wordpress-{WP_VERSION-latest}.zip#
And STDOUT should match #{WP_VERSION-5.8-latest},minor,https://downloads.(w|wordpress).org/release/wordpress-{WP_VERSION-5.8-latest}-partial-0.zip#

When I run `wp core check-update --format=count`
Then STDOUT should be:
"""
2
"""

When I run `wp core check-update --major`
Then STDOUT should be a table containing rows:
| version | update_type | package_url |
| {WP_VERSION-latest} | major | https://downloads.wordpress.org/release/wordpress-{WP_VERSION-latest}.zip |
When I run `wp core check-update --major --format=csv`
Then STDOUT should match #{WP_VERSION-latest},major,https://downloads.(w|wordpress).org/release/wordpress-{WP_VERSION-latest}.zip#

When I run `wp core check-update --major --format=count`
Then STDOUT should be:
"""
1
"""

When I run `wp core check-update --minor`
Then STDOUT should be a table containing rows:
| version | update_type | package_url |
| {WP_VERSION-5.8-latest} | minor | https://downloads.w.org/release/wordpress-{WP_VERSION-5.8-latest}-partial-0.zip |
When I run `wp core check-update --minor --format=csv`
Then STDOUT should match #{WP_VERSION-5.8-latest},minor,https://downloads.(w|wordpress).org/release/wordpress-{WP_VERSION-5.8-latest}-partial-0.zip#

When I run `wp core check-update --minor --format=count`
Then STDOUT should be:
Expand Down

0 comments on commit ab65d19

Please # to comment.