Skip to content

Commit 767d5da

Browse files
Copilotswissspidy
andauthored
Fix feature test assertions to use captured file path from STDOUT
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 5603469 commit 767d5da

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎features/extension-download.feature‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ Feature: Download WordPress.org extensions without loading WordPress
2424
"""
2525
Success: Downloaded plugin package to
2626
"""
27-
And the /tmp/wp-cli-download-test-plugin/debug-bar file should exist
27+
And save STDOUT 'Success: Downloaded plugin package to (.+)' as {DOWNLOADED_PLUGIN}
28+
And the {DOWNLOADED_PLUGIN} file should exist
2829
And STDERR should be empty
2930

3031
Scenario: Downloading a specific version of a plugin
@@ -107,7 +108,8 @@ Feature: Download WordPress.org extensions without loading WordPress
107108
"""
108109
Success: Downloaded theme package to
109110
"""
110-
And the /tmp/wp-cli-download-test-theme/twentytwelve file should exist
111+
And save STDOUT 'Success: Downloaded theme package to (.+)' as {DOWNLOADED_THEME}
112+
And the {DOWNLOADED_THEME} file should exist
111113
And STDERR should be empty
112114

113115
Scenario: Downloading a specific version of a theme

0 commit comments

Comments
 (0)