@auxcode/auxta 1.3.51-beta.1 → 1.3.51-beta.3

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.
@@ -145,7 +145,7 @@ function compareScreenshots(key, screenshot) {
145
145
  data: screenshot,
146
146
  mime_type: "image/png"
147
147
  };
148
- yield axios_1.default.post(`${config_1.config.auxtaURL}save-compared-screenshot`, {
148
+ return yield axios_1.default.post(`${config_1.config.auxtaURL}save-compared-screenshot`, {
149
149
  organization: config_1.config.organization,
150
150
  key: key,
151
151
  embedding: embedding,
@@ -38,8 +38,8 @@ class FunctionHelper extends extend_default_page_1.ExtendDefaultPage {
38
38
  const screenshotBuffer = yield (0, screenshot_helper_1.captureScreenshotPage)(page);
39
39
  if (screenshotBuffer) {
40
40
  const screenshot = screenshotBuffer.toString('base64');
41
- log_service_1.default.push('Then', `compare screenshots with key ${key}`, status_of_step_1.StatusOfStep.PASSED, undefined, key);
42
- yield (0, report_service_1.compareScreenshots)(key, screenshot);
41
+ const comparedImage = yield (0, report_service_1.compareScreenshots)(key, screenshot);
42
+ log_service_1.default.push('Then', `compare screenshots with key ${key}`, status_of_step_1.StatusOfStep.PASSED, comparedImage.data.data, key);
43
43
  }
44
44
  });
45
45
  }
@@ -133,7 +133,7 @@ export function compareScreenshots(key, screenshot) {
133
133
  data: screenshot,
134
134
  mime_type: "image/png"
135
135
  };
136
- yield axios.post(`${config.auxtaURL}save-compared-screenshot`, {
136
+ return yield axios.post(`${config.auxtaURL}save-compared-screenshot`, {
137
137
  organization: config.organization,
138
138
  key: key,
139
139
  embedding: embedding,
@@ -32,8 +32,8 @@ export class FunctionHelper extends ExtendDefaultPage {
32
32
  const screenshotBuffer = yield captureScreenshotPage(page);
33
33
  if (screenshotBuffer) {
34
34
  const screenshot = screenshotBuffer.toString('base64');
35
- log.push('Then', `compare screenshots with key ${key}`, StatusOfStep.PASSED, undefined, key);
36
- yield compareScreenshots(key, screenshot);
35
+ const comparedImage = yield compareScreenshots(key, screenshot);
36
+ log.push('Then', `compare screenshots with key ${key}`, StatusOfStep.PASSED, comparedImage.data.data, key);
37
37
  }
38
38
  });
39
39
  }