From b1c15e453919323c16127555b0245bc1b3e1a6fc Mon Sep 17 00:00:00 2001 From: Joel Einbinder Date: Thu, 21 May 2020 07:37:27 -0700 Subject: [PATCH] test: add failing PageDown test (#2326) Co-authored-by: Joel Einbinder --- test/keyboard.spec.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/keyboard.spec.js b/test/keyboard.spec.js index 7bcd63c03e..229c958fba 100644 --- a/test/keyboard.spec.js +++ b/test/keyboard.spec.js @@ -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); + }); });