playwright/docs
Andrey Lushnikov cfe92e1608
feat(test-runner): implement expect.poll (#12815)
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
2022-03-18 16:31:26 -07:00
..
development devops: migrate from master to main branch (#10303) 2021-12-07 22:58:33 -08:00
src feat(test-runner): implement expect.poll (#12815) 2022-03-18 16:31:26 -07:00