From 4e2d82e6c2408845659c7350ea6c1ee65c0d9d26 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 3 Feb 2025 13:30:54 +0100 Subject: [PATCH] test: add test for color input click behavior (#34156) --- tests/library/capabilities.spec.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/library/capabilities.spec.ts b/tests/library/capabilities.spec.ts index 03ff1d7feb..29328f3f80 100644 --- a/tests/library/capabilities.spec.ts +++ b/tests/library/capabilities.spec.ts @@ -429,6 +429,22 @@ it('should not crash when clicking a label with a ', { expect(fileChooser.page()).toBe(page); }); +it('should not crash when clicking a color input', { + annotation: { + type: 'issue', + description: 'https://github.com/microsoft/playwright/issues/33864' + } +}, async ({ page, browserMajorVersion, browserName }) => { + it.skip(browserName === 'firefox' && browserMajorVersion < 135); + + await page.setContent(''); + const input = page.locator('input'); + + await expect(input).toBeVisible(); + await input.click(); + await expect(input).toBeVisible(); +}); + it('should not auto play audio', { annotation: { type: 'issue',