@@ -105,12 +105,12 @@ Feature: Reset WordPress sidebars
105
105
"""
106
106
0
107
107
"""
108
- And I run `wp widget list sidebar-2 --format=count`
108
+ When I run `wp widget list sidebar-2 --format=count`
109
109
Then STDOUT should be:
110
110
"""
111
111
0
112
112
"""
113
- And I run `wp widget list sidebar-3 --format=count`
113
+ When I run `wp widget list sidebar-3 --format=count`
114
114
Then STDOUT should be:
115
115
"""
116
116
0
@@ -120,19 +120,20 @@ Feature: Reset WordPress sidebars
120
120
"""
121
121
calendar-1
122
122
"""
123
- Then STDOUT should contain:
123
+ And STDOUT should contain:
124
124
"""
125
125
search-1
126
126
"""
127
- Then STDOUT should contain:
127
+ And STDOUT should contain:
128
128
"""
129
129
text-1
130
130
"""
131
131
132
132
Scenario : Testing movement of widgets while reset
133
133
When I run `wp widget add calendar sidebar-2 --title="Calendar" `
134
134
Then STDOUT should not be empty
135
- And I run `wp widget add search sidebar-2 --title="Quick Search" `
135
+
136
+ When I run `wp widget add search sidebar-2 --title="Quick Search" `
136
137
Then STDOUT should not be empty
137
138
138
139
When I run `wp widget list sidebar-2 --format=ids`
@@ -146,8 +147,9 @@ Feature: Reset WordPress sidebars
146
147
When I run `wp widget reset sidebar-2`
147
148
And I run `wp widget list sidebar-2 --format=ids`
148
149
Then STDOUT should be empty
149
- And I run `wp widget list wp_inactive_widgets --format=ids`
150
- Then STDOUT should contain:
150
+
151
+ When I run `wp widget list wp_inactive_widgets --format=ids`
152
+ And STDOUT should contain:
151
153
"""
152
154
calendar-1 search-1
153
155
"""
0 commit comments