From 2b20b11c83192482f0f56eebecf98b4f54c24790 Mon Sep 17 00:00:00 2001 From: Jesper van den Ende Date: Fri, 7 Jun 2024 22:29:49 +0200 Subject: [PATCH] Use different snapshot for linux --- test/e2e/shared/browser.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/e2e/shared/browser.js b/test/e2e/shared/browser.js index 77c3e72c..c695587b 100644 --- a/test/e2e/shared/browser.js +++ b/test/e2e/shared/browser.js @@ -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}...`);