Skip to content

Commit

Permalink
Fix spectron test on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
megastary committed Dec 17, 2019
1 parent c12e34a commit c728db0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/unit/electron.spec.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
const { testWithSpectron } = require('vue-cli-plugin-electron-builder')
jest.setTimeout(50000)
jest.setTimeout(70000)

test('Window Loads Properly', async () => {
// Wait for dev server to start
const { app, stopServe } = await testWithSpectron()
const { app, stopServe } = await testWithSpectron({
spectronOptions: {
chromeDriverArgs: [
'--headless',
'--no-sandbox',
'--disable-dev-shm-usage'
]
}
})
const win = app.browserWindow
const client = app.client

Expand Down

0 comments on commit c728db0

Please sign in to comment.