@unotest/web 0.48.0 → 0.49.0
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/.claude/skills/write-e2e-test/SKILL.md +4 -0
- package/.claude/skills/write-e2e-test-ground/SKILL.md +4 -0
- package/CHANGELOG.md +95 -3
- package/README.md +2 -1
- package/dist/config/schema.d.ts +33 -12
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +18 -1
- package/dist/dsl/index.js +1 -1
- package/dist/dsl/web-dsl-language-service.d.ts +1 -1
- package/dist/dsl/web-dsl-language-service.js +1 -1
- package/dist/{linter-BWSAYBQy.d.ts → linter-RrjB1n9R.d.ts} +5 -0
- package/dist/mcp/server.js +1 -1
- package/dist/runner/cli.d.ts +1 -1
- package/dist/runner/cli.js +1 -1
- package/dist/runner/init/chrome-probe.js +1 -1
- package/dist/runner/init.d.ts +6 -1
- package/dist/runner/init.js +1 -1
- package/dist/runner/install-chromium.js +1 -1
- package/dist/runner/prepare-fix.js +1 -1
- package/dist/runner/scaffold-workspace.js +1 -1
- package/dist/runner/serve-fixture.js +1 -1
- package/dist/runner/web-runner-adapter.js +1 -1
- package/guides/dsl-reference.md +55 -17
- package/package.json +8 -8
- package/src/mcp/prompts/agent-test-author.md +10 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unotest/web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
4
4
|
"description": "AI-native E2E testing for web applications. MCP server (run_test / step / resume / inspect_runtime / agent_fix) + CLI runner + JavaScript DSL scenarios on a sandboxed AST engine + semantic DOM snapshots.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -85,18 +85,18 @@
|
|
|
85
85
|
"tsx": "^4.19.2",
|
|
86
86
|
"yaml": "^2.6.0",
|
|
87
87
|
"zod": "^3.23.8",
|
|
88
|
-
"@unotest/core": "^0.
|
|
89
|
-
"@unotest/protocol": "^0.
|
|
90
|
-
"@unotest/dsl": "^0.
|
|
91
|
-
"@unotest/grounder-client": "^0.
|
|
92
|
-
"@unotest/viewer": "^0.
|
|
88
|
+
"@unotest/core": "^0.49.0",
|
|
89
|
+
"@unotest/protocol": "^0.49.0",
|
|
90
|
+
"@unotest/dsl": "^0.49.0",
|
|
91
|
+
"@unotest/grounder-client": "^0.49.0",
|
|
92
|
+
"@unotest/viewer": "^0.49.0"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@types/node": "^22.10.0",
|
|
96
96
|
"javascript-obfuscator": "^4.1.1",
|
|
97
97
|
"tsup": "^8.5.1",
|
|
98
98
|
"typescript": "^5.7.2",
|
|
99
|
-
"@unotest/
|
|
100
|
-
"@unotest/
|
|
99
|
+
"@unotest/grounder": "^0.49.0",
|
|
100
|
+
"@unotest/judge": "^0.49.0"
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -49,13 +49,16 @@ The linter rejects a test in the e2e root (`lint:scenario-in-root`), and
|
|
|
49
49
|
from the area of the app under test. Shared helpers live in
|
|
50
50
|
`unotest/e2e/_helpers/`; `_template.js` is a starting point to copy.
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
A file may hold several `test_*` — the tests of one feature. Each test is
|
|
53
|
+
its own run: its own browser context, retry, verdict and row in the viewer,
|
|
54
|
+
under the file. Functions of the file are shared between them; state is
|
|
55
|
+
not — every test starts from a fresh context. `run_test` plays one test:
|
|
56
|
+
in a file of several, name it (`run_test {name, test: "test_…"}`); without
|
|
57
|
+
it the reply is `test_required` with the file's tests. Many cases of one
|
|
58
|
+
behaviour can still be ONE test with a loop and
|
|
59
|
+
`step("…", {tag: id}, () => { … })` per case — `step.soft` when a failed
|
|
60
|
+
case must not stop the run; shared journeys are `flow_*` helpers in
|
|
61
|
+
`unotest/e2e/_helpers/`.
|
|
59
62
|
|
|
60
63
|
## Locator hierarchy (D-22, hard rule)
|
|
61
64
|
|