test: attempt to unflake webkit test (#13935)
This commit is contained in:
parent
4db5677e11
commit
1521afbb5f
|
|
@ -69,8 +69,7 @@ it('should scroll zero-sized element into view', async ({ page, isAndroid }) =>
|
||||||
`);
|
`);
|
||||||
expect(await page.locator('#lazyload').boundingBox()).toEqual({ x: 0, y: 2020, width: 1280, height: 0 });
|
expect(await page.locator('#lazyload').boundingBox()).toEqual({ x: 0, y: 2020, width: 1280, height: 0 });
|
||||||
await page.locator('#lazyload').scrollIntoViewIfNeeded();
|
await page.locator('#lazyload').scrollIntoViewIfNeeded();
|
||||||
await page.evaluate(() => new Promise(requestAnimationFrame));
|
await expect(page.locator('#lazyload')).toHaveText('LAZY LOADED CONTENT');
|
||||||
expect(await page.locator('#lazyload').textContent()).toBe('LAZY LOADED CONTENT');
|
|
||||||
expect(await page.locator('#lazyload').boundingBox()).toEqual({ x: 0, y: 720, width: 1280, height: 20 });
|
expect(await page.locator('#lazyload').boundingBox()).toEqual({ x: 0, y: 720, width: 1280, height: 20 });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue