From 9644c6b9c13d4fd435a8249a6c4950dd13dab281 Mon Sep 17 00:00:00 2001 From: carlosjr Date: Thu, 14 Oct 2021 16:16:49 +0200 Subject: [PATCH] refactor(puppeteer): left comments with paths to firefox and chrome binaries for future references --- e2e/helpers/puppeteer.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/e2e/helpers/puppeteer.js b/e2e/helpers/puppeteer.js index 4840d38c3..b8dc8cfe3 100644 --- a/e2e/helpers/puppeteer.js +++ b/e2e/helpers/puppeteer.js @@ -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];