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.
- package/froth_configs/commonhook.js +16 -5
- package/package.json +1 -1
|
@@ -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
|
|
185
|
-
|
|
186
|
-
|
|
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
|
-
|
|
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
|
|