@testivai/witness-webdriverio 0.2.14 → 0.3.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/README.md +3 -4
- package/dist/service.d.ts +2 -5
- package/dist/service.js +2 -10
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @testivai/witness-webdriverio
|
|
2
2
|
|
|
3
|
-
WebdriverIO adapter for [TestivAI Witness](https://github.com/
|
|
3
|
+
WebdriverIO adapter for [TestivAI Witness](https://github.com/testivai/testivai-oss) — local-first visual regression testing with pixel + DOM comparison. No account required.
|
|
4
4
|
|
|
5
5
|
Pairs with `@testivai/witness` (the local CLI + diff engine + HTML report) and shares the `.testivai/baselines/` layout used by `@testivai/witness-playwright`. Switching between Playwright and WebdriverIO produces the same baselines, the same report, and the same approval workflow.
|
|
6
6
|
|
|
@@ -24,7 +24,6 @@ Create `.testivai/config.json` at your project root:
|
|
|
24
24
|
|
|
25
25
|
```json
|
|
26
26
|
{
|
|
27
|
-
"mode": "local",
|
|
28
27
|
"threshold": 0.1,
|
|
29
28
|
"reportDir": "visual-report",
|
|
30
29
|
"autoOpen": false,
|
|
@@ -138,8 +137,8 @@ Class registered as a WDIO service. Implements `onComplete`.
|
|
|
138
137
|
|
|
139
138
|
## Links
|
|
140
139
|
|
|
141
|
-
- Repo: https://github.com/
|
|
142
|
-
- Issues: https://github.com/
|
|
140
|
+
- Repo: https://github.com/testivai/testivai-oss
|
|
141
|
+
- Issues: https://github.com/testivai/testivai-oss/issues
|
|
143
142
|
|
|
144
143
|
## License
|
|
145
144
|
|
package/dist/service.d.ts
CHANGED
|
@@ -11,11 +11,8 @@
|
|
|
11
11
|
* // ...
|
|
12
12
|
* };
|
|
13
13
|
*
|
|
14
|
-
* The service does ONE thing in `onComplete`:
|
|
15
|
-
*
|
|
16
|
-
* cloud upload path in this iteration — the OSS goal is standalone-
|
|
17
|
-
* complete local mode. If a future cloud upload is added, it slots in
|
|
18
|
-
* here without changing the witness() capture function.
|
|
14
|
+
* The service does ONE thing in `onComplete`: call `generateReport()`
|
|
15
|
+
* from @testivai/witness/report.
|
|
19
16
|
*/
|
|
20
17
|
import type { TestivaiServiceOptions } from './types';
|
|
21
18
|
export declare class TestivaiService {
|
package/dist/service.js
CHANGED
|
@@ -12,11 +12,8 @@
|
|
|
12
12
|
* // ...
|
|
13
13
|
* };
|
|
14
14
|
*
|
|
15
|
-
* The service does ONE thing in `onComplete`:
|
|
16
|
-
*
|
|
17
|
-
* cloud upload path in this iteration — the OSS goal is standalone-
|
|
18
|
-
* complete local mode. If a future cloud upload is added, it slots in
|
|
19
|
-
* here without changing the witness() capture function.
|
|
15
|
+
* The service does ONE thing in `onComplete`: call `generateReport()`
|
|
16
|
+
* from @testivai/witness/report.
|
|
20
17
|
*/
|
|
21
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
19
|
exports.TestivaiService = void 0;
|
|
@@ -38,11 +35,6 @@ class TestivaiService {
|
|
|
38
35
|
console.log(`[testivai] ${msg}`);
|
|
39
36
|
}
|
|
40
37
|
};
|
|
41
|
-
if (!(0, witness_1.isLocalMode)(projectRoot)) {
|
|
42
|
-
log('Cloud mode is not yet supported by @testivai/witness-webdriverio — skipping report generation. ' +
|
|
43
|
-
'To enable local mode, create .testivai/config.json with {"mode":"local"}.');
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
38
|
try {
|
|
47
39
|
const reportData = (0, witness_1.generateReport)({
|
|
48
40
|
projectRoot,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testivai/witness-webdriverio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "WebdriverIO adapter for TestivAI Witness — local-first visual regression with pixel + DOM comparison",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
|
30
|
-
"url": "git+https://github.com/
|
|
30
|
+
"url": "git+https://github.com/testivai/testivai-oss.git",
|
|
31
31
|
"directory": "packages/webdriverio"
|
|
32
32
|
},
|
|
33
33
|
"bugs": {
|
|
34
|
-
"url": "https://github.com/
|
|
34
|
+
"url": "https://github.com/testivai/testivai-oss/issues"
|
|
35
35
|
},
|
|
36
|
-
"homepage": "https://github.com/
|
|
36
|
+
"homepage": "https://github.com/testivai/testivai-oss/tree/main/packages/webdriverio#readme",
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@testivai/witness": "
|
|
57
|
+
"@testivai/witness": "2.0.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/jest": "^30.0.0",
|
|
61
61
|
"@types/node": "^20.0.0",
|
|
62
62
|
"jest": "^30.4.2",
|
|
63
|
-
"ts-jest": "^29.4.
|
|
63
|
+
"ts-jest": "^29.4.12",
|
|
64
64
|
"typescript": "^6.0.3",
|
|
65
|
-
"webdriverio": "^9.
|
|
65
|
+
"webdriverio": "^9.30.1"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build": "tsc",
|