Skip to content

Commit

Permalink
Use different snapshot for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
jespertheend committed Jun 7, 2024
1 parent 2d0283e commit 2b20b11
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/e2e/shared/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ export async function installIfNotInstalled() {
// Ideally we would use the revision bundled with puppeteer,
// but unfortunately some tests seem to be failing when we do this.
// This version seems to work though, so we'll roll with it.
const revision = "1287751";
let revision;
if (Deno.build.os == "windows" || Deno.build.os == "darwin") {
revision = "1287751";
} else {
// Linux seems to have a different snapshot, not sure why
revision = "1287757";
}
let revisionInfo = fetcher.revisionInfo(revision);
if (!revisionInfo.local) {
console.log(`Downloading chromium ${revision}...`);
Expand Down

0 comments on commit 2b20b11

Please sign in to comment.