@auxcode/auxta 1.3.78-beta.100 → 1.3.78-beta.102

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/AuxTA.js CHANGED
@@ -82,7 +82,7 @@ class AuxTA extends code_helper_1.FunctionHelper {
82
82
  catch (e) {
83
83
  console.log("Missing field in auxta.json:", e);
84
84
  }
85
- this.uploadModel = new upload_model_1.UploadModel(jsonConfig.organization, jsonConfig.baseURL, jsonConfig.digitalProduct, jsonConfig.environment, jsonConfig.bucket);
85
+ this.uploadModel = new upload_model_1.UploadModel(jsonConfig.organization, jsonConfig.baseURL, jsonConfig.digitalProduct, jsonConfig.environment, jsonConfig.bucket, true);
86
86
  }
87
87
  catch (e) {
88
88
  console.log("Missing or corrupted config: auxta.json. Searching in location:", file);
@@ -91,7 +91,7 @@ class AuxTA extends code_helper_1.FunctionHelper {
91
91
  }
92
92
  }
93
93
  else {
94
- this.uploadModel = new upload_model_1.UploadModel('', '', '', '', '');
94
+ this.uploadModel = new upload_model_1.UploadModel('', '', '', '', '', true);
95
95
  }
96
96
  }
97
97
  run(event, overrideConfig) {
@@ -120,6 +120,8 @@ class AuxTA extends code_helper_1.FunctionHelper {
120
120
  this.uploadModel.baseUrl = overrideConfig.baseURL;
121
121
  if (overrideConfig.bucket)
122
122
  this.uploadModel.bucket = overrideConfig.bucket;
123
+ if (overrideConfig.isOfficial)
124
+ this.uploadModel.isOfficial = overrideConfig.isOfficial;
123
125
  this.config = (0, config_1.setupOverrideConfig)(overrideConfig);
124
126
  }
125
127
  }
@@ -10,7 +10,8 @@ export declare class UploadModel {
10
10
  private _retries;
11
11
  private _featureName;
12
12
  private _scenarioName;
13
- constructor(org: string, baseUrl: string, digitalProduct: string, environment: string, bucket: string);
13
+ private _isOfficial;
14
+ constructor(org: string, baseUrl: string, digitalProduct: string, environment: string, bucket: string, isOfficial: boolean);
14
15
  set currentSuite(value: string);
15
16
  set retries(value: number);
16
17
  get currentSuite(): string;
@@ -32,4 +33,6 @@ export declare class UploadModel {
32
33
  set featureName(value: string);
33
34
  get scenarioName(): string;
34
35
  set scenarioName(value: string);
36
+ get isOfficial(): boolean;
37
+ set isOfficial(value: boolean);
35
38
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UploadModel = void 0;
4
4
  class UploadModel {
5
- constructor(org, baseUrl, digitalProduct, environment, bucket) {
5
+ constructor(org, baseUrl, digitalProduct, environment, bucket, isOfficial) {
6
6
  this._reportId = '';
7
7
  this._nextSuites = [];
8
8
  this._currentSuite = '';
@@ -14,6 +14,7 @@ class UploadModel {
14
14
  this._baseUrl = baseUrl;
15
15
  this._featureName = '';
16
16
  this._scenarioName = '';
17
+ this._isOfficial = isOfficial;
17
18
  }
18
19
  set currentSuite(value) {
19
20
  this._currentSuite = value;
@@ -78,5 +79,11 @@ class UploadModel {
78
79
  set scenarioName(value) {
79
80
  this._scenarioName = value;
80
81
  }
82
+ get isOfficial() {
83
+ return this._isOfficial;
84
+ }
85
+ set isOfficial(value) {
86
+ this._isOfficial = value;
87
+ }
81
88
  }
82
89
  exports.UploadModel = UploadModel;
@@ -187,28 +187,30 @@ class AuxGoogleAuth {
187
187
  yield code_helper_1.default.waitForSelector('visible', '#identifierId', config_1.config.timeout, page, count >= 2);
188
188
  yield ((_a = (yield page.$('#identifierId'))) === null || _a === void 0 ? void 0 : _a.type(email));
189
189
  yield (yield page.$$('button'))[3].click();
190
- yield code_helper_1.default.timeout(4000);
190
+ yield code_helper_1.default.timeout(5000);
191
191
  yield code_helper_1.default.waitForSelector('visible', 'input[type="password"]', config_1.config.timeout, page, count >= 2);
192
192
  yield ((_b = (yield page.$('input[type="password"]'))) === null || _b === void 0 ? void 0 : _b.type(password));
193
193
  yield (yield page.$$('button'))[1].click();
194
- yield code_helper_1.default.timeout(4000);
194
+ yield code_helper_1.default.timeout(5000);
195
195
  yield code_helper_1.default.waitForSelector('visible', '#headingText', config_1.config.timeout, page, count >= 2);
196
- yield code_helper_1.default.timeout(4000);
196
+ yield code_helper_1.default.timeout(5000);
197
+ yield code_helper_1.default.waitForSelector('visible', 'button', config_1.config.timeout, page, count >= 2);
197
198
  yield (yield page.$$('button'))[2].click();
198
- yield code_helper_1.default.timeout(4000);
199
+ yield code_helper_1.default.timeout(5000);
199
200
  const checkbox = yield page.$$('input[type="checkbox"]');
200
201
  if (checkbox.length > 0) {
201
202
  yield code_helper_1.default.waitForSelector('visible', 'input[type="checkbox"]', config_1.config.timeout, page, count >= 2);
202
- yield code_helper_1.default.timeout(4000);
203
+ yield code_helper_1.default.timeout(5000);
203
204
  yield checkbox[0].click();
204
205
  yield (yield page.$$('button'))[2].click();
205
206
  }
206
207
  else {
207
208
  yield code_helper_1.default.waitForSelector('visible', `div[data-email="${email.toLocaleLowerCase()}"]`, config_1.config.timeout, page, count >= 2);
208
- yield code_helper_1.default.timeout(4000);
209
+ yield code_helper_1.default.timeout(5000);
210
+ yield code_helper_1.default.waitForSelector('visible', 'button', config_1.config.timeout, page, count >= 2);
209
211
  yield (yield page.$$('button'))[2].click();
210
212
  }
211
- yield code_helper_1.default.timeout(4000);
213
+ yield code_helper_1.default.timeout(5000);
212
214
  yield code_helper_1.default.waitForSelector('visible', 'body', config_1.config.timeout, page, count >= 2);
213
215
  const currentUrl = page.url();
214
216
  const code = currentUrl.substring(currentUrl.indexOf("code=") + 5, currentUrl.lastIndexOf("&"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auxcode/auxta",
3
- "version": "1.3.78-beta.100",
3
+ "version": "1.3.78-beta.102",
4
4
  "description": "",
5
5
  "main": "./build/AuxTA.js",
6
6
  "types": "./build/AuxTA.d.ts",