Skip to content

Commit 4fc5e6f

Browse files
committed
fix test?
1 parent 03e81a9 commit 4fc5e6f

File tree

4 files changed

+50
-35
lines changed

4 files changed

+50
-35
lines changed

.github/workflows/node.js.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ jobs:
3535
- name: Install chrome
3636
run: npx @puppeteer/browsers install chrome@stable
3737

38+
- name: Start Xvfb
39+
run: |
40+
Xvfb :99 -screen 0 1920x1080x24 &
41+
export DISPLAY=:99
42+
3843
- name: Run headful puppeteer tests
3944
run: npm test
4045

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ jobs:
3939
- name: Install chrome
4040
run: npx @puppeteer/browsers install chrome@stable
4141

42+
- name: Start Xvfb
43+
run: |
44+
Xvfb :99 -screen 0 1920x1080x24 &
45+
export DISPLAY=:99
46+
4247
- name: Run headful puppeteer tests
4348
run: npm test
4449

package-lock.json

Lines changed: 39 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/test-extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ async function boot() {
1414
browser = await puppeteer.launch({
1515
executablePath: process.env.PUPPETEER_EXEC_PATH, // set by docker container in github CI environment
1616
headless: false, // extension are allowed only in headful mode
17-
// devtools: true, // Enable DevTools for debugging
17+
// devtools: true, // Enable DevTools for debugging
1818
args: [
1919
`--no-sandbox`, //Required for this to work in github CI environment
2020
`--disable-extensions-except=${extensionPath}`,

0 commit comments

Comments
 (0)