test: check installation with Firefox (#5965)

This commit is contained in:
Maja Frydrychowicz 2020-06-03 10:00:08 -04:00 committed by GitHub
parent c2d32b1c19
commit ef63c64178
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,4 +12,11 @@ cd "$(mktemp -d)"
# 3. Requiring Puppeteer from Node works. # 3. Requiring Puppeteer from Node works.
npm install --loglevel silent "${tarball}" npm install --loglevel silent "${tarball}"
node --eval="require('puppeteer')" node --eval="require('puppeteer')"
# Again for Firefox
TMPDIR="$(mktemp -d)"
cd $TMPDIR
PUPPETEER_PRODUCT=firefox npm install --loglevel silent "${tarball}"
node --eval="require('puppeteer')"
rm "${tarball}" rm "${tarball}"
ls $TMPDIR/node_modules/puppeteer/.local-firefox/linux-79.0a1/firefox/firefox