@empiricalrun/playwright-utils 0.27.4 → 0.27.5

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @empiricalrun/playwright-utils
2
2
 
3
+ ## 0.27.5
4
+
5
+ ### Patch Changes
6
+
7
+ - b533712: chore: remove verbose logs, hide pw glass pane
8
+ - Updated dependencies [a2cb0ab]
9
+ - Updated dependencies [64fa486]
10
+ - Updated dependencies [b533712]
11
+ - Updated dependencies [b9571e9]
12
+ - @empiricalrun/test-gen@0.69.0
13
+ - @empiricalrun/llm@0.19.0
14
+
3
15
  ## 0.27.4
4
16
 
5
17
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"empirical-reporter.d.ts","sourceRoot":"","sources":["../../src/reporter/empirical-reporter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,UAAU,EACX,MAAM,2BAA2B,CAAC;AAgBnC,cAAM,iBAAkB,YAAW,QAAQ;IACzC,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,aAAa,CAAyB;IAC9C,OAAO,CAAC,kBAAkB,CAAyB;;IAcnD,OAAO,CAAC,qBAAqB,CA0B3B;IAEF,SAAS,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU;IAyEtC,KAAK,CAAC,MAAM,EAAE,UAAU;CA4F/B;AAED,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"empirical-reporter.d.ts","sourceRoot":"","sources":["../../src/reporter/empirical-reporter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,UAAU,EACX,MAAM,2BAA2B,CAAC;AAgBnC,cAAM,iBAAkB,YAAW,QAAQ;IACzC,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,aAAa,CAAyB;IAC9C,OAAO,CAAC,kBAAkB,CAAyB;;IAcnD,OAAO,CAAC,qBAAqB,CA0B3B;IAEF,SAAS,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU;IAsEtC,KAAK,CAAC,MAAM,EAAE,UAAU;CA4F/B;AAED,eAAe,iBAAiB,CAAC"}
@@ -16,7 +16,7 @@ class EmpiricalReporter {
16
16
  _currentWorkingDir = process.cwd();
17
17
  constructor() {
18
18
  if (!process.env.PROJECT_NAME || !process.env.TEST_RUN_GITHUB_ACTION_ID) {
19
- logger_1.logger.error("PROJECT_NAME and TEST_RUN_GITHUB_ACTION_ID must be set");
19
+ logger_1.logger.debug("PROJECT_NAME and TEST_RUN_GITHUB_ACTION_ID must be set");
20
20
  this._destinationDir = "";
21
21
  return;
22
22
  }
@@ -28,7 +28,7 @@ class EmpiricalReporter {
28
28
  const testResultSourceDir = path_1.default.join(this._currentWorkingDir, "test-results");
29
29
  const exists = await (0, util_1.checkFileExistsAsync)(attachment.path);
30
30
  if (exists) {
31
- logger_1.logger.info(`[Empirical Reporter] Processing attachment: File exists`);
31
+ logger_1.logger.debug(`[Empirical Reporter] Processing attachment: File exists`);
32
32
  }
33
33
  else {
34
34
  logger_1.logger.error(`[Empirical Reporter] Attachment does not exist: ${attachment.path}`);
@@ -43,9 +43,8 @@ class EmpiricalReporter {
43
43
  return (0, queue_1.sendTaskToQueue)(uploadTask);
44
44
  };
45
45
  onTestEnd(test, result) {
46
- console.log(`[Empirical Reporter] Finished test ${test.title}: ${result.status}`);
47
46
  if (!process.env.TEST_RUN_GITHUB_ACTION_ID) {
48
- logger_1.logger.error("[Empirical Reporter] TEST_RUN_GITHUB_ACTION_ID is not set");
47
+ logger_1.logger.debug("[Empirical Reporter] TEST_RUN_GITHUB_ACTION_ID is not set");
49
48
  return;
50
49
  }
51
50
  try {
@@ -101,9 +100,9 @@ class EmpiricalReporter {
101
100
  }
102
101
  }
103
102
  async onEnd(result) {
104
- logger_1.logger.info(`[Empirical Reporter] Test run completed with status: ${result.status}`);
103
+ logger_1.logger.debug(`[Empirical Reporter] Test run completed with status: ${result.status}`);
105
104
  const startTime = new Date().getTime();
106
- logger_1.logger.info("[Empirical Reporter] Starting final report upload at: ", new Intl.DateTimeFormat("en-US", {
105
+ logger_1.logger.debug("[Empirical Reporter] Starting final report upload at: ", new Intl.DateTimeFormat("en-US", {
107
106
  hour: "2-digit",
108
107
  minute: "2-digit",
109
108
  second: "2-digit",
@@ -111,7 +110,7 @@ class EmpiricalReporter {
111
110
  const jsonFilePath = path_1.default.join(this._currentWorkingDir, "summary.json");
112
111
  const jsonExists = fs_1.default.existsSync(jsonFilePath);
113
112
  if (jsonExists) {
114
- logger_1.logger.info("[Empirical Reporter] Uploading JSON file");
113
+ logger_1.logger.debug("[Empirical Reporter] Uploading JSON file");
115
114
  const uploadJsonTask = (0, uploader_1.createUploadTaskV2)({
116
115
  sourceDir: this._currentWorkingDir,
117
116
  fileList: [jsonFilePath],
@@ -126,9 +125,9 @@ class EmpiricalReporter {
126
125
  const htmlFilePath = path_1.default.join(this._currentWorkingDir, "playwright-report/index.html");
127
126
  const htmlExists = await (0, util_1.checkFileExistsAsync)(htmlFilePath);
128
127
  if (htmlExists) {
129
- logger_1.logger.info("[Empirical Reporter] Updating the HTML Zip");
128
+ logger_1.logger.debug("[Empirical Reporter] Updating the HTML Zip");
130
129
  await (0, util_1.updateHtmlZipFileAttachmentPaths)(jsonFilePath, htmlFilePath);
131
- logger_1.logger.info("[Empirical Reporter] Uploading HTML file");
130
+ logger_1.logger.debug("[Empirical Reporter] Uploading HTML file");
132
131
  const uploadHtmlTask = (0, uploader_1.createUploadTaskV2)({
133
132
  sourceDir: path_1.default.join(this._currentWorkingDir, "playwright-report"),
134
133
  fileList: [htmlFilePath],
@@ -143,7 +142,7 @@ class EmpiricalReporter {
143
142
  const traceFilePath = path_1.default.join(this._currentWorkingDir, "playwright-report/trace");
144
143
  const traceExists = await (0, util_1.checkFileExistsAsync)(traceFilePath);
145
144
  if (traceExists) {
146
- logger_1.logger.info("[Empirical Reporter] Uploading Trace folder");
145
+ logger_1.logger.debug("[Empirical Reporter] Uploading Trace folder");
147
146
  const uploadTraceTask = (0, uploader_1.createUploadTaskV2)({
148
147
  sourceDir: traceFilePath,
149
148
  destinationDir: path_1.default.join(this._destinationDir, "trace"),
@@ -156,15 +155,15 @@ class EmpiricalReporter {
156
155
  return;
157
156
  }
158
157
  await (0, queue_1.waitForTaskQueueToFinish)();
159
- logger_1.logger.info("[Empirical Reporter] All uploads finished");
158
+ logger_1.logger.debug("[Empirical Reporter] All uploads finished");
160
159
  const endTime = new Date().getTime();
161
- logger_1.logger.info("[Empirical Reporter] Finished final report upload at: ", new Intl.DateTimeFormat("en-US", {
160
+ logger_1.logger.debug("[Empirical Reporter] Finished final report upload at: ", new Intl.DateTimeFormat("en-US", {
162
161
  hour: "2-digit",
163
162
  minute: "2-digit",
164
163
  second: "2-digit",
165
164
  }).format(endTime));
166
165
  const timeDiff = endTime - startTime;
167
- logger_1.logger.info("[Empirical Reporter] Time taken to upload after tests ended: ", timeDiff, "ms");
166
+ logger_1.logger.debug("[Empirical Reporter] Time taken to upload after tests ended: ", timeDiff, "ms");
168
167
  }
169
168
  }
170
169
  exports.default = EmpiricalReporter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empiricalrun/playwright-utils",
3
- "version": "0.27.4",
3
+ "version": "0.27.5",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -32,7 +32,7 @@
32
32
  "@types/adm-zip": "^0.5.7",
33
33
  "playwright-core": "1.53.0",
34
34
  "serve-handler": "^6.1.6",
35
- "@empiricalrun/shared-types": "0.5.2"
35
+ "@empiricalrun/shared-types": "0.6.0"
36
36
  },
37
37
  "dependencies": {
38
38
  "@babel/code-frame": "^7.24.7",
@@ -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.18.2",
46
+ "@empiricalrun/llm": "^0.19.0",
47
47
  "@empiricalrun/r2-uploader": "^0.3.9",
48
- "@empiricalrun/test-gen": "^0.68.0"
48
+ "@empiricalrun/test-gen": "^0.69.0"
49
49
  },
50
50
  "scripts": {
51
51
  "dev": "tsc --build --watch",