test: disable page-drag tests in headed linux
The tests have been flaking across browsers apparently due to stray mouse event sent by the OS.
This commit is contained in:
parent
f1475fa644
commit
eeea9503d7
|
|
@ -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…
Reference in a new issue