@auxcode/auxta 0.4.1 → 0.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auxcode/auxta",
3
- "version": "0.4.1",
3
+ "version": "0.4.5",
4
4
  "description": "",
5
5
  "main": "src/AuxTA.ts",
6
6
  "scripts": {
package/src/AuxTA.ts CHANGED
@@ -41,7 +41,7 @@ class AuxTA extends FunctionHelper {
41
41
  } catch (e) {
42
42
  console.log("Missing field in auxta.json:", e)
43
43
  }
44
- this.uploadModel = new UploadModel(jsonConfig.organization, jsonConfig.baseURL, jsonConfig.digitalProduct);
44
+ this.uploadModel = new UploadModel(jsonConfig.organization, jsonConfig.baseURL, jsonConfig.digitalProduct,jsonConfig.environment);
45
45
  } catch (e) {
46
46
  console.log("Missing or corrupted config: auxta.json. Searching in location:", file)
47
47
  console.log(e);
@@ -7,12 +7,12 @@ export class UploadModel {
7
7
  private readonly _organization: string;
8
8
  private _environment: string;
9
9
 
10
- constructor(org: string, baseUrl: string, digitalProduct: string) {
10
+ constructor(org: string, baseUrl: string, digitalProduct: string, environment: string) {
11
11
  this._reportId = '';
12
12
  this._nextSuites = [];
13
13
  this._organization = org;
14
14
  this._digitalProduct = digitalProduct;
15
- this._environment = process.env.NODE_ENV || "";
15
+ this._environment = environment;
16
16
  this._baseUrl = baseUrl;
17
17
  }
18
18
 
@@ -29,6 +29,12 @@ export class LogSteps {
29
29
 
30
30
  public clear() {
31
31
  this.stepLog = [];
32
+ this.statusCounter = {
33
+ [StatusOfStep.PASSED]: 0,
34
+ [StatusOfStep.FAILED]: 0,
35
+ [StatusOfStep.SKIPPED]: 0,
36
+ [StatusOfStep.SUGGESTION]: 0,
37
+ }
32
38
  }
33
39
 
34
40
  public push(keyword: string, name: string, status: StatusOfStep) {
@@ -27,6 +27,7 @@ export class Puppeteer {
27
27
  this.browser = await chromium.puppeteer.launch({
28
28
  executablePath: process.env.ENVIRONMENT === 'LOCAL' ? undefined : await chromium.executablePath,
29
29
  args,
30
+ ignoreDefaultArgs: ["--enable-automation"],
30
31
  defaultViewport: process.env.ENVIRONMENT === 'LOCAL' ? null : {
31
32
  width: config.screenWidth,
32
33
  height: config.screenHeight