Skip to content

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

test: skip "should not include buffers in the trace" on non-default mode (#18215)

Dmitry Gozman5ed552838e45
diff --git a/tests/library/tracing.spec.ts b/tests/library/tracing.spec.ts
index 163f3c8451..421952f2c9 100644
--- a/tests/library/tracing.spec.ts
+++ b/tests/library/tracing.spec.ts
@@ -107,7 +107,9 @@ test('should not collect snapshots by default', async ({ context, page, server }
expect(events.some(e => e.type === 'resource-snapshot')).toBeFalsy();
});
-test('should not include buffers in the trace', async ({ context, page, server }, testInfo) => {
+test('should not include buffers in the trace', async ({ context, page, server, mode }, testInfo) => {
+ test.skip(mode !== 'default', 'no buffers with remote connections');
+
await context.tracing.start({ snapshots: true });
await page.goto(server.PREFIX + '/empty.html');
await page.screenshot();