From 53191254c41f351e2d70ca75713e1554fefaecd0 Mon Sep 17 00:00:00 2001 From: Tadas Petra <60107328+tadaspetra@users.noreply.github.com> Date: Sat, 14 Mar 2026 21:08:44 -0500 Subject: [PATCH] Update smoke-electron.test.mjs --- tests/e2e/smoke-electron.test.mjs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/e2e/smoke-electron.test.mjs b/tests/e2e/smoke-electron.test.mjs index 87d295b..ea1c68b 100644 --- a/tests/e2e/smoke-electron.test.mjs +++ b/tests/e2e/smoke-electron.test.mjs @@ -12,6 +12,15 @@ const electronBin = ? path.join(projectRoot, 'node_modules', '.bin', 'electron.cmd') : path.join(projectRoot, 'node_modules', '.bin', 'electron'); +function getElectronArgs() { + const args = ['.']; + const isCiLinux = process.platform === 'linux' && process.env.CI; + if (isCiLinux) { + args.push('--no-sandbox', '--disable-setuid-sandbox'); + } + return args; +} + function wait(ms) { return new Promise((resolve) => { setTimeout(resolve, ms); @@ -19,7 +28,7 @@ function wait(ms) { } async function runSmoke() { - const child = spawn(electronBin, ['.'], { + const child = spawn(electronBin, getElectronArgs(), { cwd: projectRoot, stdio: ['ignore', 'pipe', 'pipe'], env: {