testplane
testplane copied to clipboard
Ability to disable headless mode using cli opiton
Description
In a project created with npm init testplane@latest headless mode is enabled by default. If the user wants to turn it off for one run, then he must use the option --healdess=false or --headless=0 or --headless=no. But it doesn't work. It is necessary to support this opportunity.
Verify latest release
- [x] I verified that the issue exists in the latest Testplane release
Testplane version
No response
Last Testplane version that worked
No response
Which area(s) of Testplane are affected? (leave empty if unsure)
CLI
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
- npm init testplane@latest (in some test folder)
- npx testplane --headless=false
Actual Behavior
Get an error like:
<rejected> Error: "headless" option should be "new" or "old", but got "false"
// ...
Expected Behavior
Headless mode is disabled.
Which Node.js version are you using?
v18.12.1
would love to try it