Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderMoiseev committed Jan 29, 2024
1 parent 0b61991 commit 8cb2585
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/visual-tests/testcafe-runner.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,9 @@ async function main() {
console.log('change theme');

if(process.env.THEME) {
const currentTheme = process.env.THEME;
runOptions.hooks.test.before = async() => {
await changeTheme(process.env.THEME);
await changeTheme(currentTheme);
};
}
console.log('theme changed');
Expand Down

0 comments on commit 8cb2585

Please sign in to comment.