Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: disable some failing tests (#27463)

Dmitry Gozman0717b386f99f
diff --git a/tests/library/chromium/connect-over-cdp.spec.ts b/tests/library/chromium/connect-over-cdp.spec.ts
index 44d4f68a9e..24a24e8949 100644
--- a/tests/library/chromium/connect-over-cdp.spec.ts
+++ b/tests/library/chromium/connect-over-cdp.spec.ts
@@ -447,7 +447,9 @@ test('emulate media should not be affected by second connectOverCDP', async ({ b
}
});
-test('should allow tracing over cdp session', async ({ browserType, mode }, testInfo) => {
+test('should allow tracing over cdp session', async ({ browserType, trace }, testInfo) => {
+ test.skip(trace === 'on');
+
const port = 9339 + testInfo.workerIndex;
const browserServer = await browserType.launch({
args: ['--remote-debugging-port=' + port]
diff --git a/tests/page/page-basic.spec.ts b/tests/page/page-basic.spec.ts
index 1f2458ddc1..04c33a7e82 100644
--- a/tests/page/page-basic.spec.ts
+++ b/tests/page/page-basic.spec.ts
@@ -17,8 +17,9 @@
import { test as it, expect } from './pageTest';
-it('should reject all promises when page is closed', async ({ page, isWebView2 }) => {
+it('should reject all promises when page is closed', async ({ page, isWebView2, isAndroid }) => {
it.skip(isWebView2, 'Page.close() is not supported in WebView2');
+ it.fixme(isAndroid, '"Target crashed" instead of "Target closed"');
let error = null;
await Promise.all([
diff --git a/tests/page/page-screenshot.spec.ts b/tests/page/page-screenshot.spec.ts
index da0d3edf96..7985bf2fb5 100644
--- a/tests/page/page-screenshot.spec.ts
+++ b/tests/page/page-screenshot.spec.ts
@@ -885,8 +885,9 @@ it('page screenshot should capture css transform', async function({ page, browse
await expect(page).toHaveScreenshot();
});
-it('should capture css box-shadow', async ({ page }) => {
+it('should capture css box-shadow', async ({ page, isElectron, isAndroid }) => {
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/21620' });
+ it.fixme(isElectron || isAndroid, 'Returns screenshot of a different size.');
await page.setContent(`<div style="box-shadow: red 10px 10px 10px; width: 50px; height: 50px;"></div>`);
await expect(page).toHaveScreenshot();
});