generateNextTraceRecordingPath
This commit is contained in:
parent
0c7c216499
commit
34254b2dbe
4
packages/playwright-core/types/types.d.ts
vendored
4
packages/playwright-core/types/types.d.ts
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue