refactor(puppeteer): left comments with paths to firefox and chrome binaries for future references
This commit is contained in:
parent
35a2a71602
commit
9644c6b9c1
|
@ -5,11 +5,14 @@ import {url as defaultURL} from './config';
|
|||
|
||||
export async function getBrowser() {
|
||||
const args = [
|
||||
`--no-sandbox`,
|
||||
`--window-size=${ 1920 },${ 1080 }`
|
||||
'--no-sandbox',
|
||||
`--window-size=${ 1920 },${ 1080 }`,
|
||||
// '--disable-dev-shm-usage'
|
||||
// '--full-memory-crash-report',
|
||||
// '--unlimited-storage'
|
||||
];
|
||||
|
||||
let env = process.env;
|
||||
const env = process.env;
|
||||
|
||||
if (env.E2E_DEBUG) {
|
||||
args.push('--auto-open-devtools-for-tabs');
|
||||
|
@ -22,6 +25,9 @@ export async function getBrowser() {
|
|||
defaultViewport: null,
|
||||
headless: headless,
|
||||
slowMo: 0, // slow down by ms
|
||||
// ignoreDefaultArgs: ['--disable-extensions'],
|
||||
// executablePath: '/usr/bin/google-chrome-stable',
|
||||
// executablePath: '/usr/bin/firefox-developer-edition',
|
||||
});
|
||||
|
||||
let page = (await browser.pages())[0];
|
||||
|
|
Loading…
Reference in New Issue