@percy/webdriver-utils 1.31.10-beta.1 → 1.31.10-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,7 +38,14 @@ export default class NormalizeData {
38
38
  }
39
39
  osVersionRollUp(osVersion) {
40
40
  const normVersion = osVersion.toLowerCase();
41
- return OS_VERSION_MAP[normVersion] || osVersion;
41
+ if (OS_VERSION_MAP[normVersion]) {
42
+ return OS_VERSION_MAP[normVersion];
43
+ }
44
+
45
+ // Input: "15.0" -> Output: "15.0"
46
+ // Input: "Google Pixel 6" -> Output: "Google Pixel 6"
47
+ // Input: "google pixel 6" -> Output: "Google Pixel 6"
48
+ return normVersion.split(' ').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join(' ');
42
49
  }
43
50
  browserRollUp(browserName, device) {
44
51
  if (device) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/webdriver-utils",
3
- "version": "1.31.10-beta.1",
3
+ "version": "1.31.10-beta.3",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,8 +29,8 @@
29
29
  "test:coverage": "yarn test --coverage"
30
30
  },
31
31
  "dependencies": {
32
- "@percy/config": "1.31.10-beta.1",
33
- "@percy/sdk-utils": "1.31.10-beta.1"
32
+ "@percy/config": "1.31.10-beta.3",
33
+ "@percy/sdk-utils": "1.31.10-beta.3"
34
34
  },
35
- "gitHead": "ae5b74ac851df206e0793a8048f4aeda9784fde1"
35
+ "gitHead": "a6bc2f02f722c7a6a16cdbc1dc3002b1de00f062"
36
36
  }