mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-03 07:51:12 +03:00
test: mouse drag (#16623)
This commit is contained in:
parent
3ce51e6f98
commit
94c99314c6
@ -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);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user