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 }) => {
|
test('should work', async ({ page }) => {
|
||||||
await page.setContent(`
|
await page.setContent(`
|
||||||
<div id=big style="height: 10000px;"></div>
|
<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('#big')).toIntersectViewport();
|
||||||
await expect(page.locator('#small')).not.toIntersectViewport();
|
await expect(page.locator('#small')).not.toIntersectViewport();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue