diff --git a/docs/src/test-api/class-testconfig.md b/docs/src/test-api/class-testconfig.md index a5854ef4e3..0df43c6d0a 100644 --- a/docs/src/test-api/class-testconfig.md +++ b/docs/src/test-api/class-testconfig.md @@ -54,6 +54,7 @@ export default defineConfig({ - `maxDiffPixelRatio` ?<[float]> an acceptable ratio of pixels that are different to the total amount of pixels, between `0` and `1` , unset by default. - `toPass` ?<[Object]> Configuration for the [expect(value).toPass()](../test-assertions.md#expecttopass) method. - `timeout` ?<[int]> timeout for toPass method in milliseconds. + - `intervals` ?<[Array]<[int]>> probe intervals for toPass method in milliseconds. Configuration for the `expect` assertion library. Learn more about [various timeouts](../test-timeouts.md). diff --git a/packages/playwright/types/test.d.ts b/packages/playwright/types/test.d.ts index 2c18860471..0e35b5de67 100644 --- a/packages/playwright/types/test.d.ts +++ b/packages/playwright/types/test.d.ts @@ -702,6 +702,11 @@ interface TestConfig { * timeout for toPass method in milliseconds. */ timeout?: number; + + /** + * probe intervals for toPass method in milliseconds. + */ + intervals?: Array; }; }; @@ -8596,11 +8601,6 @@ interface TestProject { * timeout for toPass method in milliseconds. */ timeout?: number; - - /** - * interval for toPass method in milliseconds. - */ - intervals?: number[]; }; };