@empiricalrun/playwright-utils 0.18.20 → 0.18.23

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,26 @@
1
1
  # @empiricalrun/playwright-utils
2
2
 
3
+ ## 0.18.23
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [4ca5faa]
8
+ - @empiricalrun/test-gen@0.38.46
9
+
10
+ ## 0.18.22
11
+
12
+ ### Patch Changes
13
+
14
+ - 44a3270: fix: removed logs
15
+ - Updated dependencies [efb88aa]
16
+ - @empiricalrun/test-gen@0.38.45
17
+
18
+ ## 0.18.21
19
+
20
+ ### Patch Changes
21
+
22
+ - 769e5f9: fix: imports within playwright utils
23
+
3
24
  ## 0.18.20
4
25
 
5
26
  ### Patch Changes
@@ -105,7 +105,7 @@ class HtmlReporter {
105
105
  const testCaseRunEventTask = async () => {
106
106
  return Promise.all(attachmentPromises)
107
107
  .then((uploadedAttachments) => {
108
- logger_1.logger.info(`Attachments for test ${test.title} are uploaded:`, uploadedAttachments);
108
+ logger_1.logger.debug(`Attachments for test ${test.title} are uploaded:`, uploadedAttachments);
109
109
  const { suites, projectName } = (0, util_1.suitesAndProjectForTest)(test);
110
110
  let params = {
111
111
  test,
@@ -1,4 +1,4 @@
1
- import { FileMap } from "@empiricalrun/r2-uploader/src/types";
1
+ import { FileMap } from "@empiricalrun/r2-uploader";
2
2
  import { AsyncTask } from "./queue";
3
3
  export declare function uploadFiles({ fileList, outputFolder, relativePath, }: {
4
4
  outputFolder: string;
@@ -1 +1 @@
1
- {"version":3,"file":"uploader.d.ts","sourceRoot":"","sources":["../../src/reporter/uploader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAK9D,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAKpC,wBAAsB,WAAW,CAAC,EAChC,QAAQ,EACR,YAAY,EACZ,YAAY,GACb,EAAE;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAwB1B;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,YAAY,EACZ,YAAiB,GAClB,EAAE;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,SAAS,CAaZ"}
1
+ {"version":3,"file":"uploader.d.ts","sourceRoot":"","sources":["../../src/reporter/uploader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAmB,MAAM,2BAA2B,CAAC;AAIrE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAKpC,wBAAsB,WAAW,CAAC,EAChC,QAAQ,EACR,YAAY,EACZ,YAAY,GACb,EAAE;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAwB1B;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,YAAY,EACZ,YAAiB,GAClB,EAAE;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,SAAS,CAaZ"}
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.createUploadTask = exports.uploadFiles = void 0;
7
- const upload_1 = require("@empiricalrun/r2-uploader/src/upload");
7
+ const r2_uploader_1 = require("@empiricalrun/r2-uploader");
8
8
  const path_1 = __importDefault(require("path"));
9
9
  const logger_1 = require("../logger");
10
10
  const R2_BUCKET_NAME = "test-report";
@@ -16,7 +16,7 @@ async function uploadFiles({ fileList, outputFolder, relativePath, }) {
16
16
  const urls = {};
17
17
  const sourceDir = path_1.default.join(outputFolder, relativePath);
18
18
  const destinationDir = path_1.default.join(process.env.PROJECT_NAME, process.env.TEST_RUN_GITHUB_ACTION_ID, relativePath);
19
- const uploadedfiles = await (0, upload_1.uploadDirectory)({
19
+ const uploadedfiles = await (0, r2_uploader_1.uploadDirectory)({
20
20
  sourceDir,
21
21
  fileList,
22
22
  destinationDir,
@@ -153,7 +153,7 @@ async function sendTestCaseUpdateToDashboard(params) {
153
153
  maxTimeout: 60000,
154
154
  factor: 3,
155
155
  });
156
- logger_1.logger.info("Successfully sent test case update to dashboard");
156
+ logger_1.logger.debug("Successfully sent test case update to dashboard");
157
157
  }
158
158
  catch (e) {
159
159
  console.error(e.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empiricalrun/playwright-utils",
3
- "version": "0.18.20",
3
+ "version": "0.18.23",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -43,7 +43,7 @@
43
43
  "playwright-extra": "^4.3.6",
44
44
  "puppeteer-extra-plugin-recaptcha": "^3.6.8",
45
45
  "rimraf": "^6.0.1",
46
- "@empiricalrun/test-gen": "^0.38.44",
46
+ "@empiricalrun/test-gen": "^0.38.46",
47
47
  "@empiricalrun/r2-uploader": "^0.3.7",
48
48
  "@empiricalrun/llm": "^0.9.28"
49
49
  },