mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
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 });
|
||||
await page.locator('#lazyload').scrollIntoViewIfNeeded();
|
||||
await page.evaluate(() => new Promise(requestAnimationFrame));
|
||||
expect(await page.locator('#lazyload').textContent()).toBe('LAZY LOADED CONTENT');
|
||||
await expect(page.locator('#lazyload')).toHaveText('LAZY LOADED CONTENT');
|
||||
expect(await page.locator('#lazyload').boundingBox()).toEqual({ x: 0, y: 720, width: 1280, height: 20 });
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user