From 5015efe4df72666705d5e77175d11b27966d74d8 Mon Sep 17 00:00:00 2001 From: leejooy96 Date: Thu, 8 Aug 2024 18:08:18 +0900 Subject: [PATCH] test: set more electron args when is testing --- tests/app.spec.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/app.spec.ts b/tests/app.spec.ts index d6eeda9..d6eb179 100644 --- a/tests/app.spec.ts +++ b/tests/app.spec.ts @@ -20,7 +20,15 @@ function existElementByTestId(selector: string, waitingMilliseconds = 100) { test.beforeAll(async () => { // Open Electron app from build directory appElectron = await electron.launch({ - args: ['dist/main/index.js'], + args: [ + 'dist/main/index.js', + ...(process.env.CI === 'true' ? ['--no-sandbox'] : []), + '--enable-logging', + '--ignore-certificate-errors', + '--ignore-ssl-errors', + '--ignore-blocklist', + '--ignore-gpu-blocklist', + ], locale: 'en-US', colorScheme: 'light', env: {