diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts index cf8a8b9c8c..8ce9210346 100644 --- a/packages/playwright-core/types/types.d.ts +++ b/packages/playwright-core/types/types.d.ts @@ -19994,12 +19994,12 @@ export interface Tracing { * await context.tracing.startChunk(); * await page.getByText('Get Started').click(); * // Everything between startChunk and stopChunk will be recorded in the trace. - * await context.tracing.stopChunk({ path: 'trace1.zip' }); + * await context.tracing.stopChunk({ path: 'trace1.pwtrace.zip' }); * * await context.tracing.startChunk(); * await page.goto('http://example.com'); * // Save a second trace file with different actions. - * await context.tracing.stopChunk({ path: 'trace2.zip' }); + * await context.tracing.stopChunk({ path: 'trace2.pwtrace.zip' }); * ``` * * @param options diff --git a/packages/playwright/src/worker/testTracing.ts b/packages/playwright/src/worker/testTracing.ts index a9f858850a..1b58c5ebf6 100644 --- a/packages/playwright/src/worker/testTracing.ts +++ b/packages/playwright/src/worker/testTracing.ts @@ -131,7 +131,7 @@ export class TestTracing { } generateNextTraceRecordingPath() { - const file = path.join(this._artifactsDir, createGuid() + '.zip'); + const file = path.join(this._artifactsDir, createGuid() + '.pwtrace.zip'); this._temporaryTraceFiles.push(file); return file; }