This is a new web-first assertion that should be used like this:
```ts
test('should work', async ({ page }) => {
const locator = page.locator('body');
// New web-first assertion.
await expect(locator).toIntersectViewport();
// The same functionality.
await expect.poll(() => locator.viewportRatio()).toBeGreaterThan(0);
});
```
Fixes #8740
|
||
|---|---|---|
| .. | ||
| component.d.ts | ||
| expect-types.d.ts | ||
| test.d.ts | ||
| testReporter.d.ts | ||