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: clarify default retry behavior (#9525)
Yury Semikhatsky4680ef46de8a
diff --git a/docs/src/test-advanced-js.md b/docs/src/test-advanced-js.mdindex 2845d4573f..e357b0e92b 100644--- a/docs/src/test-advanced-js.md+++ b/docs/src/test-advanced-js.md@@ -16,7 +16,7 @@ These options define your test suite:- `name: string` - Project name, useful when defining multiple [test projects](#projects).- `outputDir: string` - Output directory for files created during the test run.- `repeatEach: number` - The number of times to repeat each test, useful for debugging flaky tests.-- `retries: number` - The maximum number of retry attempts given to failed tests.+- `retries: number` - The maximum number of retry attempts given to failed tests. If not specified, failing tests are not reried.- `testDir: string` - Directory that will be recursively scanned for test files.- `testIgnore: string | RegExp | (string | RegExp)[]` - Files matching one of these patterns are not considered test files.- `testMatch: string | RegExp | (string | RegExp)[]` - Only the files matching one of these patterns are considered test files.diff --git a/docs/src/test-api/class-testconfig.md b/docs/src/test-api/class-testconfig.mdindex a86723131e..07616906cf 100644--- a/docs/src/test-api/class-testconfig.md+++ b/docs/src/test-api/class-testconfig.md@@ -219,7 +219,7 @@ Tests that took more than `threshold` milliseconds are considered slow, and the## property: TestConfig.retries- type: <[int]>-The maximum number of retry attempts given to failed tests. Learn more about [test retries](./test-retries.md#retries).+The maximum number of retry attempts given to failed tests. By default failing tests are not reried. Learn more about [test retries](./test-retries.md#retries).## property: TestConfig.shard- type: <[Object]>diff --git a/docs/src/test-retries-js.md b/docs/src/test-retries-js.mdindex 5c22faa629..c10fb9e46d 100644--- a/docs/src/test-retries-js.md+++ b/docs/src/test-retries-js.md@@ -56,7 +56,7 @@ This scheme works perfectly for independent tests and guarantees that failing te## Retries-Playwright Test supports **test retries**. When enabled, failing tests will be retried multiple times until they pass, or until the maximum number of retries is reached.+Playwright Test supports **test retries**. When enabled, failing tests will be retried multiple times until they pass, or until the maximum number of retries is reached. By default failing tests are not retried.```bash# Give failing tests 3 retry attemptsdiff --git a/packages/playwright-test/types/test.d.ts b/packages/playwright-test/types/test.d.tsindex 64a4b8173c..0f144b83e8 100644--- a/packages/playwright-test/types/test.d.ts+++ b/packages/playwright-test/types/test.d.ts@@ -537,7 +537,8 @@ interface TestConfig {*/repeatEach?: number;/**- * The maximum number of retry attempts given to failed tests. Learn more about [test retries](https://playwright.dev/docs/test-retries#retries).+ * The maximum number of retry attempts given to failed tests. By default failing tests are not reried. Learn more about+ * [test retries](https://playwright.dev/docs/test-retries#retries).*/retries?: number;/**