@zohodesk/testinglibrary 2.9.4 → 2.9.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/.gitlab-ci.yml
CHANGED
|
@@ -45,9 +45,7 @@ uat-auth:
|
|
|
45
45
|
- npm install $(npm pack ../../testing-framework | tail -1)
|
|
46
46
|
- output=$(npm run uatauth)
|
|
47
47
|
- echo "$output"
|
|
48
|
-
-
|
|
49
|
-
- exit 1
|
|
50
|
-
- fi
|
|
48
|
+
- node ../ValidateUATReport.js examples
|
|
51
49
|
|
|
52
50
|
artifacts:
|
|
53
51
|
when: always
|
|
@@ -61,9 +59,7 @@ uat-noauth:
|
|
|
61
59
|
- npm install $(npm pack ../../testing-framework | tail -1)
|
|
62
60
|
- output=$(npm run uatnoauth)
|
|
63
61
|
- echo "$output"
|
|
64
|
-
-
|
|
65
|
-
- exit 1
|
|
66
|
-
- fi
|
|
62
|
+
- node ../ValidateUATReport.js examples
|
|
67
63
|
|
|
68
64
|
artifacts:
|
|
69
65
|
when: always
|
|
@@ -77,9 +73,7 @@ uat-profile:
|
|
|
77
73
|
- npm install $(npm pack ../../testing-framework | tail -1)
|
|
78
74
|
- output=$(npm run uatprofile)
|
|
79
75
|
- echo "$output"
|
|
80
|
-
-
|
|
81
|
-
- exit 1
|
|
82
|
-
- fi
|
|
76
|
+
- node ../ValidateUATReport.js examples
|
|
83
77
|
|
|
84
78
|
artifacts:
|
|
85
79
|
when: always
|
|
@@ -89,17 +83,12 @@ uat-profile:
|
|
|
89
83
|
|
|
90
84
|
uat-unauth:
|
|
91
85
|
stage: uat
|
|
92
|
-
image: repository.desk.csez.zohocorpin.com/base-image/testing-framework-gitlab-runne-base:v2
|
|
93
86
|
script:
|
|
94
|
-
- npm install
|
|
95
|
-
- npm run build
|
|
96
87
|
- cd examples
|
|
97
88
|
- npm install $(npm pack ../../testing-framework | tail -1)
|
|
98
89
|
- output=$(npm run uatunauth)
|
|
99
90
|
- echo "$output"
|
|
100
|
-
-
|
|
101
|
-
- exit 1
|
|
102
|
-
- fi
|
|
91
|
+
- node ../ValidateUATReport.js examples
|
|
103
92
|
|
|
104
93
|
|
|
105
94
|
artifacts:
|
|
@@ -112,11 +101,9 @@ uat-nobdd:
|
|
|
112
101
|
script:
|
|
113
102
|
- cd nobdd
|
|
114
103
|
- npm install $(npm pack ../../testing-framework | tail -1)
|
|
115
|
-
- output=$(npm run uatnobdd)
|
|
104
|
+
- output=$(npm run uatnobdd -- --headless)
|
|
116
105
|
- echo "$output"
|
|
117
|
-
-
|
|
118
|
-
- exit 1
|
|
119
|
-
- fi
|
|
106
|
+
- node ../ValidateUATReport.js nobdd
|
|
120
107
|
|
|
121
108
|
|
|
122
109
|
artifacts:
|
|
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.CUSTOM_COMMANDS = void 0;
|
|
7
|
-
const CUSTOM_COMMANDS = exports.CUSTOM_COMMANDS = ['mode', 'tags', 'edition', 'browsers', 'filePath'];
|
|
7
|
+
const CUSTOM_COMMANDS = exports.CUSTOM_COMMANDS = ['mode', 'tags', 'edition', 'browsers', 'filePath', 'headless'];
|
|
@@ -21,13 +21,13 @@ class FileMutex {
|
|
|
21
21
|
}
|
|
22
22
|
async acquire() {
|
|
23
23
|
_assertClassBrand(_FileMutex_brand, this, _createDirectoryIfNotExist).call(this);
|
|
24
|
-
const lockFilePath =
|
|
24
|
+
const lockFilePath = _assertClassBrand(_FileMutex_brand, this, _getLockFilePath).call(this);
|
|
25
25
|
try {
|
|
26
26
|
if (!(0, _fs.existsSync)(lockFilePath)) {
|
|
27
27
|
console.log(`[DEBUG] Creating missing lock file:`, this.lockFileName);
|
|
28
28
|
(0, _fs.writeFileSync)(lockFilePath, 'locked');
|
|
29
29
|
}
|
|
30
|
-
await _properLockfile.default.lock(
|
|
30
|
+
await _properLockfile.default.lock(lockFilePath, this.options);
|
|
31
31
|
} catch (err) {
|
|
32
32
|
throw new Error(`Failed to acquire lock after ${this.options.retries.retries} attempts: ${err.message}`);
|
|
33
33
|
}
|