feat(test): support PUPPETEER_EXECUTABLE_PATH

This commit is contained in:
Pooya Parsa 2018-03-20 14:37:05 +03:30
parent c3ae6cd373
commit c58a9c79a0

View File

@ -6,7 +6,8 @@ export default class Browser {
this.browser = await puppeteer.launch(
Object.assign(
{
args: ['--no-sandbox', '--disable-setuid-sandbox']
args: ['--no-sandbox', '--disable-setuid-sandbox'],
executablePath: process.env.PUPPETEER_EXECUTABLE_PATH
},
options
)