Skip to content

Commit

Permalink
fix bug in appium options
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhousley committed Jul 31, 2023
1 parent 68af914 commit d3a4bb3
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 10 deletions.
39 changes: 39 additions & 0 deletions tools/browsers-lists/browsers-supported.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,45 @@
"sauce:options": {
"appiumVersion": "2.0.0"
}
},
{
"browserName": "Chrome",
"platformName": "Android",
"platform": "Android",
"version": "10.0",
"device": "Android GoogleAPI Emulator",
"appium:deviceName": "Android GoogleAPI Emulator",
"appium:platformVersion": "10.0",
"appium:automationName": "UiAutomator2",
"sauce:options": {
"appiumVersion": "2.0.0"
}
},
{
"browserName": "Chrome",
"platformName": "Android",
"platform": "Android",
"version": "12.0",
"device": "Android GoogleAPI Emulator",
"appium:deviceName": "Android GoogleAPI Emulator",
"appium:platformVersion": "12.0",
"appium:automationName": "UiAutomator2",
"sauce:options": {
"appiumVersion": "2.0.0"
}
},
{
"browserName": "Chrome",
"platformName": "Android",
"platform": "Android",
"version": "13.0",
"device": "Android GoogleAPI Emulator",
"appium:deviceName": "Android GoogleAPI Emulator",
"appium:platformVersion": "13.0",
"appium:automationName": "UiAutomator2",
"sauce:options": {
"appiumVersion": "2.0.0"
}
}
],
"ios": [
Expand Down
15 changes: 5 additions & 10 deletions tools/wdio/config/sauce.conf.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,11 @@ function sauceCapabilities () {
platform: undefined,
version: undefined,
...getMobileCapabilities(sauceBrowser),
'sauce:options': !args.sauce
? {
tunnelName: getSauceConnectTunnelName(),
...(() => {
if (args.sauceExtendedDebugging && browserSupportsExtendedDebugging(sauceBrowser)) {
return { extendedDebugging: true }
}
})()
}
: {}
'sauce:options': {
...(sauceBrowser['sauce:options'] || {}),
...(!args.sauce ? { tunnelName: getSauceConnectTunnelName() } : {}),
...(args.sauceExtendedDebugging && browserSupportsExtendedDebugging(sauceBrowser) ? { extendedDebugging: true } : {})
}
}))
}

Expand Down

0 comments on commit d3a4bb3

Please sign in to comment.