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 tests (#39622)

Dmitry Gozmand443fa46c801
diff --git a/tests/library/download.spec.ts b/tests/library/download.spec.ts
index 3672896b4e..d64bcd05aa 100644
--- a/tests/library/download.spec.ts
+++ b/tests/library/download.spec.ts
@@ -396,8 +396,8 @@ it.describe('download event', () => {
expect(fs.existsSync(path.join(path1, '..'))).toBeFalsy();
});
- it('should save downloads to artifactsDir', async ({ server, browserType, browserName, isMac, macVersion }, testInfo) => {
- it.skip(browserName === 'webkit' && isMac && macVersion <= 14, 'WebKit on macOS-14 is frozen');
+ it('should save downloads to artifactsDir', async ({ server, browserType, isFrozenWebkit }, testInfo) => {
+ it.skip(isFrozenWebkit, 'needs recent webkit');
const artifactsDir = testInfo.outputPath('artifacts');
const browser = await browserType.launch({ artifactsDir });
const page = await browser.newPage();
diff --git a/tests/library/proxy.spec.ts b/tests/library/proxy.spec.ts
index 19a60de591..031cc71c7d 100644
--- a/tests/library/proxy.spec.ts
+++ b/tests/library/proxy.spec.ts
@@ -123,11 +123,8 @@ it.describe('should proxy local network requests', () => {
}
});
-for (const host of ['localhost', '127.0.0.1', '[::1]']) {
- it(`should allow bypassing ${host} requests`, async ({ browserName, browserType, server, proxyServer, isLinux }) => {
- it.fixme(browserName === 'firefox' && host === '[::1]', 'firefox still proxies');
- it.fixme(browserName === 'webkit' && isLinux && host === '[::1]', 'webkit linux still proxies');
-
+for (const host of ['localhost', '127.0.0.1']) {
+ it(`should allow bypassing ${host} requests`, async ({ browserType, server, proxyServer }) => {
server.setRoute(`/proxied/target.html`, async (req, res) => {
res.end('<html><title>Served by the server</title></html>');
});
diff --git a/tests/library/screencast.spec.ts b/tests/library/screencast.spec.ts
index f17bac1463..2b2d207f4f 100644
--- a/tests/library/screencast.spec.ts
+++ b/tests/library/screencast.spec.ts
@@ -18,6 +18,7 @@ import { expect, browserTest as test } from '../config/browserTest';
import { rafraf } from '../config/utils';
test.skip(({ mode }) => mode !== 'default', 'screencast is not available in remote mode');
+test.skip(({ video }) => video === 'on', 'conflicts with built-in video recording');
test('screencast.start emits screencastframe events', async ({ browser, server, trace }) => {
test.skip(trace === 'on', 'trace=on has different screencast image configuration');
diff --git a/tests/library/video.spec.ts b/tests/library/video.spec.ts
index 2e9242b319..c373c1f38e 100644
--- a/tests/library/video.spec.ts
+++ b/tests/library/video.spec.ts
@@ -158,6 +158,8 @@ function expectFrames(videoFile: string, size: { width: number, height: number }
}
}
+it.skip(({ video }) => video === 'on', 'conflicts with built-in video recording');
+
it.describe('screencast', () => {
it.slow();
it.skip(({ mode }) => mode !== 'default', 'video.path() is not available in remote mode');
diff --git a/tests/page/page-click.spec.ts b/tests/page/page-click.spec.ts
index 76b29b9269..f9f3be7f65 100644
--- a/tests/page/page-click.spec.ts
+++ b/tests/page/page-click.spec.ts
@@ -460,7 +460,8 @@ it('should click the button behind position:absolute header', {
expect(await page.evaluate(() => window['__clicked'])).toBe(true);
});
-it('should click the button with px border with offset', async ({ page, server, browserName }) => {
+it('should click the button with px border with offset', async ({ page, server, isFrozenWebkit }) => {
+ it.skip(isFrozenWebkit, 'needs recent webkit');
await page.goto(server.PREFIX + '/input/button.html');
await page.$eval('button', button => button.style.borderWidth = '8px');
await page.click('button', { position: { x: 20, y: 10 } });
@@ -470,7 +471,8 @@ it('should click the button with px border with offset', async ({ page, server,
expect(await page.evaluate('offsetY')).toBe(10);
});
-it('should click the button with em border with offset', async ({ page, server, browserName }) => {
+it('should click the button with em border with offset', async ({ page, server, isFrozenWebkit }) => {
+ it.skip(isFrozenWebkit, 'needs recent webkit');
await page.goto(server.PREFIX + '/input/button.html');
await page.$eval('button', button => button.style.borderWidth = '2em');
await page.$eval('button', button => button.style.fontSize = '12px');
@@ -481,8 +483,9 @@ it('should click the button with em border with offset', async ({ page, server,
expect(await page.evaluate('offsetY')).toBe(10);
});
-it('should click a very large button with offset', async ({ page, server, browserName, isAndroid }) => {
+it('should click a very large button with offset', async ({ page, server, isFrozenWebkit, isAndroid }) => {
it.fixme(isAndroid, 'Failed to scroll to a particular point');
+ it.skip(isFrozenWebkit, 'needs recent webkit');
await page.goto(server.PREFIX + '/input/button.html');
await page.$eval('button', button => button.style.borderWidth = '8px');
await page.$eval('button', button => button.style.height = button.style.width = '2000px');
@@ -493,8 +496,9 @@ it('should click a very large button with offset', async ({ page, server, browse
expect(await page.evaluate('offsetY')).toBe(1910);
});
-it('should click a button in scrolling container with offset', async ({ page, server, browserName, isAndroid }) => {
+it('should click a button in scrolling container with offset', async ({ page, server, isFrozenWebkit, isAndroid }) => {
it.fixme(isAndroid, 'Failed to scroll to a particular point');
+ it.skip(isFrozenWebkit, 'needs recent webkit');
await page.goto(server.PREFIX + '/input/button.html');
await page.$eval('button', button => {
const container = document.createElement('div');