eg: RECORD=1 to recordVideo & recordHar

This commit is contained in:
Ralf Vogler 2023-05-05 09:54:21 +02:00
parent ce51c269f8
commit 066a99c77c
2 changed files with 9 additions and 1 deletions

View file

@ -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 },