Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: fix toIntersectViewport test on WebKit @ Ubuntu 22.04 (#20132)

Andrey Lushnikov780e64f2c666
diff --git a/tests/page/expect-misc.spec.ts b/tests/page/expect-misc.spec.ts
index a8e1625fbc..1f10bc1ac9 100644
--- a/tests/page/expect-misc.spec.ts
+++ b/tests/page/expect-misc.spec.ts
@@ -290,7 +290,7 @@ test.describe('toIntersectViewport', () => {
test('should work', async ({ page }) => {
await page.setContent(`
<div id=big style="height: 10000px;"></div>
- <span id=small>foo</span>
+ <div id=small>foo</div>
`);
await expect(page.locator('#big')).toIntersectViewport();
await expect(page.locator('#small')).not.toIntersectViewport();