test: add test for color input click behavior (#34156)

This commit is contained in:
Max Schmitt 2025-02-03 13:30:54 +01:00 committed by GitHub
parent 36478f250a
commit 4e2d82e6c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -429,6 +429,22 @@ it('should not crash when clicking a label with a <input type="file"/>', {
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('<input type="color">');
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',