diff --git a/packages/playwright/src/worker/testTracing.ts b/packages/playwright/src/worker/testTracing.ts index bdd73369a3..c820476f27 100644 --- a/packages/playwright/src/worker/testTracing.ts +++ b/packages/playwright/src/worker/testTracing.ts @@ -47,7 +47,7 @@ export class TestTracing { this._tracesDir = path.join(this._artifactsDir, 'traces'); } - private shouldCaptureTrace() { + private _shouldCaptureTrace() { let capture = false; if (this._options?.mode === 'on') capture = true; @@ -71,7 +71,7 @@ export class TestTracing { this._options = { ...defaultTraceOptions, ...value, mode: (mode as string) === 'retry-with-trace' ? 'on-first-retry' : mode }; } - if (this.shouldCaptureTrace() === false) { + if (this._shouldCaptureTrace() === false) { this._options = undefined; return; }