Skip to content

Commit fd13523

Browse files
Update puppeteer
1 parent bfaa4cb commit fd13523

3 files changed

Lines changed: 101 additions & 157 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches:
99
- '*'
1010

11+
env:
12+
CHROME_BIN: /usr/bin/google-chrome-stable
13+
PUPPETEER_SKIP_DOWNLOAD: 'true'
14+
1115
concurrency:
1216
group: ${{ github.workflow }}-${{ github.event_name == 'push' && github.run_number || github.event.pull_request.number }}
1317
cancel-in-progress: true

karma/config.js

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
2-
// Comment the next two lines if you want to run with Chrome instead of Chromium
3-
const puppeteer = require('puppeteer');
4-
process.env.CHROME_BIN = puppeteer.executablePath();
2+
if (!process.env.CHROME_BIN) {
3+
process.env.CHROME_BIN = require('puppeteer').executablePath();
4+
}
55

66
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
77

@@ -17,9 +17,8 @@ module.exports = {
1717
// Run on Chrome Headless
1818
customLaunchers: {
1919
ChromeHeadlessNoSandbox: {
20-
base: 'ChromeHeadless',
21-
// Flags required to run in ubuntu-22.04 or above (https://chromium.googlesource.com/chromium/src/+/master/docs/linux/suid_sandbox_development.md)
22-
flags: ['--no-sandbox', '--disable-setuid-sandbox']
20+
base: 'Chrome',
21+
flags: ['--headless=new', '--no-sandbox', '--disable-setuid-sandbox', '--disable-gpu']
2322
}
2423
},
2524
browsers: ['ChromeHeadlessNoSandbox'],
@@ -29,21 +28,7 @@ module.exports = {
2928
// Uncomment to run a particular UT:
3029
// '**/listeners/__tests__/browser.spec.js',
3130
// Run browser UTs. Commons and Node UTs run with `test-node` npm script
32-
'*/**/__tests__/**/browser.spec.js',
33-
{
34-
pattern: 'engine/__tests__/engine/mocks/murmur3*.csv',
35-
watched: false,
36-
included: false,
37-
served: true,
38-
nocache: true
39-
},
40-
{
41-
pattern: 'engine/__tests__/matchers/mocks/regex.txt',
42-
watched: false,
43-
included: false,
44-
served: true,
45-
nocache: true
46-
}
31+
'*/**/__tests__/**/browser.spec.js'
4732
],
4833

4934
// list of files / patterns to exclude

0 commit comments

Comments
 (0)