mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: unflake wheel test in ff (#9989)
This commit is contained in:
parent
6a30c90590
commit
06cf7132be
@ -24,6 +24,7 @@ it('should dispatch wheel events', async ({ page, server }) => {
|
|||||||
await page.mouse.move(50, 60);
|
await page.mouse.move(50, 60);
|
||||||
await listenForWheelEvents(page, 'div');
|
await listenForWheelEvents(page, 'div');
|
||||||
await page.mouse.wheel(0, 100);
|
await page.mouse.wheel(0, 100);
|
||||||
|
await page.waitForFunction('window.scrollY === 100');
|
||||||
expect(await page.evaluate('window.lastEvent')).toEqual({
|
expect(await page.evaluate('window.lastEvent')).toEqual({
|
||||||
deltaX: 0,
|
deltaX: 0,
|
||||||
deltaY: 100,
|
deltaY: 100,
|
||||||
@ -35,7 +36,6 @@ it('should dispatch wheel events', async ({ page, server }) => {
|
|||||||
altKey: false,
|
altKey: false,
|
||||||
metaKey: false,
|
metaKey: false,
|
||||||
});
|
});
|
||||||
await page.waitForFunction('window.scrollY === 100');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should scroll when nobody is listening', async ({ page, server }) => {
|
it('should scroll when nobody is listening', async ({ page, server }) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user