Skip to content

Commit

Permalink
test: set more electron args when is testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jooy2 committed Aug 8, 2024
1 parent 3130149 commit 5015efe
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/app.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 5015efe

Please sign in to comment.