froth-webdriverio-framework 6.0.69 → 6.0.71

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.
@@ -216,13 +216,13 @@ const commonHooks = {
216
216
  },
217
217
 
218
218
  /* ==== AFTER SESSION ==== */
219
- afterSession: async (config, capabilities, specs) => {
219
+ afterSession: async (config, capabilities, specs,exitCode) => {
220
220
  console.log('==== AFTER SESSION ====');
221
221
  const endTime = Date.now();
222
222
  if (!suiteStartTime) suiteStartTime = endTime;
223
223
 
224
224
  const totalTime = Math.max(endTime - suiteStartTime, totalTestDuration);
225
- resultdetails.excution_status = exitCode === 0 ? 'PASSED' : 'FAILED';
225
+ // resultdetails.excution_status = exitCode === 0 ? 'PASSED' : 'FAILED';
226
226
  resultdetails.excution_time = msToTime(totalTime);
227
227
 
228
228
  console.log('⏱ Final execution time:', resultdetails.excution_time);
@@ -256,7 +256,7 @@ const commonHooks = {
256
256
  },
257
257
  /* ========== ON COMPLETE ========== */
258
258
  onComplete: async (exitCode, _, __, results) => {
259
- cconsole.log('==== ON COMPLETE ====');
259
+ console.log('==== ON COMPLETE ====');
260
260
  console.log(`Total: ${results.total}, Passed: ${results.passed}, Failed: ${results.failed}`);
261
261
 
262
262
  resultdetails.excution_status = exitCode === 0 ? 'PASSED' : 'FAILED';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "6.0.69",
3
+ "version": "6.0.71",
4
4
  "readme": "WendriverIO Integration with [BrowserStack](https://www.browserstack.com)",
5
5
  "description": "Selenium examples for WebdriverIO and BrowserStack App Automate",
6
6
  "scripts": {