Skip to content

Commit c728db0

Browse files
committed
Fix spectron test on mac
1 parent c12e34a commit c728db0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/unit/electron.spec.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
const { testWithSpectron } = require('vue-cli-plugin-electron-builder')
2-
jest.setTimeout(50000)
2+
jest.setTimeout(70000)
33

44
test('Window Loads Properly', async () => {
55
// Wait for dev server to start
6-
const { app, stopServe } = await testWithSpectron()
6+
const { app, stopServe } = await testWithSpectron({
7+
spectronOptions: {
8+
chromeDriverArgs: [
9+
'--headless',
10+
'--no-sandbox',
11+
'--disable-dev-shm-usage'
12+
]
13+
}
14+
})
715
const win = app.browserWindow
816
const client = app.client
917

0 commit comments

Comments
 (0)