Skip to content

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

test: enable "should not crash when force-clicking hidden input" on chromium (#18576)

Dmitry Gozman3a24e88e6116
diff --git a/tests/page/page-click-scroll.spec.ts b/tests/page/page-click-scroll.spec.ts
index 62afdc3e18..ebe077cfd9 100644
--- a/tests/page/page-click-scroll.spec.ts
+++ b/tests/page/page-click-scroll.spec.ts
@@ -79,9 +79,9 @@ it('should scroll into view display:contents with position', async ({ page, brow
expect(await page.evaluate('window._clicked')).toBe(true);
});
-it('should not crash when force-clicking hidden input', async ({ page, browserName }) => {
+it('should not crash when force-clicking hidden input', async ({ page, browserName, channel, browserMajorVersion }) => {
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/18183' });
- it.fixme(browserName === 'chromium');
+ it.skip(browserName === 'chromium' && !!channel && browserMajorVersion < 109);
await page.setContent(`<input type=hidden>`);
const error = await page.locator('input').click({ force: true, timeout: 2000 }).catch(e => e);