From c728db0dbbe813fbb1e13c7d30548042223ec38d Mon Sep 17 00:00:00 2001 From: Megastary Date: Tue, 17 Dec 2019 20:51:22 +0100 Subject: [PATCH] Fix spectron test on mac --- tests/unit/electron.spec.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/unit/electron.spec.js b/tests/unit/electron.spec.js index a69bf4c..aab5545 100644 --- a/tests/unit/electron.spec.js +++ b/tests/unit/electron.spec.js @@ -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