From ad4719f1295b5e9427d43d0aee5f04e99f860ea4 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Sat, 28 Dec 2024 13:08:31 +0000 Subject: [PATCH] test: add test for color input click behavior --- tests/library/capabilities.spec.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/library/capabilities.spec.ts b/tests/library/capabilities.spec.ts index 03ff1d7feb..e9ed0cab67 100644 --- a/tests/library/capabilities.spec.ts +++ b/tests/library/capabilities.spec.ts @@ -429,6 +429,20 @@ 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 }) => { + 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',