Skip to content

Commit

Permalink
test: add test for color input click behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Jan 18, 2025
1 parent 372d419 commit ad4719f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/library/capabilities.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,20 @@ 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 }) => {
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',
Expand Down

0 comments on commit ad4719f

Please sign in to comment.