@wopee-io/wopee.wdio 5.1.0 → 5.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/README.md +52 -2
- package/build/utils/versionMetadata.js +2 -2
- package/package.json +24 -17
package/README.md
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Wopee.io Visual Testing for WebdriverIO
|
|
2
|
+
|
|
3
|
+
Catch visual regressions in your [WebdriverIO](https://webdriver.io/) tests with AI-powered autonomous test maintenance by [Wopee.io](https://wopee.io).
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@wopee-io/wopee.wdio)
|
|
6
|
+
[](https://www.npmjs.com/package/@wopee-io/wopee.wdio)
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install @wopee-io/wopee.wdio
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Quick Start
|
|
15
|
+
|
|
16
|
+
Add the Wopee service to your WebdriverIO config:
|
|
17
|
+
|
|
18
|
+
```js
|
|
19
|
+
// wdio.conf.js
|
|
20
|
+
export const config = {
|
|
21
|
+
services: [
|
|
22
|
+
[
|
|
23
|
+
'@wopee-io/wopee.wdio',
|
|
24
|
+
{
|
|
25
|
+
apiUrl: 'https://api.wopee.io',
|
|
26
|
+
apiKey: process.env.WOPEE_API_KEY,
|
|
27
|
+
projectUuid: process.env.WOPEE_PROJECT_UUID,
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
],
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Take visual snapshots in your tests:
|
|
35
|
+
|
|
36
|
+
```js
|
|
37
|
+
describe('Visual Testing', () => {
|
|
38
|
+
it('should match the homepage', async () => {
|
|
39
|
+
await browser.url('https://example.com');
|
|
40
|
+
await browser.wopeeTrack('homepage');
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
```
|
|
2
44
|
|
|
3
45
|
## Documentation
|
|
4
46
|
|
|
5
|
-
|
|
47
|
+
- [Configuration](https://docs.wopee.io/webdriverio-visual-testing/) -- full setup guide and configuration options
|
|
48
|
+
- [Commands](docs/commands.md) -- available WebdriverIO commands
|
|
49
|
+
- [Mobile Native](docs/mobile_native.md) -- mobile app testing support
|
|
50
|
+
|
|
51
|
+
## Links
|
|
52
|
+
|
|
53
|
+
- [Documentation](https://docs.wopee.io/webdriverio-visual-testing/)
|
|
54
|
+
- [Wopee.io Platform](https://cmd.wopee.io)
|
|
55
|
+
- [Wopee.io Website](https://wopee.io)
|
|
@@ -6,8 +6,8 @@ import { execSync } from 'child_process';
|
|
|
6
6
|
* @param logger - WebdriverIO Logger instance for logging.
|
|
7
7
|
*/
|
|
8
8
|
const logVersionMetadata = (logger) => {
|
|
9
|
-
let hash = "
|
|
10
|
-
let version = "5.
|
|
9
|
+
let hash = "828746d119a7e4401c8b11ae535e056ba56ae97c"
|
|
10
|
+
let version = "5.2.2"
|
|
11
11
|
// If version is not "__LOCAL__," get it from npm package
|
|
12
12
|
if (version === '__LOCAL__') {
|
|
13
13
|
version = process.env['npm_package_version'] || '__LOCAL__';
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wopee-io/wopee.wdio",
|
|
3
|
-
"version": "5.
|
|
4
|
-
"description": "Wopee
|
|
3
|
+
"version": "5.2.2",
|
|
4
|
+
"description": "WebdriverIO visual testing plugin by Wopee.io — catch visual regressions with AI-powered autonomous test maintenance",
|
|
5
|
+
"homepage": "https://docs.wopee.io/webdriverio-visual-testing/",
|
|
5
6
|
"scripts": {
|
|
6
7
|
"eslint": "npx eslint ./lib",
|
|
7
8
|
"prettier": "npx prettier -w .",
|
|
@@ -9,16 +10,22 @@
|
|
|
9
10
|
"wdio:smoke:android:browser": "npx wdio run ./test/dev/wdio.browser.conf.ts"
|
|
10
11
|
},
|
|
11
12
|
"keywords": [
|
|
13
|
+
"webdriverio",
|
|
14
|
+
"wdio",
|
|
12
15
|
"visual testing",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
16
|
+
"visual regression",
|
|
17
|
+
"screenshot testing",
|
|
18
|
+
"ui testing",
|
|
19
|
+
"test automation",
|
|
20
|
+
"wopee",
|
|
21
|
+
"wopee.io",
|
|
22
|
+
"webdriverio plugin",
|
|
23
|
+
"visual comparison",
|
|
24
|
+
"autonomous testing",
|
|
25
|
+
"ai testing"
|
|
15
26
|
],
|
|
16
27
|
"author": "Ondrej Winter <me@ondrejwinter.com>",
|
|
17
28
|
"license": "PROPRIETARY",
|
|
18
|
-
"repository": {
|
|
19
|
-
"type": "git",
|
|
20
|
-
"url": "git+ssh://git@github.com/autonomous-testing/wopee.wdio.git"
|
|
21
|
-
},
|
|
22
29
|
"publishConfig": {
|
|
23
30
|
"access": "public",
|
|
24
31
|
"registry": "https://registry.npmjs.org",
|
|
@@ -43,7 +50,7 @@
|
|
|
43
50
|
"@commitlint/cli": "^19.2.1",
|
|
44
51
|
"@commitlint/config-angular": "^19.1.0",
|
|
45
52
|
"@semantic-release/changelog": "^6.0.3",
|
|
46
|
-
"@semantic-release/exec": "^
|
|
53
|
+
"@semantic-release/exec": "^7.0.0",
|
|
47
54
|
"@semantic-release/git": "^10.0.1",
|
|
48
55
|
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
49
56
|
"@types/debug": "^4.1.12",
|
|
@@ -52,13 +59,13 @@
|
|
|
52
59
|
"@types/mocha": "^10.0.6",
|
|
53
60
|
"@types/node": "^20.12.7",
|
|
54
61
|
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
55
|
-
"@wdio/cli": "^8.
|
|
56
|
-
"@wdio/globals": "^8.
|
|
57
|
-
"@wdio/local-runner": "^8.
|
|
58
|
-
"@wdio/logger": "^8.
|
|
59
|
-
"@wdio/mocha-framework": "^8.
|
|
60
|
-
"@wdio/spec-reporter": "^8.
|
|
61
|
-
"@wdio/types": "^8.
|
|
62
|
+
"@wdio/cli": "^8.46.0",
|
|
63
|
+
"@wdio/globals": "^8.46.0",
|
|
64
|
+
"@wdio/local-runner": "^8.46.0",
|
|
65
|
+
"@wdio/logger": "^8.38.0",
|
|
66
|
+
"@wdio/mocha-framework": "^8.46.0",
|
|
67
|
+
"@wdio/spec-reporter": "^8.43.0",
|
|
68
|
+
"@wdio/types": "^8.41.0",
|
|
62
69
|
"appium-chromedriver": "^5.6.31",
|
|
63
70
|
"appium-installer": "^3.0.0",
|
|
64
71
|
"appium-xcuitest-driver": "^7.15.2",
|
|
@@ -69,7 +76,7 @@
|
|
|
69
76
|
"eslint-plugin-prettier": "^5.1.3",
|
|
70
77
|
"prettier": "^3.2.5",
|
|
71
78
|
"rimraf": "^5.0.5",
|
|
72
|
-
"semantic-release": "^
|
|
79
|
+
"semantic-release": "^24.2.0",
|
|
73
80
|
"ts-node": "^10.9.2",
|
|
74
81
|
"typescript": "^5.4.5"
|
|
75
82
|
},
|