@auxcode/auxta 1.3.51-beta.1 → 1.3.51-beta.2
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/build/cjs/auxta/services/report.service.js +1 -1
- package/build/cjs/macros/helpers/code.helper.d.ts +1 -1
- package/build/cjs/macros/helpers/code.helper.js +2 -1
- package/build/esm/auxta/services/report.service.js +1 -1
- package/build/esm/macros/helpers/code.helper.d.ts +1 -1
- package/build/esm/macros/helpers/code.helper.js +2 -1
- package/build/tsconfig-cjs.tsbuildinfo +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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,
|
|
@@ -3,7 +3,7 @@ import { ExtendDefaultPage } from "./extend-default-page";
|
|
|
3
3
|
export declare class FunctionHelper extends ExtendDefaultPage {
|
|
4
4
|
log(keyword: string, name: string, status: StatusOfStep, screenshot?: string): void;
|
|
5
5
|
screenshot(page?: import("puppeteer").Page): Promise<string | undefined>;
|
|
6
|
-
screenshotCompare(key: string, page?: import("puppeteer").Page): Promise<
|
|
6
|
+
screenshotCompare(key: string, page?: import("puppeteer").Page): Promise<any>;
|
|
7
7
|
suggest(name: string): void;
|
|
8
8
|
private getEscapedText;
|
|
9
9
|
clickByText(selector: string, text: string, dotOrText?: string, options?: {}, page?: import("puppeteer").Page, time?: number, log_message?: boolean): Promise<void>;
|
|
@@ -39,7 +39,8 @@ class FunctionHelper extends extend_default_page_1.ExtendDefaultPage {
|
|
|
39
39
|
if (screenshotBuffer) {
|
|
40
40
|
const screenshot = screenshotBuffer.toString('base64');
|
|
41
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);
|
|
42
|
+
const comparedImage = yield (0, report_service_1.compareScreenshots)(key, screenshot);
|
|
43
|
+
return comparedImage;
|
|
43
44
|
}
|
|
44
45
|
});
|
|
45
46
|
}
|
|
@@ -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,
|
|
@@ -3,7 +3,7 @@ import { ExtendDefaultPage } from "./extend-default-page";
|
|
|
3
3
|
export declare class FunctionHelper extends ExtendDefaultPage {
|
|
4
4
|
log(keyword: string, name: string, status: StatusOfStep, screenshot?: string): void;
|
|
5
5
|
screenshot(page?: import("puppeteer").Page): Promise<string | undefined>;
|
|
6
|
-
screenshotCompare(key: string, page?: import("puppeteer").Page): Promise<
|
|
6
|
+
screenshotCompare(key: string, page?: import("puppeteer").Page): Promise<any>;
|
|
7
7
|
suggest(name: string): void;
|
|
8
8
|
private getEscapedText;
|
|
9
9
|
clickByText(selector: string, text: string, dotOrText?: string, options?: {}, page?: import("puppeteer").Page, time?: number, log_message?: boolean): Promise<void>;
|
|
@@ -33,7 +33,8 @@ export class FunctionHelper extends ExtendDefaultPage {
|
|
|
33
33
|
if (screenshotBuffer) {
|
|
34
34
|
const screenshot = screenshotBuffer.toString('base64');
|
|
35
35
|
log.push('Then', `compare screenshots with key ${key}`, StatusOfStep.PASSED, undefined, key);
|
|
36
|
-
yield compareScreenshots(key, screenshot);
|
|
36
|
+
const comparedImage = yield compareScreenshots(key, screenshot);
|
|
37
|
+
return comparedImage;
|
|
37
38
|
}
|
|
38
39
|
});
|
|
39
40
|
}
|