froth-webdriverio-framework 7.0.72 → 7.0.74
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.
|
@@ -93,7 +93,7 @@ async function pushComment(msg) {
|
|
|
93
93
|
const commonHooks = {
|
|
94
94
|
|
|
95
95
|
/* ========== ON PREPARE ========== */
|
|
96
|
-
onPrepare: async (config,capabilities) => {
|
|
96
|
+
onPrepare: async (config, capabilities) => {
|
|
97
97
|
|
|
98
98
|
suiteStartTime = Date.now();
|
|
99
99
|
registerGlobalErrorHandlers();
|
|
@@ -105,7 +105,9 @@ const commonHooks = {
|
|
|
105
105
|
await setAllDetails.setSuiteDetails();
|
|
106
106
|
await setAllDetails.setTestDataDetails();
|
|
107
107
|
/** 2️⃣ Setup BrowserStack */
|
|
108
|
-
|
|
108
|
+
capabilities['bstack:options'].uploadMedia = [
|
|
109
|
+
'media://8440f686585de9b46e1c966ce764703836f918bc'
|
|
110
|
+
];
|
|
109
111
|
console.log('✅ All Environment Variables:');
|
|
110
112
|
// for (const [key, value] of Object.entries(process.env)) {
|
|
111
113
|
// console.log(`${key} = ${value}`);
|
|
@@ -146,7 +148,7 @@ const commonHooks = {
|
|
|
146
148
|
await validateTestSyntax(specs);
|
|
147
149
|
|
|
148
150
|
// /** 2️⃣ Setup BrowserStack */
|
|
149
|
-
|
|
151
|
+
await setupBrowserStackCapabilities(capabilities);
|
|
150
152
|
|
|
151
153
|
console.log('✅ beforeSession completed successfully');
|
|
152
154
|
|
|
@@ -426,7 +428,7 @@ async function setupBrowserStackCapabilities(capabilities) {
|
|
|
426
428
|
throw new Error('❌ BROWSERSTACK_APP_PATH is missing');
|
|
427
429
|
}
|
|
428
430
|
|
|
429
|
-
bsOpts.app = appPath;
|
|
431
|
+
//bsOpts.app = appPath;
|
|
430
432
|
capabilities['appium:app'] = appPath;
|
|
431
433
|
}
|
|
432
434
|
|
|
@@ -435,6 +437,7 @@ async function setupBrowserStackCapabilities(capabilities) {
|
|
|
435
437
|
'media://8440f686585de9b46e1c966ce764703836f918bc'
|
|
436
438
|
];
|
|
437
439
|
bsOpts.uploadMedia = uploadMediaList;
|
|
440
|
+
capabilities['bstack:options'].uploadMedia = uploadMediaList
|
|
438
441
|
console.log('🟢 bstack:options after amending details:');
|
|
439
442
|
Object.entries(bsOpts).forEach(([key, value]) => {
|
|
440
443
|
console.log(` ${key} : ${JSON.stringify(value)}`);
|