Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs(cli): typo in --debug flag (#17455)
Bastian29ff00ead2e7
diff --git a/docs/src/test-cli-js.md b/docs/src/test-cli-js.mdindex 3e1b2fb854..fa188d8dae 100644--- a/docs/src/test-cli-js.md+++ b/docs/src/test-cli-js.md@@ -73,7 +73,7 @@ Complete set of Playwright Test options is available in the [configuration file]- `--browser`: Run test in a specific browser. Available options are `"chromium"`, `"firefox"`, `"webkit"` or `"all"` to run tests in all three browsers at the same time.-- `--debug`: Run tests with Playwright Inspector. Shortcut for `PWDEBUG=1` environment variable and `--timeout=0 --maxFailures=1 --headed --workers=1` options.+- `--debug`: Run tests with Playwright Inspector. Shortcut for `PWDEBUG=1` environment variable and `--timeout=0 --max-failures=1 --headed --workers=1` options.- `-c <file>` or `--config <file>`: Configuration file. If not passed, defaults to `playwright.config.ts` or `playwright.config.js` in the current directory.diff --git a/packages/playwright-test/src/cli.ts b/packages/playwright-test/src/cli.tsindex 7e32353179..b42f3b074f 100644--- a/packages/playwright-test/src/cli.ts+++ b/packages/playwright-test/src/cli.ts@@ -92,7 +92,7 @@ function addTestCommand(program: Command) {command.description('run tests with Playwright Test');command.option('--browser <browser>', `Browser to use for tests, one of "all", "chromium", "firefox" or "webkit" (default: "chromium")`);command.option('--headed', `Run tests in headed browsers (default: headless)`);- command.option('--debug', `Run tests with Playwright Inspector. Shortcut for "PWDEBUG=1" environment variable and "--timeout=0 --maxFailures=1 --headed --workers=1" options`);+ command.option('--debug', `Run tests with Playwright Inspector. Shortcut for "PWDEBUG=1" environment variable and "--timeout=0 --max-failures=1 --headed --workers=1" options`);command.option('-c, --config <file>', `Configuration file, or a test directory with optional ${kDefaultConfigFiles.map(file => `"${file}"`).join('/')}`);command.option('--forbid-only', `Fail if test.only is called (default: false)`);command.option('--fully-parallel', `Run all tests in parallel (default: false)`);