We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a05c1a commit 22d81b1Copy full SHA for 22d81b1
puppeteer-demo/demo.ts
@@ -6,7 +6,7 @@ const sleep = (ms: number | undefined) => new Promise((r) => setTimeout(r, ms));
6
Promise.resolve(
7
(async () => {
8
const browser = await puppeteer.launch({
9
- headless: false, // 'false' means we can see the browser window
+ headless: !!process.env.CI, // 'false' means we can see the browser window, the CI environment only supports headless mode.
10
args: ['--no-sandbox', '--disable-setuid-sandbox'],
11
});
12
0 commit comments