@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unotest/web",
3
- "version": "0.48.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.48.0",
89
- "@unotest/protocol": "^0.48.0",
90
- "@unotest/dsl": "^0.48.0",
91
- "@unotest/grounder-client": "^0.48.0",
92
- "@unotest/viewer": "^0.48.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/judge": "^0.48.0",
100
- "@unotest/grounder": "^0.48.0"
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
- One `test_*` per file. The file is what a collection runs and what the viewer
53
- shows (its Steps tree projects the run onto the first `test_*`; any other
54
- runs unseen). Several cases of one feature are ONE test with a loop and
55
- `step("…", {tag: id}, () => { … })` per case — `step.soft` when a failed case
56
- must not stop the run; shared journeys are `flow_*` helpers in
57
- `unotest/e2e/_helpers/`. A second `test_*` is flagged by
58
- `lint:one-test-per-file` (a warning today, an error in a later release).
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