@auxcode/auxta 1.3.24-beta.3 → 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.
@@ -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');
@@ -1,5 +1,5 @@
1
1
  export declare class ExtendDefaultPage {
2
- readonly defaultTimeout: number;
2
+ defaultTimeout: number;
3
3
  extend_page_functions(page: any, time?: number): Promise<any>;
4
4
  }
5
5
  declare const _default: ExtendDefaultPage;
@@ -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,11 +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
- '--no-sandbox'
32
- ];
28
+ let args = [];
33
29
  if (process.env.ENVIRONMENT != 'LOCAL')
34
30
  args.push(`--window-size=${config_1.config.screenWidth},${config_1.config.screenHeight}`);
35
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');
@@ -1,5 +1,5 @@
1
1
  export declare class ExtendDefaultPage {
2
- readonly defaultTimeout: number;
2
+ defaultTimeout: number;
3
3
  extend_page_functions(page: any, time?: number): Promise<any>;
4
4
  }
5
5
  declare const _default: ExtendDefaultPage;
@@ -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,11 +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
- '--no-sandbox'
25
- ];
21
+ let args = [];
26
22
  if (process.env.ENVIRONMENT != 'LOCAL')
27
23
  args.push(`--window-size=${config.screenWidth},${config.screenHeight}`);
28
24
  this.browser = yield puppeteer.launch({