test: mouse drag (#16623)

This commit is contained in:
Yury Semikhatsky 2022-08-17 15:36:14 -07:00 committed by GitHub
parent 3ce51e6f98
commit 94c99314c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,3 +240,13 @@ it('should always round down', async ({ page }) => {
await page.mouse.click(50.1, 50.9);
expect(await page.evaluate('result')).toEqual([50, 50]);
});
it('should not crash on mouse drag with any button', async ({ page, browserName, isMac }) => {
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/16609' });
it.fixme(isMac && browserName === 'webkit');
for (const button of ['left', 'middle', 'right'] as const) {
await page.mouse.move(50, 50);
await page.mouse.down({ button });
await page.mouse.move(100, 100);
}
});