playwright
Advanced tools
Comparing version 1.50.0-alpha-2024-11-20 to 1.50.0-alpha-2024-11-21
@@ -55,4 +55,8 @@ "use strict"; | ||
for (const suite of parentSuite.suites) { | ||
const title = suite.title || '<anonymous>'; | ||
let group = parentGroup.children.find(item => item.kind === 'group' && item.title === title); | ||
if (!suite.title) { | ||
// Flatten anonymous describes. | ||
visitSuite(project, suite, parentGroup); | ||
continue; | ||
} | ||
let group = parentGroup.children.find(item => item.kind === 'group' && item.title === suite.title); | ||
if (!group) { | ||
@@ -62,5 +66,5 @@ group = { | ||
subKind: 'describe', | ||
id: 'suite:' + parentSuite.titlePath().join('\x1e') + '\x1e' + title, | ||
id: 'suite:' + parentSuite.titlePath().join('\x1e') + '\x1e' + suite.title, | ||
// account for anonymous suites | ||
title, | ||
title: suite.title, | ||
location: suite.location, | ||
@@ -67,0 +71,0 @@ duration: 0, |
@@ -220,8 +220,5 @@ "use strict"; | ||
for (const projectSuite of projectSuites) { | ||
const testDir = projectSuite.project().testDir; | ||
for (const fileSuite of projectSuite.suites) { | ||
const fileName = this._relativeLocation(fileSuite.location).file; | ||
// Preserve file ids computed off the testDir. | ||
const relativeFile = _path.default.relative(testDir, fileSuite.location.file); | ||
const fileId = (0, _utils.calculateSha1)((0, _utils.toPosixPath)(relativeFile)).slice(0, 20); | ||
const fileId = (0, _utils.calculateSha1)((0, _utils.toPosixPath)(fileName)).slice(0, 20); | ||
let fileEntry = data.get(fileId); | ||
@@ -228,0 +225,0 @@ if (!fileEntry) { |
{ | ||
"name": "playwright", | ||
"version": "1.50.0-alpha-2024-11-20", | ||
"version": "1.50.0-alpha-2024-11-21", | ||
"description": "A high-level API to automate web browsers", | ||
@@ -59,3 +59,3 @@ "repository": { | ||
"dependencies": { | ||
"playwright-core": "1.50.0-alpha-2024-11-20" | ||
"playwright-core": "1.50.0-alpha-2024-11-21" | ||
}, | ||
@@ -62,0 +62,0 @@ "optionalDependencies": { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3150761
35680
+ Addedplaywright-core@1.50.0-alpha-2024-11-21(transitive)
- Removedplaywright-core@1.50.0-alpha-2024-11-20(transitive)