@wdio/visual-service 4.1.3 → 5.0.1
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 +65 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,75 @@
|
|
|
1
1
|
# @wdio/visual-service
|
|
2
2
|
|
|
3
|
+
## 5.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 169b7c5: fix(webdriver-image-comparison): export WicElement
|
|
8
|
+
- Updated dependencies [169b7c5]
|
|
9
|
+
- webdriver-image-comparison@6.0.1
|
|
10
|
+
|
|
11
|
+
## 5.0.0
|
|
12
|
+
|
|
13
|
+
### Major Changes
|
|
14
|
+
|
|
15
|
+
- 66b9f11: # 💥 Breaking
|
|
16
|
+
|
|
17
|
+
This PR replaces Canvas as a dependency with Jimp. This removes the need to use system dependencies and will reduce the number of system dependency errors/issues (node-gyp/canvas and so on). This will, in the end, make the life of our end users way easier due to:
|
|
18
|
+
|
|
19
|
+
- less errors
|
|
20
|
+
- less complex test environments
|
|
21
|
+
|
|
22
|
+
> [!note]
|
|
23
|
+
> Extensive research has been done and we have chosen to "fork" ResembleJS, adjust it by making use of Jimp instead of Canvas and break the browser API because the fork will only be used in a nodejs environment
|
|
24
|
+
> Investigation showed that creating a wrapper would even make it slower, so we went for the breaking change in the API by just replacing Canvas with Jimp
|
|
25
|
+
|
|
26
|
+
> [!important]
|
|
27
|
+
> There is a performance impact where Canvas is around 70% faster than Jimp. This has been measured without using WebdriverIO and only comparing images. When the "old" implementation with WebdriverIO combined with Canvas or Jimp is compared, we hardly see a performance impact.
|
|
28
|
+
|
|
29
|
+
# 🚀 New Features
|
|
30
|
+
|
|
31
|
+
Update the baseline images through the command line by adding the argument `--update-visual-baseline`. This will
|
|
32
|
+
|
|
33
|
+
- automatically copy the actual take screenshot and put it in the baseline folder
|
|
34
|
+
- if there are differences it will let the test pass because the baseline has been updated
|
|
35
|
+
|
|
36
|
+
**Usage:**
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
npm run test.local.desktop --update-visual-baseline
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
When running logs info/debug mode you will see the following logs added
|
|
43
|
+
|
|
44
|
+
```logs
|
|
45
|
+
[0-0] ..............
|
|
46
|
+
[0-0] #####################################################################################
|
|
47
|
+
[0-0] INFO:
|
|
48
|
+
[0-0] Updated the actual image to
|
|
49
|
+
[0-0] /Users/wswebcreation/Git/wdio/visual-testing/localBaseline/chromel/demo-chrome-1366x768.png
|
|
50
|
+
[0-0] #####################################################################################
|
|
51
|
+
[0-0] ..........
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
# 💅 Polish
|
|
55
|
+
|
|
56
|
+
- remove Vitest fix
|
|
57
|
+
- add app images
|
|
58
|
+
- update the build
|
|
59
|
+
|
|
60
|
+
### Patch Changes
|
|
61
|
+
|
|
62
|
+
- Updated dependencies [66b9f11]
|
|
63
|
+
- webdriver-image-comparison@6.0.0
|
|
64
|
+
|
|
3
65
|
## 4.1.3
|
|
4
66
|
|
|
5
67
|
### Patch Changes
|
|
6
68
|
|
|
7
|
-
|
|
69
|
+
# 🐛 Bug Fixes
|
|
8
70
|
|
|
9
|
-
|
|
10
|
-
|
|
71
|
+
- Fixes https://github.com/webdriverio/visual-testing/issues/286
|
|
72
|
+
- Fixes https://github.com/webdriverio/visual-testing/issues/333
|
|
11
73
|
|
|
12
74
|
## 4.1.2
|
|
13
75
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="./expect-webdriverio.js" />
|
|
2
|
-
import type { WicElement } from 'webdriver-image-comparison
|
|
2
|
+
import type { WicElement } from 'webdriver-image-comparison';
|
|
3
3
|
import WdioImageComparisonService from './service.js';
|
|
4
4
|
import VisualLauncher from './storybook/launcher.js';
|
|
5
5
|
import type { Output, Result, WdioCheckFullPageMethodOptions, WdioSaveFullPageMethodOptions, WdioSaveElementMethodOptions, WdioSaveScreenMethodOptions, WdioCheckElementMethodOptions, WdioCheckScreenMethodOptions } from './types.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,0BAA0B,MAAM,cAAc,CAAA;AACrD,OAAO,cAAc,MAAM,yBAAyB,CAAA;AACpD,OAAO,KAAK,EACR,MAAM,EACN,MAAM,EACN,8BAA8B,EAC9B,6BAA6B,EAC7B,4BAA4B,EAC5B,2BAA2B,EAC3B,6BAA6B,EAC7B,4BAA4B,EAC/B,MAAM,YAAY,CAAA;AAEnB,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,WAAW,CAAC;QAClB,UAAU,OAAO;YACb;;eAEG;YACH,WAAW,CACP,OAAO,EAAE,UAAU,EACnB,GAAG,EAAE,MAAM,EACX,kBAAkB,CAAC,EAAE,4BAA4B,GAClD,OAAO,CAAC,MAAM,CAAC,CAAC;YAEnB;;eAEG;YACH,UAAU,CACN,GAAG,EAAE,MAAM,EACX,iBAAiB,CAAC,EAAE,2BAA2B,GAChD,OAAO,CAAC,MAAM,CAAC,CAAC;YAEnB;;eAEG;YACH,kBAAkB,CACd,GAAG,EAAE,MAAM,EACX,yBAAyB,CAAC,EAAE,6BAA6B,GAC1D,OAAO,CAAC,MAAM,CAAC,CAAC;YAEnB;;eAEG;YACH,gBAAgB,CACZ,GAAG,EAAE,MAAM,EACX,mBAAmB,CAAC,EAAE,6BAA6B,GACpD,OAAO,CAAC,MAAM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;YACH,sBAAsB,CAClB,GAAG,EAAE,MAAM,EACX,cAAc,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAAC,cAAc,EAC1D,OAAO,CAAC,EAAE,6BAA6B,GACxC,CAAC,CAAA;YACJ,sBAAsB,CAClB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,6BAA6B,GACxC,CAAC,CAAA;YACJ;;;;;eAKG;YACH,2BAA2B,CACvB,GAAG,EAAE,MAAM,EACX,cAAc,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAAC,cAAc,EAC1D,OAAO,CAAC,EAAE,8BAA8B,GACzC,CAAC,CAAA;YACJ,2BAA2B,CACvB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,8BAA8B,GACzC,CAAC,CAAA;SACP;KACJ;CACJ;AAED,eAAe,0BAA0B,CAAA;AACzC,eAAO,MAAM,QAAQ,uBAAiB,CAAA"}
|
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": "
|
|
5
|
+
"version": "5.0.1",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://webdriver.io/docs/visual-testing",
|
|
8
8
|
"repository": {
|
|
@@ -20,16 +20,17 @@
|
|
|
20
20
|
"type": "module",
|
|
21
21
|
"types": "./dist/index.d.ts",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@wdio/globals": "^8.
|
|
24
|
-
"@wdio/logger": "^8.
|
|
25
|
-
"@wdio/types": "^8.
|
|
23
|
+
"@wdio/globals": "^8.38.2",
|
|
24
|
+
"@wdio/logger": "^8.38.0",
|
|
25
|
+
"@wdio/types": "^8.38.2",
|
|
26
26
|
"node-fetch": "^3.3.2",
|
|
27
|
-
"webdriver-image-comparison": "^
|
|
27
|
+
"webdriver-image-comparison": "^6.0.1"
|
|
28
28
|
},
|
|
29
|
+
"devDependencies": {},
|
|
29
30
|
"scripts": {
|
|
30
31
|
"build": "run-s clean build:*",
|
|
31
32
|
"build:tsc": "tsc --project ./tsconfig.json",
|
|
32
|
-
"clean": "rimraf coverage
|
|
33
|
+
"clean": "rimraf coverage dist .tmp",
|
|
33
34
|
"watch": "pnpm run build:tsc -w"
|
|
34
35
|
}
|
|
35
36
|
}
|