playwright 1.44.0 → 1.45.0-alpha-1714760563000
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.
- package/lib/reporters/html.js +6 -2
- package/package.json +2 -2
package/lib/reporters/html.js
CHANGED
|
@@ -68,7 +68,7 @@ class HtmlReporter extends _empty.default {
|
|
|
68
68
|
this._attachmentsBaseURL = attachmentsBaseURL;
|
|
69
69
|
const reportedWarnings = new Set();
|
|
70
70
|
for (const project of this.config.projects) {
|
|
71
|
-
if (
|
|
71
|
+
if (this._isSubdirectory(outputFolder, project.outputDir) || this._isSubdirectory(project.outputDir, outputFolder)) {
|
|
72
72
|
const key = outputFolder + '|' + project.outputDir;
|
|
73
73
|
if (reportedWarnings.has(key)) continue;
|
|
74
74
|
reportedWarnings.add(key);
|
|
@@ -92,6 +92,10 @@ class HtmlReporter extends _empty.default {
|
|
|
92
92
|
attachmentsBaseURL: this._options.attachmentsBaseURL || 'data/'
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
+
_isSubdirectory(parentDir, dir) {
|
|
96
|
+
const relativePath = _path.default.relative(parentDir, dir);
|
|
97
|
+
return !!relativePath && !relativePath.startsWith('..') && !_path.default.isAbsolute(relativePath);
|
|
98
|
+
}
|
|
95
99
|
onError(error) {
|
|
96
100
|
this._topLevelErrors.push(error);
|
|
97
101
|
}
|
|
@@ -337,7 +341,7 @@ class HtmlBuilder {
|
|
|
337
341
|
_createTestEntry(test, projectName, path) {
|
|
338
342
|
const duration = test.results.reduce((a, r) => a + r.duration, 0);
|
|
339
343
|
const location = this._relativeLocation(test.location);
|
|
340
|
-
path = path.slice(1);
|
|
344
|
+
path = path.slice(1).filter(path => path.length > 0);
|
|
341
345
|
const results = test.results.map(r => this._createTestResult(test, r));
|
|
342
346
|
return {
|
|
343
347
|
testCase: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "playwright",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.45.0-alpha-1714760563000",
|
|
4
4
|
"description": "A high-level API to automate web browsers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"license": "Apache-2.0",
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"playwright-core": "1.
|
|
61
|
+
"playwright-core": "1.45.0-alpha-1714760563000"
|
|
62
62
|
},
|
|
63
63
|
"optionalDependencies": {
|
|
64
64
|
"fsevents": "2.3.2"
|