diff --git a/features/core-check-update.feature b/features/core-check-update.feature index 6a276919..32ede965 100644 --- a/features/core-check-update.feature +++ b/features/core-check-update.feature @@ -9,11 +9,9 @@ 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: @@ -21,10 +19,8 @@ Feature: Check for more recent versions 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: @@ -32,10 +28,8 @@ Feature: Check for more recent versions 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: