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: make Android/WebView2 bots green (#29477)
Max Schmitt8fca4c86aadf
diff --git a/tests/page/page-add-locator-handler.spec.ts b/tests/page/page-add-locator-handler.spec.tsindex 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.tsindex 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, browexpect(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(`<input type=hidden>`);const error = await page.locator('input').click({ force: true, timeout: 2000 }).catch(e => e);