@auxcode/auxta 0.4.3 → 0.4.4
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
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 =
|
|
15
|
+
this._environment = environment;
|
|
16
16
|
this._baseUrl = baseUrl;
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -16,11 +16,7 @@ export class Puppeteer {
|
|
|
16
16
|
|
|
17
17
|
public async startBrowser() {
|
|
18
18
|
let args = [
|
|
19
|
-
'--start-maximized'
|
|
20
|
-
'--no-sandbox',
|
|
21
|
-
'--disable-setuid-sandbox',
|
|
22
|
-
'--disable-dev-shm-usage',
|
|
23
|
-
'--single-process'
|
|
19
|
+
'--start-maximized'
|
|
24
20
|
];
|
|
25
21
|
if (process.env.ENVIRONMENT != 'LOCAL')
|
|
26
22
|
args.push(`--window-size=${config.screenWidth},${config.screenHeight}`)
|