Skip to content

Commit

Permalink
update puppeteer to run on github actions
Browse files Browse the repository at this point in the history
no idea why this worked for so long and only stopped
working recently.
  • Loading branch information
greggman committed Oct 15, 2024
1 parent 5226a81 commit 79c1d7e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/puppeteer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ function makePromiseInfo() {

async function test(port) {
const browser = await puppeteer.launch({
headless: "new",
headless: 'new',
args: [
'--enable-unsafe-webgpu',
'--enable-webgpu-developer-features',
'--use-angle=swiftshader',
'--user-agent=puppeteer',
'--no-sandbox',
'--disable-setuid-sandbox',
],
});
const page = await browser.newPage();
Expand All @@ -45,7 +47,7 @@ async function test(port) {
let waitingPromiseInfo;

// Get the "viewport" of the page, as reported by the page.
page.on('domcontentloaded', async () => {
page.on('domcontentloaded', async() => {
const failures = await page.evaluate(() => {
return window.testsPromiseInfo.promise;
});
Expand Down

0 comments on commit 79c1d7e

Please sign in to comment.