Comparing version 3.2.1 to 3.2.2
{ | ||
"name": "guacamole", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "A friendly wrapper for the SauceLabs browser listing API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -48,14 +48,14 @@ /* eslint no-trailing-spaces: 0, no-magic-numbers: 0, max-len: 0, | ||
"platform", // i.e.: "OS X 10.10" | ||
// NOTE: | ||
// We perform some transformations from the listing API to | ||
// sauce's device capabilities API, i.e.: "Mac 10.10" -> "OS X 10.10". | ||
// NOTE: | ||
// We perform some transformations from the listing API to | ||
// sauce's device capabilities API, i.e.: "Mac 10.10" -> "OS X 10.10". | ||
"deviceName", // i.e: "Samsung Galaxy S5 Device". | ||
// NOTE: | ||
// As with platform, we transform some strings from the listing API | ||
// on their way to the device capabilities API. For example, if the saucelabs | ||
// listing API specifies a device field but does NOT have the word "device" | ||
// in it, it's assumed to be an simulator, and we perform a transformation, | ||
// i.e.: "iphone" -> "iPhone Simulator", "Mac <version>" -> "OS X <version>", etc. | ||
// Some devices, like ones using android, have to use the long_name property | ||
// NOTE: | ||
// As with platform, we transform some strings from the listing API | ||
// on their way to the device capabilities API. For example, if the saucelabs | ||
// listing API specifies a device field but does NOT have the word "device" | ||
// in it, it's assumed to be an simulator, and we perform a transformation, | ||
// i.e.: "iphone" -> "iPhone Simulator", "Mac <version>" -> "OS X <version>", etc. | ||
// Some devices, like ones using android, have to use the long_name property | ||
@@ -67,3 +67,3 @@ "platformVersion", // i.e.: "4.4" | ||
"deviceOrientation", // i.e. "landscape" or undefined. Generated by this module (if matched and requested) | ||
"appium-version" | ||
"appiumVersion" | ||
], | ||
@@ -201,3 +201,3 @@ | ||
if (wrapped) { | ||
if (result.desiredCapabilities.appiumVersion || result.desiredCapabilities["appium-version"]) { | ||
if (result.desiredCapabilities.appiumVersion) { | ||
// if using appium, use safari as browser for iOS | ||
@@ -353,3 +353,3 @@ if (result.desiredCapabilities.platformName === "iOS") { | ||
if (browser.automation_backend === "appium") { | ||
result["appium-version"] = browser.recommended_backend_version; | ||
result.appiumVersion = browser.recommended_backend_version; | ||
result.platformVersion = browser.short_version; | ||
@@ -356,0 +356,0 @@ result.platformName = osName; |
@@ -69,3 +69,3 @@ /* eslint filenames/filenames: 0, no-unused-var: 0, no-undef: 0 */ | ||
expect(target.desiredCapabilities).to.have.property("deviceName", "iPad Simulator"); | ||
expect(target.desiredCapabilities).to.have.property("appium-version"); | ||
expect(target.desiredCapabilities).to.have.property("appiumVersion"); | ||
}); | ||
@@ -72,0 +72,0 @@ |
20
800
463380