mirror of https://github.com/vector-im/riot-web
add support for passing chrome path as env var
parent
20becf8735
commit
edf37e3592
6
start.js
6
start.js
|
@ -30,7 +30,11 @@ global.browser = null;
|
||||||
|
|
||||||
async function runTests() {
|
async function runTests() {
|
||||||
console.log("running tests ...");
|
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 page = await helpers.newPage();
|
||||||
|
|
||||||
const username = 'user-' + helpers.randomInt(10000);
|
const username = 'user-' + helpers.randomInt(10000);
|
||||||
|
|
Loading…
Reference in New Issue