MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / _convertAppiumV2Caps

Method _convertAppiumV2Caps

lib/helper/Appium.js:279–293  ·  view source on GitHub ↗
(capabilities)

Source from the content-addressed store, hash-verified

277 }
278
279 _convertAppiumV2Caps(capabilities) {
280 const _convertedCaps = {}
281 for (const [key, value] of Object.entries(capabilities)) {
282 if (!key.startsWith(vendorPrefix.appium)) {
283 if (key !== 'platformName' && key !== 'bstack:options' && key !== 'sauce:options') {
284 _convertedCaps[`${vendorPrefix.appium}:${key}`] = value
285 } else {
286 _convertedCaps[`${key}`] = value
287 }
288 } else {
289 _convertedCaps[`${key}`] = value
290 }
291 }
292 return _convertedCaps
293 }
294
295 static _config() {
296 return [

Callers 2

_validateConfigMethod · 0.95
_startBrowserMethod · 0.95

Calls 1

entriesMethod · 0.80

Tested by

no test coverage detected