diff --git a/start.js b/start.js index a37aa4538a..427fa319d0 100644 --- a/start.js +++ b/start.js @@ -30,7 +30,11 @@ global.browser = null; async function runTests() { console.log("running tests ..."); - global.browser = await puppeteer.launch(); + const options = {}; + if (process.env.CHROME_PATH) { + options.executablePath = process.env.CHROME_PATH; + } + global.browser = await puppeteer.launch(options); const page = await helpers.newPage(); const username = 'user-' + helpers.randomInt(10000);