1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

add support for passing chrome path as env var

This commit is contained in:
Bruno Windels
2018-07-27 15:15:10 +02:00
parent 20becf8735
commit edf37e3592

View File

@ -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);