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 expectations for WebKit Windows (#28774)
Yury Semikhatskyb00fbdb38898
diff --git a/tests/page/page-fill.spec.ts b/tests/page/page-fill.spec.tsindex 9e90d94ecd..0704de327a 100644--- a/tests/page/page-fill.spec.ts+++ b/tests/page/page-fill.spec.ts@@ -98,8 +98,10 @@ for (const [type, value] of Object.entries({'range': '42','week': '2020-W50'})) {- it(`input event.composed should be true and cross shadow dom boundary - ${type}`, async ({ page, server, browserName }) => {+ it(`input event.composed should be true and cross shadow dom boundary - ${type}`, async ({ page, server, browserName, isWindows }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28726' });+ it.skip(browserName !== 'chromium' && ['month', 'week'].includes(type), 'Some browser/platforms do not implement certain input types');+ it.skip(browserName === 'webkit' && isWindows && ['color', 'date', 'time', 'datetime-local'].includes(type), 'Some browser/platforms do not implement certain input types');await page.goto(server.EMPTY_PAGE);await page.setContent(`<body><script>const div = document.createElement('div');@@ -126,11 +128,7 @@ for (const [type, value] of Object.entries({});await page.locator('input').fill(value);- expect(await page.evaluate(() => window['firedEvents'])).toEqual(- (browserName !== 'chromium' && (type === 'month' || type === 'week')) ?- ['input:true'] :- ['input:true', 'change:false']- );+ expect(await page.evaluate(() => window['firedEvents'])).toEqual(['input:true', 'change:false']);expect(await page.evaluate(() => window['firedBodyEvents'])).toEqual(['input:true']);});}