From 001ba3770641d460691801ac2460e62f80518aad Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 7 Oct 2024 11:08:07 +0200 Subject: [PATCH] test: update webview2 skipme's (#32984) This leaves only reasonable skipmes for WebView2 in the code base. --- tests/page/locator-misc-2.spec.ts | 4 ++-- tests/page/page-accessibility.spec.ts | 6 ++---- tests/page/page-click-scroll.spec.ts | 3 +-- tests/page/page-screenshot.spec.ts | 3 +-- tests/webview2/webview2-app/webview2.csproj | 2 +- 5 files changed, 7 insertions(+), 11 deletions(-) diff --git a/tests/page/locator-misc-2.spec.ts b/tests/page/locator-misc-2.spec.ts index b474d4ff2e46c..4eaf5972a074b 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.ts index 63a267ec94593..c6619b7f9cbb0 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, browse expect(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(`
@@ -177,9 +176,8 @@ it('rich text editable fields should have children', async function({ page, brow expect(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(`
diff --git a/tests/page/page-click-scroll.spec.ts b/tests/page/page-click-scroll.spec.ts index 758a8d0eb95e3..d3e55cdffbc42 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, brow expect(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(``); 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.ts index c441641b4db18..07e53e4a711f6 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,'); await page.evaluate(() => { const canvas = document.querySelector('canvas'); diff --git a/tests/webview2/webview2-app/webview2.csproj b/tests/webview2/webview2-app/webview2.csproj index 84849567c4c66..4636d47030164 100644 --- a/tests/webview2/webview2-app/webview2.csproj +++ b/tests/webview2/webview2-app/webview2.csproj @@ -9,7 +9,7 @@ - + \ No newline at end of file