froth-webdriverio-framework 7.0.50 → 7.0.52

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