From 5ed552838e456f27d21f10f2d180291de87a89b9 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Thu, 20 Oct 2022 10:19:42 -0700 Subject: [PATCH] test: skip "should not include buffers in the trace" on non-default mode (#18215) --- tests/library/tracing.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();