mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
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
This commit is contained in:
parent
fbb44b043b
commit
9a31821411
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user