Fixes #23108.
This commit is contained in:
parent
7effaf4f22
commit
bf25a93617
|
|
@ -324,7 +324,7 @@ export class Tracing extends SdkObject implements InstrumentationListener, Snaps
|
||||||
for (const entry of entries)
|
for (const entry of entries)
|
||||||
zipFile.addFile(entry.value, entry.name);
|
zipFile.addFile(entry.value, entry.name);
|
||||||
zipFile.end();
|
zipFile.end();
|
||||||
const zipFileName = state.traceFile + '.zip';
|
const zipFileName = state.traceFile.file + '.zip';
|
||||||
zipFile.outputStream.pipe(fs.createWriteStream(zipFileName)).on('close', () => {
|
zipFile.outputStream.pipe(fs.createWriteStream(zipFileName)).on('close', () => {
|
||||||
const artifact = new Artifact(this._context, zipFileName);
|
const artifact = new Artifact(this._context, zipFileName);
|
||||||
artifact.reportFinished();
|
artifact.reportFinished();
|
||||||
|
|
|
||||||
|
|
@ -578,7 +578,6 @@ test('should record global request trace', async ({ request, context, server },
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should store global request traces separately', async ({ request, server, playwright, browserName, mode }, testInfo) => {
|
test('should store global request traces separately', async ({ request, server, playwright, browserName, mode }, testInfo) => {
|
||||||
test.fixme(browserName === 'chromium' && mode === 'driver', 'https://github.com/microsoft/playwright/issues/23108');
|
|
||||||
const request2 = await playwright.request.newContext();
|
const request2 = await playwright.request.newContext();
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
(request as any)._tracing.start({ snapshots: true }),
|
(request as any)._tracing.start({ snapshots: true }),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue