froth-webdriverio-framework 4.0.27 → 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,21 +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){
189
+ else if (!passed) {
190
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}`);
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"}`);
193
194
 
194
195
  }
195
- else if(error) {
196
- console.error(`========= Failed or Error occured while executing the test: ${error.message === undefined ? "Test failed" : error.message}}`);
196
+ else if (error) {
197
+ console.error(`========= Failed or Error occured while executing the test: ${error.message === undefined ? "Test failed" : error.message}}`);
197
198
  scriptresult = "FAILED"
198
199
  // if (!resultdetails.comments.some(comment => typeof comment === 'string' && comment.includes(test.title)))
199
200
  resultdetails.comments.push(`${test.title} - failed: ${error.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "4.0.27",
3
+ "version": "4.0.28",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",