Skip to content

Commit 869bb1b

Browse files
committed
ci(test): use puppeteer bundled Chrome for Testing instead of system Chrome
Chrome 137+ removed the --load-extension flag from branded Google Chrome builds, so the extension never loads under the system Chrome provided by mymindstorm/puppeteer-headful and navigation to chrome-extension://.../view/test.html fails with ERR_BLOCKED_BY_CLIENT. Let npm ci download puppeteer's Chrome for Testing (which keeps --load-extension) and run the headful tests under xvfb-run instead.
1 parent e7f79a2 commit 869bb1b

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ jobs:
5252

5353
- name: Install dependencies
5454
run: npm ci
55-
env:
56-
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true"
5755

5856
- name: Test code
59-
uses: mymindstorm/puppeteer-headful@8f745c770f7f4c0f9f332d7c43a775f90e53779a
60-
with:
61-
args: npm test
57+
run: xvfb-run --auto-servernum -- npm test

0 commit comments

Comments
 (0)