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.
- package/froth_configs/commonhook.js +9 -13
- package/package.json +1 -1
|
@@ -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
|
-
|
|
185
|
-
|
|
186
|
-
|
|
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
|
-
//
|
|
192
|
-
|
|
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
|
-
|
|
201
|
-
|
|
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
|
|