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 tracing test on trace mode (#24483)

Max Schmitt83a98cccf343
diff --git a/tests/library/browsercontext-reuse.spec.ts b/tests/library/browsercontext-reuse.spec.ts
index dce50ad997..fb994f4eea 100644
--- a/tests/library/browsercontext-reuse.spec.ts
+++ b/tests/library/browsercontext-reuse.spec.ts
@@ -235,7 +235,9 @@ test('should reset mouse position', async ({ reusedContext, browserName, platfor
await expect(page.locator('#two')).toHaveCSS('background-color', 'rgb(0, 0, 255)');
});
-test('should reset tracing', async ({ reusedContext }, testInfo) => {
+test('should reset tracing', async ({ reusedContext, trace }, testInfo) => {
+ test.skip(trace === 'on');
+
let context = await reusedContext();
await context.tracing.start();