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 (#41213)

Dmitry Gozman123c3348e507
diff --git a/tests/library/heap.spec.ts b/tests/library/heap.spec.ts
index 7c2b9d8472..4c5a5e9a2d 100644
--- a/tests/library/heap.spec.ts
+++ b/tests/library/heap.spec.ts
@@ -200,8 +200,9 @@ test.describe(() => {
});
});
-test('cycle handles', async ({ page, server }) => {
+test('cycle handles', async ({ page, server, trace }) => {
test.slow();
+ test.skip(trace === 'on', 'too slow with 2000 snapshots');
await page.goto(server.EMPTY_PAGE);
await page.setContent(`<div><span>hi</span></div>`.repeat(2000));
diff --git a/tests/library/screencast.spec.ts b/tests/library/screencast.spec.ts
index 468880b61e..a67b0aaaf2 100644
--- a/tests/library/screencast.spec.ts
+++ b/tests/library/screencast.spec.ts
@@ -25,8 +25,10 @@ test.skip(({ mode }) => mode !== 'default', 'screencast is not available in remo
test.skip(({ video }) => video === 'on', 'conflicts with built-in video recording');
test.slow();
-test('screencast.start delivers frames via onFrame callback', async ({ browser, server, trace }) => {
+test('screencast.start delivers frames via onFrame callback', async ({ browser, server, trace, browserName, isMac, headless }) => {
test.skip(trace === 'on', 'trace=on has different screencast image configuration');
+ test.fixme(browserName === 'firefox' && isMac && !headless, 'wrong frame size in headed Firefox on Mac');
+
const context = await browser.newContext({ viewport: { width: 1000, height: 400 } });
const page = await context.newPage();
@@ -52,8 +54,10 @@ test('screencast.start delivers frames via onFrame callback', async ({ browser,
await context.close();
});
-test('onFrame receives viewport size', async ({ browser, server, trace }) => {
+test('onFrame receives viewport size', async ({ browser, server, trace, browserName, isMac, headless }) => {
test.skip(trace === 'on', 'trace=on has different screencast image configuration');
+ test.fixme(browserName === 'firefox' && isMac && !headless, 'wrong frame size in headed Firefox on Mac');
+
const context = await browser.newContext({ viewport: { width: 1000, height: 400 } });
const page = await context.newPage();