diff --git a/dcloud-renew/package.json b/dcloud-renew/package.json index 4d72cb1..eb6d941 100644 --- a/dcloud-renew/package.json +++ b/dcloud-renew/package.json @@ -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": [], diff --git a/dcloud-renew/renew.mjs b/dcloud-renew/renew.mjs index 3b9a984..9fb00f9 100644 --- a/dcloud-renew/renew.mjs +++ b/dcloud-renew/renew.mjs @@ -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) {