Skip to content

Commit cd31f29

Browse files
Copilotswissspidy
andcommitted
Add Behat tests for progress bar functionality
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 41bbda5 commit cd31f29

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

features/search-replace.feature

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,3 +1392,29 @@ Feature: Do global search/replace
13921392
"""
13931393
Success: Made 0 replacements.
13941394
"""
1395+
1396+
@require-mysql
1397+
Scenario: Progress bar shows when not in verbose mode
1398+
Given a WP install
1399+
And I run `wp post generate --count=100`
1400+
1401+
When I run `wp search-replace http://example.com http://example.org --precise`
1402+
Then STDOUT should contain:
1403+
"""
1404+
Updating
1405+
"""
1406+
1407+
@require-mysql
1408+
Scenario: Progress bar does not show in verbose mode
1409+
Given a WP install
1410+
And I run `wp post generate --count=10`
1411+
1412+
When I run `wp search-replace http://example.com http://example.org --verbose`
1413+
Then STDOUT should contain:
1414+
"""
1415+
Checking:
1416+
"""
1417+
And STDOUT should not contain:
1418+
"""
1419+
Updating
1420+
"""

0 commit comments

Comments
 (0)