Skip to content

Commit f5b9203

Browse files
committed
Fix Gherkin lint issues
1 parent 7e7fd93 commit f5b9203

14 files changed

+35
-35
lines changed

features/comment-meta.feature

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,3 @@ Feature: Manage comment custom fields
8080
| 1 | apple | banana |
8181
| 1 | apple | banana |
8282
| 1 | banana | ["apple","apple"] |
83-

features/menu-item.feature

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Feature: Manage WordPress menu items
6565
Success: Deleted 1 of 1 menu items.
6666
"""
6767
And I run `wp menu item list sidebar-menu --format=count`
68-
Then STDOUT should be:
68+
And STDOUT should be:
6969
"""
7070
2
7171
"""
@@ -76,7 +76,7 @@ Feature: Manage WordPress menu items
7676
Success: Deleted 2 of 2 menu items.
7777
"""
7878
And I run `wp menu item list sidebar-menu --format=count`
79-
Then STDOUT should be:
79+
And STDOUT should be:
8080
"""
8181
0
8282
"""
@@ -103,8 +103,7 @@ Feature: Manage WordPress menu items
103103
| Child | {CHILD_ID} | {PARENT_ID} |
104104

105105
When I run `wp menu item delete {PARENT_ID}`
106-
107-
When I run `wp menu item list grandparent-test --fields=title,db_id,menu_item_parent`
106+
And I run `wp menu item list grandparent-test --fields=title,db_id,menu_item_parent`
108107
Then STDOUT should be a table containing rows:
109108
| title | db_id | menu_item_parent |
110109
| Grandparent | {GRANDPARENT_ID} | 0 |

features/option-list.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Feature: List WordPress options
143143
Then STDOUT should be:
144144
"""
145145
---
146-
-
146+
-
147147
option_name: sample_test_field_one
148148
option_value:
149149
value: 1
@@ -197,4 +197,4 @@ Feature: List WordPress options
197197
And STDOUT should contain:
198198
"""
199199
sample_value_four
200-
"""
200+
"""

features/option-pluck-patch.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,14 +312,14 @@ Feature: Option commands have pluck and patch.
312312
And I run `wp option update option_name --format=json < input.json`
313313
314314
When I try `wp option patch update option_name foo`
315-
And STDERR should contain:
315+
Then STDERR should contain:
316316
"""
317317
Please provide value to update.
318318
"""
319319
And the return code should be 1
320320
321321
When I run `wp option patch update option_name foo 0`
322-
And STDOUT should be:
322+
Then STDOUT should be:
323323
"""
324324
Success: Updated 'option_name' option.
325325
"""

features/option.feature

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ Feature: Manage WordPress options
106106
0
107107
"""
108108

109-
110109
# JSON values
111110
When I run `wp option set json_opt '[ 1, 2 ]' --format=json`
112111
Then STDOUT should not be empty
@@ -120,7 +119,6 @@ Feature: Manage WordPress options
120119
[1,2]
121120
"""
122121

123-
124122
# Reading from files
125123
Given a value.json file:
126124
"""
@@ -182,7 +180,6 @@ Feature: Manage WordPress options
182180
| option_name | option_value | autoload |
183181
| hello | island | on |
184182
185-
186183
@require-wp-4.2
187184
@less-than-wp-6.6
188185
Scenario: Managed autoloaded options

features/post-generate.feature

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ Feature: Generate new WordPress posts
6161
Howdy! 3
6262
"""
6363
And STDERR should be empty
64-
And I run `wp post list --field=post_name --posts_per_page=4 --orderby=ID --order=asc`
64+
65+
When I run `wp post list --field=post_name --posts_per_page=4 --orderby=ID --order=asc`
6566
Then STDOUT should contain:
6667
"""
6768
hello-world
@@ -78,7 +79,8 @@ Feature: Generate new WordPress posts
7879
"""
7980
2018-07-01 00:00:00
8081
"""
81-
And I run `wp post list --field=post_date_gmt`
82+
83+
When I run `wp post list --field=post_date_gmt`
8284
Then STDOUT should contain:
8385
"""
8486
2018-07-01 00:00:00
@@ -91,7 +93,8 @@ Feature: Generate new WordPress posts
9193
"""
9294
2018-07-02 02:21:05
9395
"""
94-
And I run `wp post list --field=post_date_gmt`
96+
97+
When I run `wp post list --field=post_date_gmt`
9598
Then STDOUT should contain:
9699
"""
97100
2018-07-02 02:21:05
@@ -104,7 +107,8 @@ Feature: Generate new WordPress posts
104107
"""
105108
2018-07-03 00:00:00
106109
"""
107-
And I run `wp post list --field=post_date_gmt`
110+
111+
When I run `wp post list --field=post_date_gmt`
108112
Then STDOUT should contain:
109113
"""
110114
2018-07-03 00:00:00
@@ -117,7 +121,8 @@ Feature: Generate new WordPress posts
117121
"""
118122
2018-07-04 12:34:56
119123
"""
120-
And I run `wp post list --field=post_date_gmt`
124+
125+
When I run `wp post list --field=post_date_gmt`
121126
Then STDOUT should contain:
122127
"""
123128
2018-07-04 12:34:56
@@ -130,7 +135,8 @@ Feature: Generate new WordPress posts
130135
"""
131136
2018-07-05 17:17:17
132137
"""
133-
And I run `wp post list --field=post_date_gmt`
138+
139+
When I run `wp post list --field=post_date_gmt`
134140
Then STDOUT should contain:
135141
"""
136142
2018-07-05 17:17:17
@@ -143,7 +149,8 @@ Feature: Generate new WordPress posts
143149
"""
144150
2018-07-06 12:12:12
145151
"""
146-
And I run `wp post list --field=post_date_gmt`
152+
153+
When I run `wp post list --field=post_date_gmt`
147154
Then STDOUT should contain:
148155
"""
149156
2018-07-06 12:12:12
@@ -156,7 +163,8 @@ Feature: Generate new WordPress posts
156163
"""
157164
1999-12-31 00:00:00
158165
"""
159-
And I run `wp post list --field=post_date_gmt`
166+
167+
When I run `wp post list --field=post_date_gmt`
160168
Then STDOUT should contain:
161169
"""
162170
2000-01-01 00:00:00
@@ -169,7 +177,8 @@ Feature: Generate new WordPress posts
169177
"""
170178
1999-12-31 11:11:00
171179
"""
172-
And I run `wp post list --field=post_date_gmt`
180+
181+
When I run `wp post list --field=post_date_gmt`
173182
Then STDOUT should contain:
174183
"""
175184
2000-01-01 02:11:00
@@ -181,10 +190,10 @@ Feature: Generate new WordPress posts
181190

182191
When I run `wp post list --field=post_status`
183192
Then STDOUT should be empty
184-
193+
185194
When I run `wp post generate --count=1`
186195
And I run `wp post list --field=post_status`
187196
Then STDOUT should be:
188197
"""
189198
publish
190-
"""
199+
"""

features/site-create.feature

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,3 @@ Feature: Create a new site on a WP multisite
9393
| blog_id | url |
9494
| 1 | http://localhost/ |
9595
| 2 | http://localhost/newsite/ |
96-

features/site-generate.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Feature: Generate new WordPress sites
3232
Scenario: Generate sites and output ids
3333
Given a WP multisite install
3434
When I run `wp site generate --count=3 --format=ids`
35-
When I run `wp site list --format=ids`
35+
And I run `wp site list --format=ids`
3636
Then STDOUT should be:
3737
"""
3838
1 2 3 4
@@ -76,7 +76,7 @@ Feature: Generate new WordPress sites
7676
"""
7777

7878
Scenario: Generate sites with a slug
79-
Given a WP multisite subdirectory install
79+
Given a WP multisite subdirectory install
8080
When I run `wp site generate --count=2 --slug=subsite`
8181
Then STDOUT should be empty
8282
And I run `wp site list --site__in=2 --field=url | sed -e's,^\(.*\)://.*,\1,g'`

features/site.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ Feature: Manage sites in a multisite installation
106106
And save STDOUT as {SITE_ID}
107107
And I run `wp site list --blog_id={SITE_ID} --field=url`
108108
And save STDOUT as {SITE_URL}
109-
And I run `wp user create newuser newuser@example.com --porcelain --url={SITE_URL}`
109+
110+
When I run `wp user create newuser newuser@example.com --porcelain --url={SITE_URL}`
110111
Then STDOUT should be a number
111112
And save STDOUT as {USER_ID}
112113
And I run `wp user get {USER_ID} --field=user_login`
@@ -134,7 +135,6 @@ Feature: Manage sites in a multisite installation
134135
When I run `wp site list --field=url --site_user={USER_LOGIN}`
135136
Then STDOUT should be empty
136137

137-
138138
Scenario: Delete a site by slug
139139
Given a WP multisite install
140140

features/term-migrate.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Feature: Manage term custom fields
1+
Feature: Migrate term custom fields
22

33
@require-wp-4.4
44
Scenario: Migrate an existing term by slug

0 commit comments

Comments
 (0)