mirror of
https://github.com/microsoft/playwright.git
synced 2025-01-07 11:46:42 +03:00
cfe92e1608
This patch implements `expect.poll()` method that polls given predicate until a given synchronous predicate completes. Usage: ```js // wait until page gets 3 frames. await expect.poll(() => page.frames().length, { timeout: 1000, message: 'custom error message', }).toBe(3); ``` Fixes #10235 |
||
---|---|---|
.. | ||
test.d.ts | ||
testExpect.d.ts | ||
testReporter.d.ts |