test: add failing PageDown test (#2326)
Co-authored-by: Joel Einbinder <joel.einbinde@gmail.com>
This commit is contained in:
parent
2f345c7828
commit
b1c15e4539
|
|
@ -377,4 +377,12 @@ describe('Keyboard', function() {
|
|||
expect(await page.evaluate('lastKeyIdentifier')).toBe(keyIdentifier);
|
||||
}
|
||||
});
|
||||
it.fail(WEBKIT && MAC)('should scroll with PageDown', async({page, server}) => {
|
||||
await page.goto(server.PREFIX + '/input/scrollable.html');
|
||||
// A click is required for WebKit to send the event into the body.
|
||||
await page.click('body');
|
||||
await page.keyboard.press('PageDown');
|
||||
// We can't wait for the scroll to finish, so just wait for it to start.
|
||||
await page.waitForFunction(() => scrollY > 0);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue