Skip to content

Commit

Permalink
Upgrade Puppeteer to version 5
Browse files Browse the repository at this point in the history
  • Loading branch information
timvandermeij committed Jul 26, 2020
1 parent 311ca6e commit 33dc7f0
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 17 deletions.
90 changes: 78 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"postcss-calc": "^7.0.2",
"postcss-css-variables": "^0.14.0",
"prettier": "^2.0.5",
"puppeteer": "^3.3.0",
"puppeteer": "^5.2.1",
"rimraf": "^2.7.1",
"streamqueue": "^1.1.2",
"systemjs": "^0.21.6",
Expand Down
7 changes: 3 additions & 4 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -763,11 +763,10 @@ function unitTestPostHandler(req, res) {
}

async function startBrowser(browserName, startUrl) {
const revisions = require("puppeteer/package.json").puppeteer;
const revisions = require("puppeteer/lib/cjs/puppeteer/revisions.js")
.PUPPETEER_REVISIONS;
const wantedRevision =
browserName === "chrome"
? revisions.chrome_revision
: revisions.firefox_revision;
browserName === "chrome" ? revisions.chromium : revisions.firefox;

// Remove other revisions than the one we want to use. Updating Puppeteer can
// cause a new revision to be used, and not removing older revisions causes
Expand Down

0 comments on commit 33dc7f0

Please sign in to comment.