Skip to content

Commit b1c15e4

Browse files
JoelEinbinderJoel Einbinder
andauthored
test: add failing PageDown test (#2326)
Co-authored-by: Joel Einbinder <[email protected]>
1 parent 2f345c7 commit b1c15e4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/keyboard.spec.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,4 +377,12 @@ describe('Keyboard', function() {
377377
expect(await page.evaluate('lastKeyIdentifier')).toBe(keyIdentifier);
378378
}
379379
});
380+
it.fail(WEBKIT && MAC)('should scroll with PageDown', async({page, server}) => {
381+
await page.goto(server.PREFIX + '/input/scrollable.html');
382+
// A click is required for WebKit to send the event into the body.
383+
await page.click('body');
384+
await page.keyboard.press('PageDown');
385+
// We can't wait for the scroll to finish, so just wait for it to start.
386+
await page.waitForFunction(() => scrollY > 0);
387+
});
380388
});

0 commit comments

Comments
 (0)