Skip to content

Commit 661a57e

Browse files
committed
Use I try for the update steps of the prefetch scenarios
`I run` fails on any STDERR output as well as on a non-zero exit, and the neighbouring `update --all` scenarios use `I try` for that reason. The theme scenario is tagged @require-wp-4.5 like the one before it.
1 parent 55ec7f3 commit 661a57e

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎features/plugin-update.feature‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ Feature: Update WordPress plugins
383383
When I run `wp plugin install wordpress-importer --version=0.5`
384384
Then STDOUT should not be empty
385385

386-
When I run `wp plugin update --all`
386+
When I try `wp plugin update --all`
387387
Then STDOUT should contain:
388388
"""
389389
Downloading 2 packages...
@@ -399,7 +399,7 @@ Feature: Update WordPress plugins
399399

400400
When I run `wp plugin install health-check --version=1.5.0 --force`
401401
And I run `wp plugin install wordpress-importer --version=0.5 --force`
402-
And I run `wp plugin update --all`
402+
And I try `wp plugin update --all`
403403
Then STDOUT should not contain:
404404
"""
405405
Downloading 2 packages...
@@ -418,7 +418,7 @@ Feature: Update WordPress plugins
418418
When I run `wp plugin install wordpress-importer --version=0.5`
419419
Then STDOUT should not be empty
420420

421-
When I run `wp plugin update --all`
421+
When I try `wp plugin update --all`
422422
Then STDOUT should not contain:
423423
"""
424424
Downloading 1 packages...

‎features/theme-update.feature‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ Feature: Update WordPress themes
258258
Success: Updated 2 of 2 themes.
259259
"""
260260

261+
@require-wp-4.5
261262
Scenario: Updating several themes downloads their packages side by side
262263
Given a WP install
263264
And an empty cache
@@ -269,7 +270,7 @@ Feature: Update WordPress themes
269270
When I run `wp theme install twentytwelve --version=1.0`
270271
Then STDOUT should not be empty
271272

272-
When I run `wp theme update --all`
273+
When I try `wp theme update --all`
273274
Then STDOUT should contain:
274275
"""
275276
Downloading 2 packages...

0 commit comments

Comments
 (0)