froth-webdriverio-framework 6.0.3 → 6.0.4

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.
@@ -103,8 +103,12 @@ const commonconfig = {
103
103
  capabilities['browserstack.local'] = true;
104
104
  capabilities['browserstack.localIdentifier'] = localArgs.localIdentifier || 'ExecuteLocal';
105
105
  }
106
- else
106
+ else {
107
107
  console.log("====> BROWSERSTACK_LOCAL not set. Skipping BrowserStack Local startup." + process.env.BROWSERSTACK_LOCAL);
108
+ // Make sure no stale values from config remain
109
+ delete capabilities['browserstack.local'];
110
+ delete capabilities['browserstack.localIdentifier'];
111
+ }
108
112
 
109
113
  // capabilities.accessKey = Buffer.from(capabilities.accessKey, 'base64').toString('utf-8');
110
114
  if (capabilities.platformName === 'android' || capabilities.platformName === 'ios') {
@@ -137,6 +141,10 @@ const commonconfig = {
137
141
  console.error("Error parsing MEDIA_FILES:", error);
138
142
  }
139
143
 
144
+ // Normalized structure to support future SauceLabs
145
+ // if (!capabilities['bstack:options']) {
146
+ // capabilities['bstack:options'] = {};
147
+ // }
140
148
  console.log(`Running tests on after app,bslocal,mediafiles: ${JSON.stringify(capabilities)}`);
141
149
  }
142
150
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "6.0.3",
3
+ "version": "6.0.4",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",