@auxcode/auxta 1.3.51-beta.3 → 1.3.51-beta.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.
@@ -43,6 +43,7 @@ function captureScreenshotPage(page) {
43
43
  try {
44
44
  const screenshotBuffer = yield page.screenshot({
45
45
  fullPage: true,
46
+ captureBeyondViewport: false,
46
47
  encoding: 'binary'
47
48
  });
48
49
  if (Buffer.isBuffer(screenshotBuffer))
@@ -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
- 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);
41
+ 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, screenshot, key);
43
43
  }
44
44
  });
45
45
  }
@@ -36,6 +36,7 @@ export function captureScreenshotPage(page) {
36
36
  try {
37
37
  const screenshotBuffer = yield page.screenshot({
38
38
  fullPage: true,
39
+ captureBeyondViewport: false,
39
40
  encoding: 'binary'
40
41
  });
41
42
  if (Buffer.isBuffer(screenshotBuffer))
@@ -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
- const comparedImage = yield compareScreenshots(key, screenshot);
36
- log.push('Then', `compare screenshots with key ${key}`, StatusOfStep.PASSED, comparedImage.data.data, key);
35
+ yield compareScreenshots(key, screenshot);
36
+ log.push('Then', `compare screenshots with key ${key}`, StatusOfStep.PASSED, screenshot, key);
37
37
  }
38
38
  });
39
39
  }