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": "", "description": "",
"main": "renew.js", "main": "renew.js",
"scripts": { "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" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"keywords": [], "keywords": [],

View File

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