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 webview2 skipme's (#32984)
Max Schmitt001ba3770641
diff --git a/tests/page/locator-misc-2.spec.ts b/tests/page/locator-misc-2.spec.tsindex b474d4ff2e..4eaf5972a0 100644--- a/tests/page/locator-misc-2.spec.ts+++ b/tests/page/locator-misc-2.spec.ts@@ -42,8 +42,8 @@ it('should scroll into view', async ({ page, server, isAndroid }) => {}});-it('should scroll zero-sized element into view', async ({ page, isAndroid, isElectron, isWebView2, browserName, isMac, macVersion }) => {- it.fixme(isAndroid || isElectron || isWebView2);+it('should scroll zero-sized element into view', async ({ page, isAndroid, isElectron, browserName, isMac, macVersion }) => {+ it.fixme(isAndroid || isElectron);it.skip(browserName === 'webkit' && isMac && macVersion < 11, 'WebKit for macOS 10.15 is frozen.');await page.setContent(`diff --git a/tests/page/page-accessibility.spec.ts b/tests/page/page-accessibility.spec.tsindex 63a267ec94..c6619b7f9c 100644--- a/tests/page/page-accessibility.spec.ts+++ b/tests/page/page-accessibility.spec.ts@@ -143,9 +143,8 @@ it('should not report text nodes inside controls', async function({ page, browseexpect(await page.accessibility.snapshot()).toEqual(golden);});-it('rich text editable fields should have children', async function({ page, browserName, browserVersion, isWebView2 }) {+it('rich text editable fields should have children', async function({ page, browserName, browserVersion }) {it.skip(browserName === 'webkit', 'WebKit rich text accessibility is iffy');- it.skip(isWebView2, 'WebView2 is missing a Chromium fix');await page.setContent(`<div contenteditable="true">@@ -177,9 +176,8 @@ it('rich text editable fields should have children', async function({ page, browexpect(snapshot.children[0]).toEqual(golden);});-it('rich text editable fields with role should have children', async function({ page, browserName, browserVersion, isWebView2 }) {+it('rich text editable fields with role should have children', async function({ page, browserName, browserVersion }) {it.skip(browserName === 'webkit', 'WebKit rich text accessibility is iffy');- it.skip(isWebView2, 'WebView2 is missing a Chromium fix');await page.setContent(`<div contenteditable="true" role='textbox'>diff --git a/tests/page/page-click-scroll.spec.ts b/tests/page/page-click-scroll.spec.tsindex 758a8d0eb9..d3e55cdffb 100644--- a/tests/page/page-click-scroll.spec.ts+++ b/tests/page/page-click-scroll.spec.ts@@ -78,9 +78,8 @@ it('should scroll into view display:contents with position', async ({ page, browexpect(await page.evaluate('window._clicked')).toBe(true);});-it('should not crash when force-clicking hidden input', async ({ page, isWebView2 }) => {+it('should not crash when force-clicking hidden input', async ({ page }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/18183' });- it.fixme(isWebView2);await page.setContent(`<input type=hidden>`);const error = await page.locator('input').click({ force: true, timeout: 2000 }).catch(e => e);diff --git a/tests/page/page-screenshot.spec.ts b/tests/page/page-screenshot.spec.tsindex c441641b4d..07e53e4a71 100644--- a/tests/page/page-screenshot.spec.ts+++ b/tests/page/page-screenshot.spec.ts@@ -291,10 +291,9 @@ it.describe('page screenshot', () => {expect(screenshot).toMatchSnapshot('screenshot-canvas.png');});- it('should capture canvas changes', async ({ page, isElectron, browserName, isMac, isWebView2 }) => {+ it('should capture canvas changes', async ({ page, isElectron, browserName, isMac }) => {it.fixme(browserName === 'webkit' && isMac, 'https://github.com/microsoft/playwright/issues/8796,https://github.com/microsoft/playwright/issues/16180');it.skip(isElectron);- it.skip(isWebView2);await page.goto('data:text/html,<canvas></canvas>');await page.evaluate(() => {const canvas = document.querySelector('canvas');diff --git a/tests/webview2/webview2-app/webview2.csproj b/tests/webview2/webview2-app/webview2.csprojindex 84849567c4..4636d47030 100644--- a/tests/webview2/webview2-app/webview2.csproj+++ b/tests/webview2/webview2-app/webview2.csproj@@ -9,7 +9,7 @@</PropertyGroup><ItemGroup>- <PackageReference Include="Microsoft.Web.WebView2" Version="1.0.2210.55" />+ <PackageReference Include="Microsoft.Web.WebView2" Version="1.0.2792.45" /></ItemGroup></Project>\ No newline at end of file