Skip to content

Commit caeffdf

Browse files
committed
Make reset sidebar-2 test more flexible as it might already contain widgets
1 parent 405f24c commit caeffdf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

features/widget-reset.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Feature: Reset WordPress sidebars
172172
Then STDOUT should not be empty
173173

174174
When I run `wp widget list sidebar-2 --format=ids`
175-
Then STDOUT should be:
175+
Then STDOUT should contain:
176176
"""
177177
search-3 calendar-1
178178
"""
@@ -183,7 +183,7 @@ Feature: Reset WordPress sidebars
183183
And I run `wp widget list sidebar-2 --format=ids`
184184
Then STDOUT should be empty
185185
And I run `wp widget list wp_inactive_widgets --format=ids`
186-
Then STDOUT should be:
186+
Then STDOUT should contain:
187187
"""
188188
calendar-1 search-3
189189
"""

0 commit comments

Comments
 (0)