This commit is contained in:
luk
2026-08-17 07:30:01 +08:00
parent bc1099183e
commit 6dc882417d
2 changed files with 4 additions and 2 deletions

View File

@@ -5,6 +5,8 @@
"description": "",
"main": "renew.js",
"scripts": {
"begin": "npm install && npx playwright install-deps && npx playwright install chromium",
"fire": "source renew-all.sh",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],

View File

@@ -91,8 +91,8 @@ async function renewOne (context, dashboardPage, renewLocator, index) {
: true
// On macOS use the installed Microsoft Edge; on Linux (and elsewhere) fall
// back to the Chromium bundled by Playwright (run `npx playwright install
// // chromium` once there). Override by setting BROWSER_CHANNEL, e.g.
// back to the Chromium bundled by Playwright (run `npx playwright install chromium` once there).
// Override by setting BROWSER_CHANNEL, e.g.
// `BROWSER_CHANNEL=chrome` or `BROWSER_CHANNEL=`.
const launchOptions = { headless, slowMo: headless ? 0 : 200 }
if (process.env.BROWSER_CHANNEL != null) {