How do we add more than one device/browser for BS to test?
Standard config for one device:
WebDriver: {
url: localUrl,
user: bs.username,
key: bs.apiKey,
browser: 'chrome',
waitForTimeout: 10000,
smartWait: 10000,
desiredCapabilities: {
os_version: '7.0',
device: 'Samsung Galaxy S8',
name: 'CodeceptJS',
'browserstack.debug': 'true',
'browserstack.local': 'true',
'browserstack.console': 'errors',
},
},
I want to do something like this:
WebDriver: {
url: localUrl,
user: bs.username,
key: bs.apiKey,
browser: 'chrome',
waitForTimeout: 10000,
smartWait: 10000,
commonCapabilities: {
name: 'CodeceptJS',
'browserstack.debug': 'true',
'browserstack.local': 'true',
'browserstack.console': 'errors',
},
desiredCapabilities: [
{
os_version: '7.0',
device: 'Samsung Galaxy S8',
}
{
os_version: '12',
device: 'iPhone 8',
}
],
},
This doesn’t work. What’s the correct format?