playwright-core 1.32.1 → 1.32.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -218,8 +218,12 @@ class Tracing extends _instrumentation.SdkObject {
|
|
|
218
218
|
if (params.mode === 'discard') return {};
|
|
219
219
|
|
|
220
220
|
// Network file survives across chunks, make a snapshot before returning the resulting entries.
|
|
221
|
-
|
|
222
|
-
|
|
221
|
+
// We should pick a name starting with "traceName" and ending with .network.
|
|
222
|
+
// Something like <traceName>someSuffixHere.network.
|
|
223
|
+
// However, this name must not clash with any other "traceName".network in the same tracesDir.
|
|
224
|
+
// We can use <traceName>-<guid>.network, but "-pwnetcopy-0" suffix is more readable
|
|
225
|
+
// and makes it easier to debug future issues.
|
|
226
|
+
const networkFile = _path.default.join(state.tracesDir, state.traceName + `-pwnetcopy-${state.chunkOrdinal}.network`);
|
|
223
227
|
await _fs.default.promises.copyFile(state.networkFile, networkFile);
|
|
224
228
|
const entries = [];
|
|
225
229
|
entries.push({
|