Skip to content

Commit

Permalink
test: disable page-drag tests in headed linux (#31280)
Browse files Browse the repository at this point in the history
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&timestamp=1718225128508
  • Loading branch information
yury-s committed Jun 12, 2024
1 parent fbb44b0 commit 9a31821
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/page/page-drag.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 9a31821

Please sign in to comment.