@auxcode/auxta 1.3.53-beta.0 → 1.3.53-beta.1
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.
|
@@ -40,8 +40,8 @@ class FunctionHelper extends extend_default_page_1.ExtendDefaultPage {
|
|
|
40
40
|
if (screenshotBuffer) {
|
|
41
41
|
const screenshot = screenshotBuffer.toString('base64');
|
|
42
42
|
const result = yield (0, report_service_1.compareScreenshots)(key, screenshot);
|
|
43
|
-
if (result.presentDifference && Number(result.presentDifference) >
|
|
44
|
-
log_service_1.default.push('Then', `I compare screenshots with key ${key}
|
|
43
|
+
if (result.presentDifference && Number(result.presentDifference) > 0) {
|
|
44
|
+
log_service_1.default.push('Then', `I compare screenshots with key ${key}, and difference is: ${result.presentDifference}%`, status_of_step_1.StatusOfStep.FAILED, screenshot, key);
|
|
45
45
|
}
|
|
46
46
|
else {
|
|
47
47
|
log_service_1.default.push('Then', `I compare screenshots with key ${key}`, status_of_step_1.StatusOfStep.PASSED, screenshot, key);
|
|
@@ -57,6 +57,10 @@ class EmailHelper {
|
|
|
57
57
|
});
|
|
58
58
|
if (link) {
|
|
59
59
|
const html_link = yield this.getUrl(message_body);
|
|
60
|
+
yield AuxGoogleAuth_1.AuxGoogleAuth.gmailClient.users.messages.delete({
|
|
61
|
+
userId: "me",
|
|
62
|
+
id: gmailResponse.data.id,
|
|
63
|
+
});
|
|
60
64
|
return {
|
|
61
65
|
id: gmailResponse.data.id,
|
|
62
66
|
threadId: gmailResponse.data.threadId,
|