diff --git a/docs/src/test-assertions-js.md b/docs/src/test-assertions-js.md index d05b7a750a..7db1f9c141 100644 --- a/docs/src/test-assertions-js.md +++ b/docs/src/test-assertions-js.md @@ -223,7 +223,7 @@ await expect(async () => { }).toPass(); ``` -You can also specify custom timeout for retry intervals: +You can also specify custom timeout and retry intervals: ```js await expect(async () => { @@ -237,6 +237,8 @@ await expect(async () => { }); ``` +Note that by default `toPass` has timeout 0 and does not respect custom [expect timeout](./test-timeouts.md#expect-timeout). + ## Add custom matchers using expect.extend You can extend Playwright assertions by providing custom matchers. These matchers will be available on the `expect` object.