Skip to content

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

test: mark "fill color input" test as dailing on wk windows (#10792)

Yury Semikhatsky3272af9f9686
diff --git a/tests/page/page-fill.spec.ts b/tests/page/page-fill.spec.ts
index b7faedb674..9dae1ee304 100644
--- a/tests/page/page-fill.spec.ts
+++ b/tests/page/page-fill.spec.ts
@@ -105,7 +105,8 @@ it('should fill color input', async ({ page }) => {
expect(await page.$eval('input', input => input.value)).toBe('#aaaaaa');
});
-it('should throw on incorrect color value', async ({ page }) => {
+it('should throw on incorrect color value', async ({ page, browserName, isWindows }) => {
+ it.skip(browserName === 'webkit' && isWindows, 'WebKit win does not support color inputs');
await page.setContent('<input type=color value="#e66465">');
const error1 = await page.fill('input', 'badvalue').catch(e => e);
expect(error1.message).toContain('Malformed value');