You've already forked matrix-react-sdk
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:
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);
|
||||||
|
Reference in New Issue
Block a user