mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00

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