playwright/packages/playwright-test/types
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
..
component.d.ts feat(ct): rerender to update (#17972) 2022-10-10 19:56:33 -07:00
expect-types.d.ts chore: embed expect types (#13609) 2022-04-18 10:54:40 -07:00
test.d.ts feat(expect): introduce expect(locator).toIntersectViewport() (#19901) 2023-01-06 16:56:24 -08:00
testReporter.d.ts chore: report error location for fatal errors (#19610) 2022-12-21 09:36:59 -08:00