Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/browserstack-service/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1064,11 +1064,11 @@ export function getCloudProvider(browser: WebdriverIO.Browser | WebdriverIO.Mult
// Loop through all instances
for (const instanceName of browser.instances) {
const instance = (browser as any)[instanceName] as WebdriverIO.Browser
if (instance.options && instance.options.hostname && instance.options.hostname.includes('browserstack')) {
if (instance.options && instance.options.hostname && (instance.options.hostname.includes('browserstack') || instance.options.hostname.includes('bsstag'))) {
return 'browserstack'
}
}
} else if (browser.options && browser.options.hostname && browser.options.hostname.includes('browserstack')) { // Single browser instance
} else if (browser.options && browser.options.hostname && (browser.options.hostname.includes('browserstack') || browser.options.hostname.includes('bsstag'))) { // Single browser instance
return 'browserstack'
}
return 'unknown_grid'
Expand Down Expand Up @@ -1177,7 +1177,7 @@ export function isBrowserstackInfra(config: BrowserstackConfig & Options.Testrun
// In case hostname is not present anywhere in the config, it returns true by default as hostname is not a mandatory parameter in the config

const isBrowserstack = (str: string ): boolean => {
return str === 'browserstack.com' || str.endsWith('.browserstack.com')
return str === 'browserstack.com' || str.endsWith('.browserstack.com') || str.endsWith('.bsstag.com')
}

if ((config.hostname) && !isBrowserstack(config.hostname)) {
Expand Down
Loading