playwright
Advanced tools
Comparing version 1.43.0 to 1.43.1-beta-1712942342000
@@ -27,2 +27,3 @@ "use strict"; | ||
constructor(reporter, options) { | ||
this.isListing = false; | ||
this._rootSuite = void 0; | ||
@@ -38,7 +39,2 @@ this._options = void 0; | ||
} | ||
reset() { | ||
this._rootSuite.suites = []; | ||
this._rootSuite.tests = []; | ||
this._tests.clear(); | ||
} | ||
dispatch(message) { | ||
@@ -104,2 +100,22 @@ const { | ||
this._mergeSuitesInto(project.suites, projectSuite); | ||
// Remove deleted tests when listing. Empty suites will be auto-filtered | ||
// in the UI layer. | ||
if (this.isListing) { | ||
const testIds = new Set(); | ||
const collectIds = suite => { | ||
suite.tests.map(t => t.testId).forEach(testId => testIds.add(testId)); | ||
suite.suites.forEach(collectIds); | ||
}; | ||
project.suites.forEach(collectIds); | ||
const filterTests = suite => { | ||
suite.tests = suite.tests.filter(t => { | ||
if (testIds.has(t.id)) return true; | ||
this._tests.delete(t.id); | ||
return false; | ||
}); | ||
suite.suites.forEach(filterTests); | ||
}; | ||
filterTests(projectSuite); | ||
} | ||
} | ||
@@ -106,0 +122,0 @@ _onBegin() { |
{ | ||
"name": "playwright", | ||
"version": "1.43.0", | ||
"version": "1.43.1-beta-1712942342000", | ||
"description": "A high-level API to automate web browsers", | ||
@@ -61,3 +61,3 @@ "repository": { | ||
"dependencies": { | ||
"playwright-core": "1.43.0" | ||
"playwright-core": "1.43.1-beta-1712942342000" | ||
}, | ||
@@ -64,0 +64,0 @@ "optionalDependencies": { |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3037719
33870
3
36
72
3
+ Addedplaywright-core@1.43.1-beta-1712942342000(transitive)
- Removedplaywright-core@1.43.0(transitive)