Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test(mouse): disable click steps test on headed (#38080)

Adam Gastineau3f5cbd531af3
diff --git a/tests/page/page-click.spec.ts b/tests/page/page-click.spec.ts
index 688dc246d0..083e9180fc 100644
--- a/tests/page/page-click.spec.ts
+++ b/tests/page/page-click.spec.ts
@@ -1288,8 +1288,9 @@ it('should click shadow root button', { annotation: { type: 'issue', description
await page.locator('my-button').click();
});
-it('should click with tweened mouse movement', async ({ page, browserName, isAndroid }) => {
+it('should click with tweened mouse movement', async ({ page, browserName, isAndroid, headless }) => {
it.skip(isAndroid, 'Bad rounding');
+ it.skip(!headless, 'System cursor tends to interfere with this test');
await page.setContent(`
<body style="margin: 0; padding: 0; height: 500px; width: 500px;">