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-11-23 08:40:47 -08:00
2022-11-21 10:40:21 -08:00
2022-12-12 16:15:19 +01:00
2022-11-21 09:30:32 -08:00
2022-07-05 17:24:50 -07:00
2022-11-21 09:30:32 -08:00
2022-11-21 09:30:32 -08:00
2022-11-21 10:40:21 -08:00
2022-07-05 17:24:50 -07:00
2022-11-21 10:40:21 -08:00
2022-11-21 10:40:21 -08:00
2022-11-30 13:46:33 -08:00
2022-07-05 17:24:50 -07:00
2022-11-21 10:40:21 -08:00
2022-07-05 17:24:50 -07:00
2022-11-30 12:36:35 -08:00
2022-07-05 17:24:50 -07:00
2022-07-05 17:24:50 -07:00
2022-11-30 12:36:35 -08:00
2022-11-21 09:30:32 -08:00
2022-11-30 12:36:35 -08:00
2022-12-02 21:48:37 -08:00
2022-11-21 09:30:32 -08:00
2022-11-30 12:36:35 -08:00
2022-07-05 17:24:50 -07:00
2022-12-02 21:48:37 -08:00
2022-11-30 13:46:33 -08:00
2022-11-21 10:40:21 -08:00
2022-11-21 10:40:21 -08:00
2023-01-05 10:49:32 -08:00
2023-01-06 16:56:24 -08:00
2022-07-05 17:24:50 -07:00
2022-11-21 09:30:32 -08:00
2022-12-27 09:12:43 -08:00
2022-12-14 09:58:19 -08:00
2022-12-20 13:17:52 +01:00
2022-11-21 10:40:21 -08:00
2022-07-05 17:24:50 -07:00
2022-11-30 12:36:35 -08:00
2022-11-21 09:30:32 -08:00
2022-08-09 15:47:17 +02:00
2023-01-03 23:03:38 +01:00
2022-12-02 21:48:37 -08:00
2022-12-14 09:58:19 -08:00
2022-12-20 16:19:07 +01:00
2022-07-05 17:24:50 -07:00
2022-11-21 10:40:21 -08:00
2022-08-01 15:34:29 -07:00
2022-11-21 09:30:32 -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
2023-01-06 10:26:23 -08:00
2022-07-05 17:24:50 -07:00