mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: fix toIntersectViewport test on WebKit @ Ubuntu 22.04 (#20132)
For some reason scrolling inline element into view doesn't always work.
This commit is contained in:
parent
8671bfc53f
commit
780e64f2c6
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user