playwright/packages/playwright-test/types
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
..
test.d.ts feat(test runner): descrbe.skip (#12865) 2022-03-18 16:07:11 -07:00
testExpect.d.ts feat(test-runner): implement expect.poll (#12815) 2022-03-18 16:31:26 -07:00
testReporter.d.ts feat(test-runner): support expect.soft (#11800) 2022-02-02 18:33:51 -08:00