Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion tests/e2e/smoke-electron.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,23 @@ 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);
});
}

async function runSmoke() {
const child = spawn(electronBin, ['.'], {
const child = spawn(electronBin, getElectronArgs(), {
cwd: projectRoot,
stdio: ['ignore', 'pipe', 'pipe'],
env: {
Expand Down
Loading