Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: add failing PageDown test (#2326)

Joel Einbinderb1c15e453919
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);
+ });
});