Skip to content

Commit 9fd0929

Browse files
committed
[CI][Puppeteer] Add timeout, use new headless mode, and disable sandbox
1 parent 0bc8b1d commit 9fd0929

File tree

3 files changed

+139
-137
lines changed

3 files changed

+139
-137
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"postcss-loader": "^7.0.0 || ^8.1.0",
8181
"preact": "^10.5.0",
8282
"preact-compat": "^3.17.0",
83-
"puppeteer": "^23.2.2",
83+
"puppeteer": "^24.6.0",
8484
"react": "^18.0.0",
8585
"react-dom": "^18.0.0",
8686
"sass": "^1.17.0",

test/functional.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,13 @@ describe('Functional tests using webpack', function() {
8181
this.timeout(10000);
8282

8383
before(function(done) {
84-
puppeteer.launch().then(_browser => {
84+
puppeteer.launch({ headless: 'new', timeout: 9500, args: ['--no-sandbox', '--disable-setuid-sandbox'] }).then(_browser => {
8585
browser = _browser;
8686
done();
87+
}).catch(err => {
88+
console.log('Unable to launch Puppeteer');
89+
console.log(err);
90+
throw err;
8791
});
8892
});
8993

0 commit comments

Comments
 (0)