@wdio/visual-service 6.2.0 → 6.2.2
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.
- package/CHANGELOG.md +25 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +15 -5
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @wdio/visual-service
|
|
2
2
|
|
|
3
|
+
## 6.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a34dd5d: Update of deps
|
|
8
|
+
- d751b8c: fix android app determination
|
|
9
|
+
|
|
10
|
+
## 6.2.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 1df5350: # Improve iPhone support
|
|
15
|
+
|
|
16
|
+
## 💅 Polish @wdio/visual-reporter
|
|
17
|
+
|
|
18
|
+
- Mobile: support iOS 18 and the iPhone 16 series for the blockouts
|
|
19
|
+
|
|
20
|
+
## 🐛 Bugs fixed @wdio/visual-reporter
|
|
21
|
+
|
|
22
|
+
- Mobile: don't use the device blockouts for element screenshot
|
|
23
|
+
- Mobile: when the blockouts had the value `{x: 0, y: 0, width: 0, height: 0}` then Resemble picked this up as a full blockout. This caused false positives for iOS
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [1df5350]
|
|
26
|
+
- webdriver-image-comparison@7.2.1
|
|
27
|
+
|
|
3
28
|
## 6.2.0
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACR,OAAO,EACP,YAAY,EACZ,wBAAwB,EACxB,uBAAuB,EACvB,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,WAAW,EACd,MAAM,4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T,MAAM,EACN,KAAK,GACR,EACD,YAAY,EAAE,EACV,OAAO,EACP,WAAW,EACX,cAAc,EACd,UAAU,EACV,SAAS,EACT,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,eAAe,GAClB,EACD,GAAG,GACN,EACD;IACI,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,WAAW,CAAC;IAChC,YAAY,EAAE,YAAY,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC;CACf,GACF,WAAW,CAuBb"}
|
package/dist/utils.js
CHANGED
|
@@ -185,11 +185,21 @@ export function determineNativeContext(driver) {
|
|
|
185
185
|
}
|
|
186
186
|
// If not check if it's a mobile
|
|
187
187
|
if (driver.isMobile) {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
188
|
+
const isAppiumAppCapPresent = (capabilities) => {
|
|
189
|
+
const appiumKeys = [
|
|
190
|
+
'appium:app',
|
|
191
|
+
'appium:bundleId',
|
|
192
|
+
'appium:appPackage',
|
|
193
|
+
'appium:appActivity',
|
|
194
|
+
'appium:appWaitActivity',
|
|
195
|
+
'appium:appWaitPackage',
|
|
196
|
+
];
|
|
197
|
+
return appiumKeys.some(key => capabilities[key] !== undefined);
|
|
198
|
+
};
|
|
199
|
+
const capabilities = driver.requestedCapabilities;
|
|
200
|
+
const isBrowserNameFalse = !!capabilities.browserName === false;
|
|
201
|
+
const isAutoWebviewFalse = capabilities['appium:autoWebview'] !== true;
|
|
202
|
+
return isBrowserNameFalse && isAppiumAppCapPresent(capabilities) && isAutoWebviewFalse;
|
|
193
203
|
}
|
|
194
204
|
// If not, it's webcontext
|
|
195
205
|
return false;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@wdio/visual-service",
|
|
3
3
|
"author": "Wim Selles - wswebcreation",
|
|
4
4
|
"description": "Image comparison / visual regression testing for WebdriverIO",
|
|
5
|
-
"version": "6.2.
|
|
5
|
+
"version": "6.2.2",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://webdriver.io/docs/visual-testing",
|
|
8
8
|
"repository": {
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"type": "module",
|
|
21
21
|
"types": "./dist/index.d.ts",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@wdio/globals": "^9.
|
|
24
|
-
"@wdio/logger": "^9.1.
|
|
25
|
-
"@wdio/types": "^9.
|
|
23
|
+
"@wdio/globals": "^9.2.8",
|
|
24
|
+
"@wdio/logger": "^9.1.3",
|
|
25
|
+
"@wdio/types": "^9.2.2",
|
|
26
26
|
"node-fetch": "^3.3.2",
|
|
27
|
-
"webdriver-image-comparison": "^7.2.
|
|
27
|
+
"webdriver-image-comparison": "^7.2.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {},
|
|
30
30
|
"scripts": {
|