generateNextTraceRecordingPath

This commit is contained in:
Simon Knott 2024-09-14 09:03:02 +02:00
parent 0c7c216499
commit 34254b2dbe
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC
2 changed files with 3 additions and 3 deletions

View file

@ -19994,12 +19994,12 @@ export interface Tracing {
* await context.tracing.startChunk(); * await context.tracing.startChunk();
* await page.getByText('Get Started').click(); * await page.getByText('Get Started').click();
* // Everything between startChunk and stopChunk will be recorded in the trace. * // 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 context.tracing.startChunk();
* await page.goto('http://example.com'); * await page.goto('http://example.com');
* // Save a second trace file with different actions. * // 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 * @param options

View file

@ -131,7 +131,7 @@ export class TestTracing {
} }
generateNextTraceRecordingPath() { generateNextTraceRecordingPath() {
const file = path.join(this._artifactsDir, createGuid() + '.zip'); const file = path.join(this._artifactsDir, createGuid() + '.pwtrace.zip');
this._temporaryTraceFiles.push(file); this._temporaryTraceFiles.push(file);
return file; return file;
} }