@empiricalrun/playwright-utils 0.27.5 → 0.27.7
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/CHANGELOG.md +17 -0
- package/dist/reporter/uploader.js +1 -1
- package/dist/reporter/util.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @empiricalrun/playwright-utils
|
|
2
2
|
|
|
3
|
+
## 0.27.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 17e24f7: chore: cancel run error message, log cleanup
|
|
8
|
+
- Updated dependencies [e2f72b5]
|
|
9
|
+
- @empiricalrun/test-gen@0.69.2
|
|
10
|
+
- @empiricalrun/llm@0.19.1
|
|
11
|
+
|
|
12
|
+
## 0.27.6
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- ff84083: feat: request verification for recording, more logs clean up
|
|
17
|
+
- Updated dependencies [ff84083]
|
|
18
|
+
- @empiricalrun/test-gen@0.69.1
|
|
19
|
+
|
|
3
20
|
## 0.27.5
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -81,7 +81,7 @@ function createUploadTaskV2({ sourceDir, fileList, destinationDir, uploadBucket,
|
|
|
81
81
|
const fileUrl = new URL(path_1.default.join(destinationDir, filePath), R2_BASE_URL);
|
|
82
82
|
urls[filePath] = fileUrl.toString();
|
|
83
83
|
});
|
|
84
|
-
logger_1.logger.
|
|
84
|
+
logger_1.logger.debug("Finished Upload Files");
|
|
85
85
|
return urls;
|
|
86
86
|
}
|
|
87
87
|
catch (error) {
|
package/dist/reporter/util.js
CHANGED
|
@@ -220,10 +220,10 @@ async function updateHtmlZipFileAttachmentPaths(jsonFilePath, htmlFilePath) {
|
|
|
220
220
|
const newBase64 = newZip.toBuffer().toString("base64");
|
|
221
221
|
const updatedHtml = htmlFile.replace(/(window\.playwrightReportBase64\s*=\s*")(?:data:application\/zip;base64,)?[^"]*(")/, `$1data:application/zip;base64,${newBase64}$2`);
|
|
222
222
|
await fs_1.default.promises.writeFile(htmlFilePath, updatedHtml, "utf8");
|
|
223
|
-
|
|
223
|
+
logger_1.logger.debug("✅ HTML file updated with new base64 zip attachment.");
|
|
224
224
|
}
|
|
225
225
|
catch (err) {
|
|
226
|
-
|
|
226
|
+
logger_1.logger.error("❌ Error processing report.json or updating files:", err);
|
|
227
227
|
}
|
|
228
228
|
finally {
|
|
229
229
|
// Optional cleanup:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empiricalrun/playwright-utils",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.7",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"mailosaur": "^8.6.1",
|
|
44
44
|
"puppeteer-extra-plugin-recaptcha": "^3.6.8",
|
|
45
45
|
"rimraf": "^6.0.1",
|
|
46
|
-
"@empiricalrun/llm": "^0.19.
|
|
46
|
+
"@empiricalrun/llm": "^0.19.1",
|
|
47
47
|
"@empiricalrun/r2-uploader": "^0.3.9",
|
|
48
|
-
"@empiricalrun/test-gen": "^0.69.
|
|
48
|
+
"@empiricalrun/test-gen": "^0.69.2"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"dev": "tsc --build --watch",
|