@@ -19,25 +19,25 @@ Feature: Manage widgets in WordPress sidebar
1919 When I run `wp widget list sidebar-1 --fields=name,id,position`
2020 Then STDOUT should be a table containing rows:
2121 | name | id | position |
22- | text | text -2 | 1 |
23- | search | search - 1 | 2 |
22+ | text | text -1 | 1 |
23+ | archives | archives - 1 | 2 |
2424 | calendar | calendar -1 | 3 |
25- | archives | archives - 1 | 4 |
26- | text | text -1 | 5 |
25+ | search | search - 1 | 4 |
26+ | text | text -2 | 5 |
2727
28- When I run `wp widget move archives -1 --position=2`
28+ When I run `wp widget move search -1 --position=2`
2929 Then STDOUT should not be empty
3030
3131 When I run `wp widget list sidebar-1 --fields=name,id,position`
3232 Then STDOUT should be a table containing rows:
3333 | name | id | position |
34- | text | text -2 | 1 |
35- | archives | archives - 1 | 2 |
36- | search | search - 1 | 3 |
34+ | text | text -1 | 1 |
35+ | search | search - 1 | 2 |
36+ | archives | archives - 1 | 3 |
3737 | calendar | calendar -1 | 4 |
38- | text | text -1 | 5 |
38+ | text | text -2 | 5 |
3939
40- When I run `wp widget move text-2 --sidebar-id=wp_inactive_widgets`
40+ When I run `wp widget move text-1 --sidebar-id=wp_inactive_widgets`
4141 Then STDOUT should not be empty
4242
4343 When I run `wp widget deactivate calendar-1`
@@ -51,17 +51,17 @@ Feature: Manage widgets in WordPress sidebar
5151 When I run `wp widget list sidebar-1 --fields=name,id,position`
5252 Then STDOUT should be a table containing rows:
5353 | name | id | position |
54- | archives | archives - 1 | 1 |
55- | search | search - 1 | 2 |
56- | text | text -1 | 3 |
54+ | search | search - 1 | 1 |
55+ | archives | archives - 1 | 2 |
56+ | text | text -2 | 3 |
5757
5858 When I run `wp widget list wp_inactive_widgets --fields=name,id,position`
5959 Then STDOUT should be a table containing rows:
6060 | name | id | position |
61- | calendar | calendar - 1 | 1 |
62- | text | text - 2 | 2 |
61+ | text | text - 1 | 1 |
62+ | calendar | calendar - 1 | 2 |
6363
64- When I run `wp widget delete archives-1 text-2 `
64+ When I run `wp widget delete archives-1 text-1 `
6565 Then STDOUT should be:
6666 """
6767 Success: Deleted 2 of 2 widgets.
@@ -73,7 +73,7 @@ Feature: Manage widgets in WordPress sidebar
7373 Then STDOUT should be a table containing rows:
7474 | name | id | position |
7575 | search | search -1 | 1 |
76- | text | text -1 | 2 |
76+ | text | text -2 | 2 |
7777
7878 When I run `wp widget add archives sidebar-1 2 --title="Archives" `
7979 Then STDOUT should not be empty
@@ -83,12 +83,12 @@ Feature: Manage widgets in WordPress sidebar
8383 | name | id | position |
8484 | search | search -1 | 1 |
8585 | archives | archives -1 | 2 |
86- | text | text -1 | 3 |
86+ | text | text -2 | 3 |
8787
8888 When I run `wp widget list sidebar-1 --format=ids`
8989 Then STDOUT should be:
9090 """
91- search-1 archives-1 text-1
91+ search-1 archives-1 text-2
9292 """
9393
9494 When I run `wp widget list sidebar-1 --fields=name,position,options`
0 commit comments