playwright 1.58.0-alpha-1764682370000 → 1.58.0-alpha-2025-12-03

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.
@@ -55,10 +55,15 @@ async function createMergedReport(config, dir, reporterDescriptions, rootDirOver
55
55
  throw new Error(`No report files found in ${dir}`);
56
56
  const eventData = await mergeEvents(dir, shardFiles, stringPool, printStatus, rootDirOverride);
57
57
  const pathSeparator = rootDirOverride ? import_path.default.sep : eventData.pathSeparatorFromMetadata ?? import_path.default.sep;
58
+ const pathPackage = pathSeparator === "/" ? import_path.default.posix : import_path.default.win32;
58
59
  const receiver = new import_teleReceiver.TeleReporterReceiver(multiplexer, {
59
60
  mergeProjects: false,
60
61
  mergeTestCases: false,
61
- resolvePath: (rootDir, relativePath) => stringPool.internString(rootDir + pathSeparator + relativePath),
62
+ // When merging on a different OS, an absolute path like `C:\foo\bar` from win may look like
63
+ // a relative path on posix, and vice versa.
64
+ // Therefore, we cannot use `path.resolve()` here - it will resolve relative-looking paths
65
+ // against `process.cwd()`, while we just want to normalize ".." and "." segments.
66
+ resolvePath: (rootDir, relativePath) => stringPool.internString(pathPackage.normalize(pathPackage.join(rootDir, relativePath))),
62
67
  configOverrides: config.config
63
68
  });
64
69
  printStatus(`processing test events`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright",
3
- "version": "1.58.0-alpha-1764682370000",
3
+ "version": "1.58.0-alpha-2025-12-03",
4
4
  "description": "A high-level API to automate web browsers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -64,7 +64,7 @@
64
64
  },
65
65
  "license": "Apache-2.0",
66
66
  "dependencies": {
67
- "playwright-core": "1.58.0-alpha-1764682370000"
67
+ "playwright-core": "1.58.0-alpha-2025-12-03"
68
68
  },
69
69
  "optionalDependencies": {
70
70
  "fsevents": "2.3.2"