@auxcode/auxta 1.3.24-beta.4 → 1.3.24-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.
- package/build/cjs/macros/helpers/code.helper.js +1 -1
- package/build/cjs/macros/helpers/extend-default-page.d.ts +1 -1
- package/build/cjs/macros/helpers/extend-default-page.js +1 -0
- package/build/cjs/puppeteer/puppeteer.js +1 -13
- package/build/esm/macros/helpers/code.helper.js +1 -1
- package/build/esm/macros/helpers/extend-default-page.d.ts +1 -1
- package/build/esm/macros/helpers/extend-default-page.js +1 -0
- package/build/esm/puppeteer/puppeteer.js +1 -13
- package/build/tsconfig-cjs.tsbuildinfo +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -169,7 +169,7 @@ class FunctionHelper extends extend_default_page_1.ExtendDefaultPage {
|
|
|
169
169
|
yield this.extend_page_functions(loginPage);
|
|
170
170
|
yield loginPage.waitForNetworkIdle();
|
|
171
171
|
yield this.waitForSelector('visible', next_button, 60000, loginPage);
|
|
172
|
-
yield loginPage.type(email_input, email);
|
|
172
|
+
yield loginPage.type(email_input, email, { delay: 0 });
|
|
173
173
|
yield loginPage.keyboard.press('Enter');
|
|
174
174
|
yield loginPage.waitForNetworkIdle();
|
|
175
175
|
let isWorkOrPersonalVisible = yield puppeteer_1.default.defaultPage.$('div.table');
|
|
@@ -22,6 +22,7 @@ class ExtendDefaultPage {
|
|
|
22
22
|
}
|
|
23
23
|
extend_page_functions(page, time = this.defaultTimeout) {
|
|
24
24
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
this.defaultTimeout = config_1.config.timeout;
|
|
25
26
|
const { goto: original_goto, click: original_click, type: original_type, waitForNetworkIdle: original_waitForNetworkIdle } = page;
|
|
26
27
|
page.goto = function goto(url, options) {
|
|
27
28
|
log_service_1.default.push('Then', `I go to the '${url}' page`, status_of_step_1.StatusOfStep.PASSED);
|
|
@@ -25,19 +25,7 @@ const puppeteer = require("puppeteer");
|
|
|
25
25
|
class Puppeteer {
|
|
26
26
|
startBrowser() {
|
|
27
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
let args = [
|
|
29
|
-
'--start-maximized',
|
|
30
|
-
'--single-process',
|
|
31
|
-
'--disable-gpu',
|
|
32
|
-
'--disable-dev-shm-usage',
|
|
33
|
-
'--disable-setuid-sandbox',
|
|
34
|
-
'--no-first-run',
|
|
35
|
-
'--no-sandbox',
|
|
36
|
-
'--no-zygote',
|
|
37
|
-
'--deterministic-fetch',
|
|
38
|
-
'--disable-features=IsolateOrigins',
|
|
39
|
-
'--disable-site-isolation-trials',
|
|
40
|
-
];
|
|
28
|
+
let args = [];
|
|
41
29
|
if (process.env.ENVIRONMENT != 'LOCAL')
|
|
42
30
|
args.push(`--window-size=${config_1.config.screenWidth},${config_1.config.screenHeight}`);
|
|
43
31
|
this.browser = yield puppeteer.launch({
|
|
@@ -163,7 +163,7 @@ export class FunctionHelper extends ExtendDefaultPage {
|
|
|
163
163
|
yield this.extend_page_functions(loginPage);
|
|
164
164
|
yield loginPage.waitForNetworkIdle();
|
|
165
165
|
yield this.waitForSelector('visible', next_button, 60000, loginPage);
|
|
166
|
-
yield loginPage.type(email_input, email);
|
|
166
|
+
yield loginPage.type(email_input, email, { delay: 0 });
|
|
167
167
|
yield loginPage.keyboard.press('Enter');
|
|
168
168
|
yield loginPage.waitForNetworkIdle();
|
|
169
169
|
let isWorkOrPersonalVisible = yield puppeteer.defaultPage.$('div.table');
|
|
@@ -16,6 +16,7 @@ export class ExtendDefaultPage {
|
|
|
16
16
|
}
|
|
17
17
|
extend_page_functions(page, time = this.defaultTimeout) {
|
|
18
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
this.defaultTimeout = config.timeout;
|
|
19
20
|
const { goto: original_goto, click: original_click, type: original_type, waitForNetworkIdle: original_waitForNetworkIdle } = page;
|
|
20
21
|
page.goto = function goto(url, options) {
|
|
21
22
|
log.push('Then', `I go to the '${url}' page`, StatusOfStep.PASSED);
|
|
@@ -18,19 +18,7 @@ import { postNotificationsOnFail } from "../auxta/services/report.service";
|
|
|
18
18
|
export class Puppeteer {
|
|
19
19
|
startBrowser() {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
let args = [
|
|
22
|
-
'--start-maximized',
|
|
23
|
-
'--single-process',
|
|
24
|
-
'--disable-gpu',
|
|
25
|
-
'--disable-dev-shm-usage',
|
|
26
|
-
'--disable-setuid-sandbox',
|
|
27
|
-
'--no-first-run',
|
|
28
|
-
'--no-sandbox',
|
|
29
|
-
'--no-zygote',
|
|
30
|
-
'--deterministic-fetch',
|
|
31
|
-
'--disable-features=IsolateOrigins',
|
|
32
|
-
'--disable-site-isolation-trials',
|
|
33
|
-
];
|
|
21
|
+
let args = [];
|
|
34
22
|
if (process.env.ENVIRONMENT != 'LOCAL')
|
|
35
23
|
args.push(`--window-size=${config.screenWidth},${config.screenHeight}`);
|
|
36
24
|
this.browser = yield puppeteer.launch({
|