From 780e64f2c666d919ebffed02273683103ea5afa4 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Mon, 16 Jan 2023 00:11:33 -0800 Subject: [PATCH] test: fix toIntersectViewport test on WebKit @ Ubuntu 22.04 (#20132) For some reason scrolling inline element into view doesn't always work. --- tests/page/expect-misc.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(`
- foo +
foo
`); await expect(page.locator('#big')).toIntersectViewport(); await expect(page.locator('#small')).not.toIntersectViewport();