Skip to content

Commit

Permalink
Ensure first theme is activated
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam Defty committed May 6, 2020
1 parent 2350fb1 commit 0851e30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bin/configureWordPress.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ const configureWordPress = async (config, logFile) => {
if (config.themes.length > 0) {
const themeName = path.basename(config.themes[0]);
await run(
async () => wpcli(`plugin activate ${themeName}`, logFile),
`Activating ${themeName} plugin`,
`${themeName} plugin activated`,
async () => wpcli(`theme activate ${themeName}`, logFile),
`Activating ${themeName} theme`,
`${themeName} theme activated`,
logFile,
);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bigbite/wp-cypress",
"version": "0.4.3",
"version": "0.4.4",
"description": "WordPress end to end testing with Cypress.io",
"main": "lib/index.js",
"repository": "https://github.com/bigbite/wp-cypress",
Expand Down

0 comments on commit 0851e30

Please sign in to comment.