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 toPass timeout behavior (#28747)
Yury Semikhatskyf7e298fec3e4
diff --git a/docs/src/test-assertions-js.md b/docs/src/test-assertions-js.mdindex 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:```jsawait 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.extendYou can extend Playwright assertions by providing custom matchers. These matchers will be available on the `expect` object.