Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test(chrome): failing test for clicking when scroll-behavior is smooth (#136)
Joel Einbinder1c9103e6420e
diff --git a/test/click.spec.js b/test/click.spec.jsindex 18738cafc2..536d35c3f1 100644--- a/test/click.spec.js+++ b/test/click.spec.js@@ -349,5 +349,14 @@ module.exports.addTests = function({testRunner, expect, playwright, FFOX, CHROMEawait page.click('button');expect(await page.evaluate(() => shiftKey)).toBe(false);});+ it.skip(CHROME)('should click an offscreen element when scroll-behavior is smooth', async({page}) => {+ await page.setContent(`+ <div style="border: 1px solid black; height: 500px; overflow: auto; width: 500px; scroll-behavior: smooth">+ <button style="margin-top: 2000px" onClick="window.clicked = true">hi</button>+ </div>+ `);+ await page.click('button');+ expect(await page.evaluate('window.clicked')).toBe(true);+ });});};