Skip to content

Commit e5fad4a

Browse files
authored
Merge pull request #65 from wp-cli/fix-gherkin-issues
Fix Gherkin lint issues
2 parents 5c7a9b6 + e1b081c commit e5fad4a

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

features/widget-reset.feature

+9-7
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ Feature: Reset WordPress sidebars
105105
"""
106106
0
107107
"""
108-
And I run `wp widget list sidebar-2 --format=count`
108+
When I run `wp widget list sidebar-2 --format=count`
109109
Then STDOUT should be:
110110
"""
111111
0
112112
"""
113-
And I run `wp widget list sidebar-3 --format=count`
113+
When I run `wp widget list sidebar-3 --format=count`
114114
Then STDOUT should be:
115115
"""
116116
0
@@ -120,19 +120,20 @@ Feature: Reset WordPress sidebars
120120
"""
121121
calendar-1
122122
"""
123-
Then STDOUT should contain:
123+
And STDOUT should contain:
124124
"""
125125
search-1
126126
"""
127-
Then STDOUT should contain:
127+
And STDOUT should contain:
128128
"""
129129
text-1
130130
"""
131131

132132
Scenario: Testing movement of widgets while reset
133133
When I run `wp widget add calendar sidebar-2 --title="Calendar"`
134134
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"`
136137
Then STDOUT should not be empty
137138

138139
When I run `wp widget list sidebar-2 --format=ids`
@@ -146,8 +147,9 @@ Feature: Reset WordPress sidebars
146147
When I run `wp widget reset sidebar-2`
147148
And I run `wp widget list sidebar-2 --format=ids`
148149
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:
151153
"""
152154
calendar-1 search-1
153155
"""

features/widget.feature

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Feature: Manage widgets in WordPress sidebar
1414
And I run `wp widget add search sidebar-2 --title="Quick Search"`
1515
And I run `wp widget add text sidebar-3 --title="Text"`
1616

17-
1817
Scenario: Widget CRUD
1918
When I run `wp widget list sidebar-1 --fields=name,id,position`
2019
Then STDOUT should be a table containing rows:

0 commit comments

Comments
 (0)