mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Prevent errors in E2E tests where front-end is disabled and Ghost Admin accesses themes
refs: https://github.com/TryGhost/Toolbox/issues/389
This commit is contained in:
parent
3e18715caa
commit
a0acccc088
1 changed files with 3 additions and 3 deletions
|
@ -82,11 +82,11 @@ const prepareContentFolder = (options) => {
|
|||
if (options.copyThemes) {
|
||||
// Copy all themes into the new test content folder. Default active theme is always casper. If you want to use a different theme, you have to set the active theme (e.g. stub)
|
||||
fs.copySync(path.join(__dirname, 'fixtures', 'themes'), path.join(contentFolderForTests, 'themes'));
|
||||
} else if (options.frontend) {
|
||||
// Just copy Casper
|
||||
fs.copySync(path.join(__dirname, 'fixtures', 'themes', 'casper'), path.join(contentFolderForTests, 'themes', 'casper'));
|
||||
}
|
||||
|
||||
// Copy theme even if frontend is disabled, as admin can use casper when viewing themes section
|
||||
fs.copySync(path.join(__dirname, 'fixtures', 'themes', 'casper'), path.join(contentFolderForTests, 'themes', 'casper'));
|
||||
|
||||
if (options.redirectsFile) {
|
||||
redirects.setupFile(contentFolderForTests, options.redirectsFileExt);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue