froth-webdriverio-framework 7.0.52 → 7.0.53

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.
@@ -181,27 +181,23 @@ const commonHooks = {
181
181
  const media = JSON.parse(process.env.MEDIA_FILES);
182
182
  console.log('Total items:', media.length);
183
183
  if (media.length > 0) {
184
- bsOpts = {
185
- ...bsOpts,
186
- networkLogs: false
187
- };
184
+
185
+ capabilities.uploadMedia = media;
186
+ capabilities['bstack:options'].networkLogs = false;
188
187
  // capabilities['networkLogs'] = false
189
188
  // // capabilities['uploadMedia'] = media;
190
189
  // console.log('uploadMedia attached:', media)
191
- // // bsOpts.uploadMedia = JSON.parse(process.env.MEDIA_FILES)
192
- // capabilities['uploadMedia'] = JSON.parse(process.env.MEDIA_FILES)
190
+ // bsOpts.uploadMedia = JSON.parse(process.env.MEDIA_FILES)
191
+ // capabilities['uploadMedia'] = JSON.parse(process.env.MEDIA_FILES)
193
192
  console.log('Final capabilities:', JSON.stringify(capabilities, null, 2));
194
193
 
195
194
  }
196
- } catch {
197
- console.warn('⚠️ MEDIA_FILES is not valid JSON');
195
+ } catch (error){
196
+ console.warn('⚠️ MEDIA_FILES is not valid JSON',error.message);
198
197
  }
199
198
  }
200
- // capabilities['bstack:options'] = bsOpts;
201
- capabilities = {
202
- ...capabilities,
203
- 'bstack:options': bsOpts
204
- };
199
+ capabilities['bstack:options'] = bsOpts;
200
+
205
201
  }
206
202
  console.log('final cinfig dteials :' + JSON.stringify(capabilities))
207
203
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "7.0.52",
3
+ "version": "7.0.53",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",