build: use patched puppeteer-headful

This commit is contained in:
EnixCoda 2024-07-07 14:23:56 +08:00
parent 179a0433d0
commit d6fa6726f3
2 changed files with 6 additions and 2 deletions

View file

@ -53,7 +53,7 @@ jobs:
yarn --ignore-platform --ignore-engines --frozen-lockfile --prefer-offline
- name: E2E Test
uses: mujo-code/puppeteer-headful@master
uses: mymindstorm/puppeteer-headful@8f745c770f7f4c0f9f332d7c43a775f90e53779a
env:
CI: 'true'
with:

View file

@ -12,6 +12,10 @@ module.exports = {
executablePath: process.env.PUPPETEER_EXEC_PATH,
// required for enabling extensions
headless: false,
args: [`--disable-extensions-except=${CRX_PATH}`, `--load-extension=${CRX_PATH}`],
args: [
`--no-sandbox`,
`--disable-extensions-except=${CRX_PATH}`,
`--load-extension=${CRX_PATH}`,
],
},
}