Andrey Lushnikov 2a49c5e498
feat(expect): introduce expect(locator).toIntersectViewport() (#19901)
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
2023-01-06 16:56:24 -08:00
..
2022-07-05 17:24:50 -07:00
2022-07-05 17:24:50 -07:00
2022-07-05 17:24:50 -07:00
2022-07-05 17:24:50 -07:00
2022-07-05 17:24:50 -07:00
2022-07-05 17:24:50 -07:00
2022-07-05 17:24:50 -07:00