Skip to content

Commit

Permalink
Added fix that would otherwise open dev tools, and make ui tests fail
Browse files Browse the repository at this point in the history
  • Loading branch information
levisen committed Jul 9, 2023
1 parent 7e87917 commit 9d9d008
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function createWindow() {
mainWindow.loadURL('file://' + __dirname + '/index.html');

// Open the DevTools.
if (devMode) {
if (devMode && process.env.RUNNING_TEST !== "true") {
mainWindow.webContents.openDevTools();
}

Expand Down
2 changes: 1 addition & 1 deletion test/TestHelpers/Testhelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class TestHelper {
*/
public async launch(testDataZipFile?: string): Promise<void> {
// Start
process.env.RUNNING_TEST = 'whatever, we only evaluate on the key..';
process.env.RUNNING_TEST = 'true';
await electron.launch(
{
args: ['.']
Expand Down

0 comments on commit 9d9d008

Please sign in to comment.