froth-webdriverio-framework 4.0.9 → 4.0.10
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.
|
@@ -13,8 +13,8 @@ let endtime;
|
|
|
13
13
|
console.log('===== common config===== ');
|
|
14
14
|
const resultdetails = {
|
|
15
15
|
comments: [],
|
|
16
|
-
excution_status:
|
|
17
|
-
excution_time:
|
|
16
|
+
excution_status: null, // Pass/Fail
|
|
17
|
+
excution_time: null, // Execution time in milliseconds
|
|
18
18
|
};
|
|
19
19
|
// Description: This file contains the common configuration for the webdriverio framework.
|
|
20
20
|
const commonconfig = {
|
|
@@ -142,6 +142,7 @@ const commonconfig = {
|
|
|
142
142
|
|
|
143
143
|
if (passed) {
|
|
144
144
|
scriptresult = "PASSED"
|
|
145
|
+
if (!resultdetails.comments.some(comment => typeof comment === 'string' && comment.includes(test.title)))
|
|
145
146
|
resultdetails.comments.push(`${test.title} - passed`);
|
|
146
147
|
}
|
|
147
148
|
else {
|