froth-webdriverio-framework 7.0.57 → 7.0.59
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.
|
@@ -178,26 +178,25 @@ const commonHooks = {
|
|
|
178
178
|
|
|
179
179
|
if (process.env.MEDIA_FILES) {
|
|
180
180
|
try {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
//capabilities['browserstack.uploadMedia'] = media
|
|
181
|
+
console.log("env details for media -->" + process.env.MEDIA_FILES)
|
|
182
|
+
const media = JSON.parse(process.env.MEDIA_FILES).join(',');
|
|
183
|
+
process.env.BS_UPLOAD_MEDIA= media;
|
|
184
|
+
console.log("after comma separted "+ process.env.BS_UPLOAD_MEDIA)
|
|
185
|
+
// console.log('Total items:', media.length);
|
|
186
|
+
if (process.env.BS_UPLOAD_MEDIA) {
|
|
187
|
+
bsOpts.uploadMedia = process.env.BS_UPLOAD_MEDIA
|
|
188
|
+
.split(',')
|
|
189
|
+
.map(x => x.trim())
|
|
190
|
+
|
|
192
191
|
console.log('Final capabilities:', JSON.stringify(capabilities, null, 2));
|
|
193
192
|
|
|
194
193
|
}
|
|
195
|
-
} catch (error){
|
|
196
|
-
console.warn('⚠️ MEDIA_FILES is not valid JSON',error.message);
|
|
194
|
+
} catch (error) {
|
|
195
|
+
console.warn('⚠️ MEDIA_FILES is not valid JSON', error.message);
|
|
197
196
|
}
|
|
198
197
|
}
|
|
199
|
-
|
|
200
|
-
|
|
198
|
+
capabilities['bstack:options'] = bsOpts;
|
|
199
|
+
|
|
201
200
|
}
|
|
202
201
|
console.log('final cinfig dteials :' + JSON.stringify(capabilities))
|
|
203
202
|
|