@auxcode/auxta 1.3.112 → 1.3.113
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/README.md
CHANGED
|
@@ -28,6 +28,10 @@ The main thing is a `scenario`.
|
|
|
28
28
|
|
|
29
29
|
`Scenarios` consts of `steps.
|
|
30
30
|
|
|
31
|
+
### Helpers
|
|
32
|
+
|
|
33
|
+
Change so that there is one function per helper file.
|
|
34
|
+
|
|
31
35
|
### Clicking
|
|
32
36
|
|
|
33
37
|
All clicks wait for the selector by default and timeout w/ the standard timeout unless different is specified.
|
|
@@ -137,3 +141,9 @@ control click go to source directory
|
|
|
137
141
|
Also some improvements to the platform in general:
|
|
138
142
|
|
|
139
143
|
* get the console state after a fail, this would increase the value of each failed report.
|
|
144
|
+
|
|
145
|
+
# Backlog
|
|
146
|
+
|
|
147
|
+
## 13 October 2024
|
|
148
|
+
|
|
149
|
+
Make so that there can be more than one helper file and that we have one function per helper file.
|
|
@@ -28,6 +28,7 @@ export declare class FunctionHelper extends ExtendDefaultPage {
|
|
|
28
28
|
closeLastPage(page?: import("puppeteer").Page): Promise<void>;
|
|
29
29
|
microsoftLogin(button: string, email: string, password: string, page?: import("puppeteer").Page, newPage?: boolean, staySignIn?: boolean): Promise<void>;
|
|
30
30
|
private getEscapedText;
|
|
31
|
+
callAPI(url: string, body: {}, token: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
31
32
|
}
|
|
32
33
|
declare const _default: FunctionHelper;
|
|
33
34
|
export default _default;
|
|
@@ -283,6 +283,16 @@ class FunctionHelper extends extend_default_page_1.ExtendDefaultPage {
|
|
|
283
283
|
const splitedQuotes = text.replace(/'/g, `', "'", '`);
|
|
284
284
|
return `concat('${splitedQuotes}', '')`;
|
|
285
285
|
}
|
|
286
|
+
callAPI(url, body, token) {
|
|
287
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
288
|
+
return yield axios_1.default.post(url, body, {
|
|
289
|
+
headers: {
|
|
290
|
+
'Content-Type': 'application/json',
|
|
291
|
+
'Authorization': `Bearer ${token}`
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
});
|
|
295
|
+
}
|
|
286
296
|
}
|
|
287
297
|
exports.FunctionHelper = FunctionHelper;
|
|
288
298
|
exports.default = new FunctionHelper();
|