From 8fca4c86aadf9a2fe1355bdb76b49917a5bbbb2c Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 13 Feb 2024 17:55:58 +0100 Subject: [PATCH] test: make Android/WebView2 bots green (#29477) --- tests/page/page-add-locator-handler.spec.ts | 6 ++++-- tests/page/page-click-scroll.spec.ts | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/page/page-add-locator-handler.spec.ts b/tests/page/page-add-locator-handler.spec.ts index f1ff9b11b9..7f75a86ffc 100644 --- a/tests/page/page-add-locator-handler.spec.ts +++ b/tests/page/page-add-locator-handler.spec.ts @@ -117,7 +117,8 @@ test('should not work with force:true', async ({ page, server }) => { expect(await page.evaluate('window.clicked')).toBe(undefined); }); -test('should throw when page closes', async ({ page, server }) => { +test('should throw when page closes', async ({ page, server, isAndroid }) => { + test.fixme(isAndroid, 'GPU process crash: https://issues.chromium.org/issues/324909825'); await page.goto(server.PREFIX + '/input/handle-locator.html'); await page.addLocatorHandler(page.getByText('This interstitial covers the button'), async () => { @@ -176,7 +177,8 @@ test('should work with toBeVisible', async ({ page, server }) => { expect(called).toBe(1); }); -test('should work with toHaveScreenshot', async ({ page, server }) => { +test('should work with toHaveScreenshot', async ({ page, server, isAndroid }) => { + test.fixme(isAndroid, 'Screenshots are cut off on Android'); await page.setViewportSize({ width: 500, height: 500 }); await page.goto(server.PREFIX + '/grid.html'); diff --git a/tests/page/page-click-scroll.spec.ts b/tests/page/page-click-scroll.spec.ts index d3e55cdffb..758a8d0eb9 100644 --- a/tests/page/page-click-scroll.spec.ts +++ b/tests/page/page-click-scroll.spec.ts @@ -78,8 +78,9 @@ 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 }) => { +it('should not crash when force-clicking hidden input', async ({ page, isWebView2 }) => { 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);