eg: RECORD=1 to recordVideo & recordHar; fixed: recordVideo can't be false
Strangely `recordHar` can be false instead of undefined, but made it symmetric.
This commit is contained in:
parent
7fc0fbc69c
commit
8f174c4bf0
2 changed files with 9 additions and 1 deletions
|
|
@ -6,6 +6,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
|
||||
record: process.env.RECORD == '1', // `recordHar` (network) + `recordVideo`
|
||||
dryrun: process.env.DRYRUN == '1', // don't claim anything
|
||||
show: process.env.SHOW == '1', // run non-headless
|
||||
get headless() { return !this.debug && !this.show },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue