playwright 1.54.0-alpha-2025-06-25 → 1.54.0-alpha-2025-06-26
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.
Potentially problematic release.
This version of playwright might be problematic. Click here for more details.
- package/lib/reporters/html.js +3 -5
- package/package.json +2 -2
package/lib/reporters/html.js
CHANGED
|
@@ -63,13 +63,12 @@ class HtmlReporter {
|
|
|
63
63
|
this.config = config;
|
|
64
64
|
}
|
|
65
65
|
onBegin(suite) {
|
|
66
|
-
const { outputFolder, open: open2, attachmentsBaseURL, host, port
|
|
66
|
+
const { outputFolder, open: open2, attachmentsBaseURL, host, port } = this._resolveOptions();
|
|
67
67
|
this._outputFolder = outputFolder;
|
|
68
68
|
this._open = open2;
|
|
69
69
|
this._host = host;
|
|
70
70
|
this._port = port;
|
|
71
71
|
this._attachmentsBaseURL = attachmentsBaseURL;
|
|
72
|
-
this._title = title;
|
|
73
72
|
const reportedWarnings = /* @__PURE__ */ new Set();
|
|
74
73
|
for (const project of this.config.projects) {
|
|
75
74
|
if (this._isSubdirectory(outputFolder, project.outputDir) || this._isSubdirectory(project.outputDir, outputFolder)) {
|
|
@@ -95,8 +94,7 @@ class HtmlReporter {
|
|
|
95
94
|
open: getHtmlReportOptionProcessEnv() || this._options.open || "on-failure",
|
|
96
95
|
attachmentsBaseURL: process.env.PLAYWRIGHT_HTML_ATTACHMENTS_BASE_URL || this._options.attachmentsBaseURL || "data/",
|
|
97
96
|
host: process.env.PLAYWRIGHT_HTML_HOST || this._options.host,
|
|
98
|
-
port: process.env.PLAYWRIGHT_HTML_PORT ? +process.env.PLAYWRIGHT_HTML_PORT : this._options.port
|
|
99
|
-
title: process.env.PLAYWRIGHT_HTML_TITLE || this._options.title
|
|
97
|
+
port: process.env.PLAYWRIGHT_HTML_PORT ? +process.env.PLAYWRIGHT_HTML_PORT : this._options.port
|
|
100
98
|
};
|
|
101
99
|
}
|
|
102
100
|
_isSubdirectory(parentDir, dir) {
|
|
@@ -109,7 +107,7 @@ class HtmlReporter {
|
|
|
109
107
|
async onEnd(result) {
|
|
110
108
|
const projectSuites = this.suite.suites;
|
|
111
109
|
await (0, import_utils.removeFolders)([this._outputFolder]);
|
|
112
|
-
const builder = new HtmlBuilder(this.config, this._outputFolder, this._attachmentsBaseURL, this.
|
|
110
|
+
const builder = new HtmlBuilder(this.config, this._outputFolder, this._attachmentsBaseURL, process.env.PLAYWRIGHT_HTML_TITLE || this._options.title);
|
|
113
111
|
this._buildResult = await builder.build(this.config.metadata, projectSuites, result, this._topLevelErrors);
|
|
114
112
|
}
|
|
115
113
|
async onExit() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "playwright",
|
|
3
|
-
"version": "1.54.0-alpha-2025-06-
|
|
3
|
+
"version": "1.54.0-alpha-2025-06-26",
|
|
4
4
|
"description": "A high-level API to automate web browsers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"license": "Apache-2.0",
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"playwright-core": "1.54.0-alpha-2025-06-
|
|
59
|
+
"playwright-core": "1.54.0-alpha-2025-06-26"
|
|
60
60
|
},
|
|
61
61
|
"optionalDependencies": {
|
|
62
62
|
"fsevents": "2.3.2"
|