From 4137bb5569221812ee065b3307e533774986722a Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Thu, 26 Oct 2023 15:01:04 +0200 Subject: [PATCH] DEBUG=1 as alternative to PWDEBUG=1 (also shows Playwright debugger) --- config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.js b/config.js index e604d0f..336db99 100644 --- a/config.js +++ b/config.js @@ -5,7 +5,7 @@ dotenv.config({ path: 'data/config.env' }); // loads env vars from file - will n // Options - also see table in README.md export const cfg = { - debug: process.env.PWDEBUG == '1', // runs non-headless and opens https://playwright.dev/docs/inspector + debug: process.env.DEBUG == '1' || process.env.PWDEBUG == '1', // runs non-headless and opens https://playwright.dev/docs/inspector record: process.env.RECORD == '1', // `recordHar` (network) + `recordVideo` time: process.env.TIME == '1', // log duration of each step dryrun: process.env.DRYRUN == '1', // don't claim anything