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
|
||
|---|---|---|
| .. | ||
| html-reporter | ||
| playwright | ||
| playwright-chromium | ||
| playwright-core | ||
| playwright-ct-react | ||
| playwright-ct-svelte | ||
| playwright-ct-vue | ||
| playwright-firefox | ||
| playwright-test | ||
| playwright-webkit | ||
| .eslintrc.js | ||