@testim/testim-cli 3.285.0 → 3.286.0
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/commons/featureFlags.js
CHANGED
|
@@ -62,6 +62,7 @@ class FeatureFlagsService {
|
|
|
62
62
|
LTNetworkCapabilities: new Rox.Flag(),
|
|
63
63
|
downloadToBase64: new Rox.Flag(),
|
|
64
64
|
dec2022eolBrowsers: new Rox.Flag(),
|
|
65
|
+
publicGridURL: new Rox.Configuration('public-grid.testim.io'),
|
|
65
66
|
};
|
|
66
67
|
Rox.register('default', this.flags);
|
|
67
68
|
}
|
|
@@ -529,7 +529,11 @@ function buildSeleniumOptions(browserOptions, testName, testRunConfig, gridInfo,
|
|
|
529
529
|
* One level targeting (either grid provider, host, browser name or browser version): { "devicefarm": { selenium_version: '3.141.59' } }
|
|
530
530
|
* Two level targeting: { "internet explorer": { "11": { selenium_version: '3.141.59' } } }
|
|
531
531
|
*/
|
|
532
|
-
const hostToProvider = {
|
|
532
|
+
const hostToProvider = {
|
|
533
|
+
'hub.lambdatest.com': 'lambdatest',
|
|
534
|
+
[featureFlags.flags.publicGridURL.getValue()]: 'testim',
|
|
535
|
+
'testgrid-devicefarm.us-west-2.amazonaws.com': 'devicefarm',
|
|
536
|
+
};
|
|
533
537
|
const byGrid = (capabilities) => capabilities[gridInfo.provider] || capabilities[opts.host] || capabilities[hostToProvider[opts.host]];
|
|
534
538
|
const getTargetingGroup = capabilities =>
|
|
535
539
|
byGrid(capabilities) ||
|