test: disable some failing tests (#27463)

This commit is contained in:
Dmitry Gozman 2023-10-05 15:00:08 -07:00 committed by GitHub
parent 70dbb9d83a
commit 0717b386f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View File

@ -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]

View File

@ -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([

View File

@ -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();
});