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: mouse drag (#16623)
Yury Semikhatsky94c99314c660
diff --git a/tests/page/page-mouse.spec.ts b/tests/page/page-mouse.spec.tsindex 2a47970fe4..4b60d5879e 100644--- a/tests/page/page-mouse.spec.ts+++ b/tests/page/page-mouse.spec.ts@@ -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);+ }+});