From 9a31821411e7dec3a5182a804b72aaf361a60e8c Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Wed, 12 Jun 2024 15:09:56 -0700 Subject: [PATCH] test: disable page-drag tests in headed linux (#31280) The tests have been flaking across browsers apparently due to stray mouse event sent by the OS. See https://devops.playwright.dev/flakiness.html#filter_spec=page%2Fpage-drag.spec.ts&show_flaky=true×tamp=1718225128508 --- tests/page/page-drag.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/page/page-drag.spec.ts b/tests/page/page-drag.spec.ts index f7b60baf8c18c..dcf63681a85bc 100644 --- a/tests/page/page-drag.spec.ts +++ b/tests/page/page-drag.spec.ts @@ -21,6 +21,7 @@ import { attachFrame } from '../config/utils'; it.describe('Drag and drop', () => { it.skip(({ browserName, browserMajorVersion }) => browserName === 'chromium' && browserMajorVersion < 91); it.skip(({ isAndroid }) => isAndroid, 'No drag&drop on Android.'); + it.fixme(({ headless, isLinux }) => isLinux && !headless, 'Stray mouse events on Linux headed mess up the tests.'); it('should work @smoke', async ({ page, server }) => { await page.goto(server.PREFIX + '/drag-n-drop.html'); @@ -334,7 +335,8 @@ it.describe('Drag and drop', () => { }); }); -it('should work if not doing a drag', async ({ page }) => { +it('should work if not doing a drag', async ({ page, isLinux, headless }) => { + it.fixme(isLinux && !headless, 'Stray mouse events on Linux headed mess up the tests.'); const eventsHandle = await trackEvents(await page.$('html')); await page.mouse.move(50, 50); await page.mouse.down();