From 53eab479ecd4ffa8a6f53e6d5860bfb84d463a68 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 5 Apr 2019 16:45:07 +0200 Subject: [PATCH] pass --no-sandbox to puppeteer --- start.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/start.js b/start.js index 1c3f27bbe3..099282740d 100644 --- a/start.js +++ b/start.js @@ -26,6 +26,7 @@ program .option('--windowed', "dont run tests headless", false) .option('--slow-mo', "run tests slower to follow whats going on", false) .option('--dev-tools', "open chrome devtools in browser window", false) + .option('--no-sandbox', "same as puppeteer arg", false) .parse(process.argv); const hsUrl = 'http://localhost:5005'; @@ -37,7 +38,11 @@ async function runTests() { slowMo: program.slowMo ? 20 : undefined, devtools: program.devTools, headless: !program.windowed, + args: [], }; + if (!program.sandbox) { + options.args.push('--no-sandbox'); + } if (process.env.CHROME_PATH) { const path = process.env.CHROME_PATH; console.log(`(using external chrome/chromium at ${path}, make sure it's compatible with puppeteer)`);