Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: update fill color expectation for wk win (#38611)
Yury Semikhatskydb64fde8cb54
diff --git a/tests/page/page-fill.spec.ts b/tests/page/page-fill.spec.tsindex 51a5730175..a891abe762 100644--- a/tests/page/page-fill.spec.ts+++ b/tests/page/page-fill.spec.ts@@ -73,10 +73,13 @@ it('should fill color input', async ({ page }) => {expect(await page.$eval('input', input => input.value)).toBe('#aaaaaa');});-it('should fill color input case insensitive', async ({ page }) => {+it('should fill color input case insensitive', async ({ page, browserName, isWindows }) => {await page.setContent('<input type=color value="#e66465">');await page.fill('input', '#AbCd00');- expect(await page.$eval('input', input => input.value)).toBe('#abcd00');+ if (browserName === 'webkit' && isWindows)+ expect(await page.$eval('input', input => input.value)).toBe('#AbCd00');+ else+ expect(await page.$eval('input', input => input.value)).toBe('#abcd00');});it('should throw on incorrect color value', async ({ page, browserName, isWindows }) => {