1
1
mirror of https://github.com/microsoft/playwright.git synced 2024-12-15 06:02:57 +03:00

test(chrome): failing test for clicking when scroll-behavior is smooth ()

This commit is contained in:
Joel Einbinder 2019-12-05 17:58:19 -08:00 committed by Dmitry Gozman
parent 2c185e3ead
commit 1c9103e642

View File

@ -349,5 +349,14 @@ module.exports.addTests = function({testRunner, expect, playwright, FFOX, CHROME
await page.click('button'); await page.click('button');
expect(await page.evaluate(() => shiftKey)).toBe(false); 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);
});
}); });
}; };