Skip to content

Commit 58a1b2d

Browse files
authored
Merge pull request #33 from wp-cli/32-fix-widget-sidebar-tests
Force installation of correct theme
2 parents 6ff3db6 + 03a789e commit 58a1b2d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

features/widget-reset.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Feature: Reset WordPress sidebars
33
Scenario: Reset sidebar
44
Given a WP install
55

6-
# Might already be installed depending on WP version so STDERR may or may not be empty
7-
When I try `wp theme install twentytwelve --activate`
6+
When I try `wp theme delete twentytwelve --force`
7+
And I run `wp theme install twentytwelve --activate`
88
Then STDOUT should not be empty
99
And the return code should be 0
1010

@@ -87,8 +87,8 @@ Feature: Reset WordPress sidebars
8787
Scenario: Reset all sidebars
8888
Given a WP install
8989

90-
# Might already be installed depending on WP version so STDERR may or may not be empty
91-
When I try `wp theme install twentytwelve --activate`
90+
When I try `wp theme delete twentytwelve --force`
91+
And I run `wp theme install twentytwelve --activate`
9292
Then STDOUT should not be empty
9393
And the return code should be 0
9494

@@ -133,8 +133,8 @@ Feature: Reset WordPress sidebars
133133
Scenario: Testing movement of widgets while reset
134134
Given a WP install
135135

136-
# Might already be installed depending on WP version so STDERR may or may not be empty
137-
When I try `wp theme install twentytwelve --activate`
136+
When I try `wp theme delete twentytwelve --force`
137+
And I run `wp theme install twentytwelve --activate`
138138
Then STDOUT should not be empty
139139
And the return code should be 0
140140

0 commit comments

Comments
 (0)