Skip to content

Commit

Permalink
Use "new" headless mode
Browse files Browse the repository at this point in the history
  • Loading branch information
heeckhau committed Feb 23, 2024
1 parent c8b9ae3 commit 621193d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/testRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { exec } = require('node:child_process');

// puppeteer options
let opts: PuppeteerLaunchOptions = {
headless: !!process.env.HEADLESS,
headless: !!process.env.HEADLESS ? "new" : false,
slowMo: 100,
timeout: 60000,
};
Expand All @@ -20,7 +20,6 @@ if (process.env.CHROME_PATH) {

console.log("puppeteer options", opts)


let browser: any, page: any, server: any;

// expose variables
Expand Down

0 comments on commit 621193d

Please sign in to comment.