test: add failing PageDown test (#2326)

Co-authored-by: Joel Einbinder <joel.einbinde@gmail.com>
This commit is contained in:
Joel Einbinder 2020-05-21 07:37:27 -07:00 committed by GitHub
parent 2f345c7828
commit b1c15e4539
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
});
});