Skip to content

Commit 8dfac72

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

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ Feature: Option commands have pluck and patch.
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

0 commit comments

Comments
 (0)