Skip to content

Commit 86a89a6

Browse files
committed
fix(testWithSpectron): DOM content not loading
1 parent 8dc5bba commit 86a89a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator/template/src/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function createWindow () {
1717
// Create the browser window.
1818
win = new BrowserWindow({ width: 800, height: 600 })
1919

20-
if (isDevelopment) {
20+
if (isDevelopment || process.env.IS_TEST) {
2121
// Load the url of the dev server if in development mode
2222
win.loadURL(process.env.WEBPACK_DEV_SERVER_URL)
2323
if (!process.env.IS_TEST) win.webContents.openDevTools()

0 commit comments

Comments
 (0)