Skip to content

Commit

Permalink
Fixed: override chromium executable path on NixOS in puppeteer tests. (
Browse files Browse the repository at this point in the history
  • Loading branch information
Jos van Bakel authored Oct 29, 2018
1 parent 6e72447 commit 4893188
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ PATH_add node_modules/.bin
rm node_modules/.bin/optipng
mkdir -p node_modules/optipng-bin/vendor
ln -sf $(which optipng) node_modules/optipng-bin/vendor/optipng

export OVERRIDE_CHROMIUM_PATH=$(which chromium)
1 change: 1 addition & 0 deletions test/browser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ if (process.env[`CI_USERNAME_ALICE_${BRAND.toUpperCase()}`]) {
*/
async function createBrowser(name, options) {
let browser = await puppeteer.launch({
executablePath: process.env.OVERRIDE_CHROMIUM_PATH,
args: [
'--disable-notifications',
'--disable-web-security',
Expand Down

0 comments on commit 4893188

Please sign in to comment.