froth-webdriverio-framework 4.0.26 → 4.0.27
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.
|
@@ -186,8 +186,14 @@ const commonconfig = {
|
|
|
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
|
+
resultdetails.comments.push(`${test.title} - failed: ${error.message === undefined ? "Test failed" : error.message}`);
|
|
193
|
+
|
|
194
|
+
}
|
|
195
|
+
else if(error) {
|
|
196
|
+
console.error(`========= Failed or Error occured while executing the test: ${error.message === undefined ? "Test failed" : error.message}}`);
|
|
191
197
|
scriptresult = "FAILED"
|
|
192
198
|
// if (!resultdetails.comments.some(comment => typeof comment === 'string' && comment.includes(test.title)))
|
|
193
199
|
resultdetails.comments.push(`${test.title} - failed: ${error.message}`);
|