froth-webdriverio-framework 4.0.26 → 4.0.28
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.
|
@@ -179,15 +179,22 @@ const commonconfig = {
|
|
|
179
179
|
scriptresult = "FAILED"
|
|
180
180
|
passed = false; // Mark test as failed
|
|
181
181
|
result = 1; // Update the result status
|
|
182
|
-
|
|
182
|
+
|
|
183
183
|
// throw err; // causes test to fail after execution
|
|
184
184
|
}
|
|
185
185
|
if (passed && !localError) {
|
|
186
186
|
scriptresult = "PASSED"
|
|
187
187
|
resultdetails.comments.push(`${test.title} - passed`);
|
|
188
188
|
}
|
|
189
|
-
else if (!passed
|
|
190
|
-
|
|
189
|
+
else if (!passed) {
|
|
190
|
+
scriptresult = "FAILED"
|
|
191
|
+
// if (!resultdetails.comments.some(comment => typeof comment === 'string' && comment.includes(test.title)))
|
|
192
|
+
console.log(`========= Failed or Error occured while executing the test: ${error ? error.message : "Test failed"}`);
|
|
193
|
+
resultdetails.comments.push(`${test.title} - failed: ${error ? error.message : "Test failed"}`);
|
|
194
|
+
|
|
195
|
+
}
|
|
196
|
+
else if (error) {
|
|
197
|
+
console.error(`========= Failed or Error occured while executing the test: ${error.message === undefined ? "Test failed" : error.message}}`);
|
|
191
198
|
scriptresult = "FAILED"
|
|
192
199
|
// if (!resultdetails.comments.some(comment => typeof comment === 'string' && comment.includes(test.title)))
|
|
193
200
|
resultdetails.comments.push(`${test.title} - failed: ${error.message}`);
|