@unotest/web 0.52.1 → 0.54.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/CHANGELOG.md +205 -4
- package/README.md +28 -13
- package/dist/config/schema.d.ts +15 -12
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.d.ts +7 -2
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +333 -92
- package/dist/dsl/index.js +1 -1
- package/dist/dsl/v8/scenario-worker.js +1 -1
- package/dist/dsl/web-dsl-language-service.d.ts +11 -3
- package/dist/dsl/web-dsl-language-service.js +1 -1
- package/dist/inspection/page-inject.d.ts +13 -5
- package/dist/inspection/page-inject.js +14 -2
- package/dist/{interfaces-BSGmF_Tv.d.ts → interfaces-BU-PQbt4.d.ts} +48 -2
- package/dist/{linter-CYRlmOLy.d.ts → linter-BpaIstU3.d.ts} +11 -1
- 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 +1 -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/agent-integration.md +1 -1
- package/guides/dsl-reference.md +485 -40
- package/llms.txt +14 -9
- package/package.json +13 -8
- package/src/mcp/prompts/agent-test-author.md +3 -1
- package/types/unotest-dsl.d.ts +52 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,213 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.54.0] - 2026-10-24
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5ffa98d: New: `box create --env <name>` sends only the environments named; repeat it for several, e.g. `npx @unotest/web box create --env staging --env prod`. replaces: deleting a `unotest/.env.<name>` overlay before renting so it would not be sent.
|
|
8
|
+
|
|
9
|
+
Changed: a box runs only your tests and reaches your app at a public address, and the CLI now says so before anything is rented. `box create` leaves out an environment whose `APP_BASE_URL` is `localhost`, a loopback or private-network address (`127.x`, `10.x`, `172.16-31.x`, `192.168.x`, `100.64.x`), a link-local address or a name only a local network resolves (`*.local`, `*.localhost`, a name without a dot such as a compose service), and prints a note naming the environment and the reason. When no environment is left, it refuses with exit 2 and nothing is created or charged. A named `--env` that cannot be served is refused the same way rather than dropped. `env push` sends the values of such an environment but not its target, with the same note.
|
|
10
|
+
|
|
11
|
+
BREAKING: `env set <env> APP_BASE_URL <url>` and the MCP tool `cloud_box_create` now refuse a target of that kind instead of storing it. `cloud_box_create` answers `{state: 'unreachable-target'}` with each environment and reason, before the cloud is asked for anything.
|
|
12
|
+
|
|
13
|
+
Migration: give the environment a public address (a staging deploy, a tunnel with a public hostname) and set that as its `APP_BASE_URL`, or leave the environment out of `envs` and `--env`.
|
|
14
|
+
|
|
15
|
+
- 70a77a9: New: `npx @unotest/web init --ci github` writes `.github/workflows/unotest.yml` at the root of your git repository. Its steps run in `unotest/`: on every push it runs `npm ci`, so the version pinned in `unotest/package.json` is used, and then `npx @unotest/web bundle push --run --collection examples --json`, with the box address and push token read from the repository secrets `UNOTEST_BOX_URL` and `UNOTEST_BOX_TOKEN`. In a monorepo the steps run in the project's `unotest/`. Outside a git repository no workflow is written. A re-run leaves the file as it is; `--force` takes the template again and keeps yours as `.bak`. replaces: copying the minimal CI job from the docs and adapting it by hand.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 88807f9: Fixed: the first `bundle push` after `box create` no longer warns that the repository "maps to no project on this box". `box create` (and the `cloud_box_create` MCP tool) now maps the project's git `origin`, without credentials, to the box's project; with no git or no origin the create is unchanged. The warning itself no longer sends a box's owner to an operator.
|
|
20
|
+
- 8eeaa67: Fixed: `lint` no longer reports `lint:external-variable-undeclared` for the own name of a class or function expression used inside it (`const Q = class R { m() { return R } }`, `const f = function G(n) { return n ? G(n - 1) : 0 }`). The same name outside the expression is still checked.
|
|
21
|
+
- f6f0c70: Fixed: the line `lint` prints when it skips the type check now says where `typescript` is looked for — next to `@unotest/web`, in the suite — and how to install it there: `cd unotest && npm i -D typescript@5`. A box installs the suite alone, so that is where `typescript` belongs. `init` also lists `unotest/unotest.config.mjs` under "Files:" with the rest of what it writes; the config's outcome is still the line printed after the browser question.
|
|
22
|
+
- ecf2f35: Fixed: `npx @unotest/web api <word>` and the MCP tool `dsl_lookup` find a word only where a word begins. `api lint` no longer prints `scrollIntoView` ("scrol**lint**oView"), and "sort table rows" no longer suggests `dragAndDrop`. A task without a negation no longer finds a check by the words it negates: "wait until the success toast appears" gives `assertVisible`, `waitFor`, `waitUntil`, not `assertNeverAppears`; "an error toast never shows" still finds it. `dsl_lookup` now returns up to four functions instead of three, and every reply carries `commands`: where the CLI commands are listed, since a task such as "a typo in a variable name" is what `lint` reports. `api` says the same when no function matches.
|
|
23
|
+
- eec637d: Fixed: a run of a whole file plays its `test_*` functions only. A `flow_*` function next to them is no longer played as a run of its own with no arguments, which failed it and added a failure the file did not have. A file with no tests still plays its flows. `--test <name>` picks a test as before.
|
|
24
|
+
- e32b2ba: Fixed: `init --force` (including `init --ci github --force`) no longer rewrites `unotest/package.json` from the template, which dropped every dev dependency except `@unotest/web` so the next `npm install` removed them. The existing file is now only completed with what the template has and the file lacks; your dependencies and your `@unotest/web` pin stay, and nothing changes when nothing is missing. A file that is not valid JSON is refused with its reason instead of being replaced.
|
|
25
|
+
- c31d64c: Fixed: `init` run from inside the suite (`cd unotest && npx @unotest/web init --ci github`) no longer creates a second suite in `unotest/unotest/` with a workflow pointing at it. Like every other command, it now works on the project the suite belongs to; in a directory with no suite above it, `init` sets the project up in place, as before. An explicit `[target]` is unchanged.
|
|
26
|
+
- 158e5b5: Fixed: the MCP server now sees a `login` made after it started. Signing in, signing out or switching accounts in another terminal takes effect on the next cloud tool call, without restarting the agent session. Until then the tools answer `not-logged-in` with the login command.
|
|
27
|
+
- b2fb2d0: Fixed: a `linter.rules` entry for `validator:implicit-declaration` or `validator:unsupported-statement` no longer loses its level. `lint` now says which rule replaced it (`validator:implicit-global`, `validator:top-level-statement`) and asks to rename the entry. Until then the old entry's level applies to the new rule, unless the config sets the new rule too. A removed rule with no successor still gets the old "reports nothing" warning.
|
|
28
|
+
- c7c51dc: Fixed: the hint `schedules` prints for running a test entry now reads `npx @unotest/web e2e <feature>/<name> --scheduled`. The old `e2e <name>` pointed at a file in the root of `unotest/e2e/`, which lint rejects.
|
|
29
|
+
- 83b2473: Fixed: a `teardown(…)` or `step(…)` written without its label or its function, such as `teardown(() => { … })`, stops the test at that line with `teardown is written teardown("label", () => { … })`, as it did before 0.52.0. It used to show the function's internal code as the step's name and fail later with `… is not a function`.
|
|
30
|
+
- b0a7fe2: Fixed: with `displayMode` set, WebKit pages see `navigator.standalone` on Linux too, as the reference says — `true` for `standalone`, `false` for the other modes. Before, it was set only where the engine already had the property, which Playwright's WebKit has on macOS and not on Linux, so runs on a box got no `navigator.standalone`. Chromium still has none; without `displayMode` the browser's own is left as is.
|
|
31
|
+
- Updated dependencies [eec637d]
|
|
32
|
+
- Updated dependencies [83b2473]
|
|
33
|
+
- @unotest/protocol@0.54.0
|
|
34
|
+
- @unotest/dsl@0.54.0
|
|
35
|
+
- @unotest/viewer@0.54.0
|
|
36
|
+
- @unotest/core@0.54.0
|
|
37
|
+
- @unotest/grounder-client@0.54.0
|
|
38
|
+
|
|
39
|
+
## [0.53.0] - 2026-10-23
|
|
40
|
+
|
|
41
|
+
### Minor Changes
|
|
42
|
+
|
|
43
|
+
- f8a011e: Changed: the key that created a box now deletes it at once, without waiting for a person in the cabinet. Before, every delete by an agent's key waited for an approval, and one nobody answered within ten minutes left the box running and charging. Deleting a box created by another key still waits for a person, as do boxes made in the dashboard and boxes created before this change. A new `login` mints a new key, so after logging in again a delete waits too. The account's owner gets an email that names the key that deleted the box. `box destroy` prints when billing stopped (`destroyedAt` in `--json` and in the `cloud_box_destroy` answer). When a delete has to wait, the CLI and the MCP tool say why.
|
|
44
|
+
- 6b82939: New: `newContext({cdpEndpoint})` joins a Chrome that is already running with remote debugging — the browser inside a VM, for example — as another context of the test. The test then drives it with the same steps as its own browser, and the end of the test only disconnects:
|
|
45
|
+
|
|
46
|
+
```js
|
|
47
|
+
function test_vm_browser() {
|
|
48
|
+
step("Join the VM's browser", () => {
|
|
49
|
+
const vm = vmClone("macos-base");
|
|
50
|
+
const ip = vmRun(vm);
|
|
51
|
+
newContext({ cdpEndpoint: `http://${ip}:9222` });
|
|
52
|
+
goto("https://app.example.com");
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
An endpoint nothing answers on fails within 10 seconds with one line that names it. It cannot be combined with `profile`.
|
|
58
|
+
|
|
59
|
+
replaces: nothing
|
|
60
|
+
|
|
61
|
+
- de48435: Changed: a test that never uses a page no longer starts a browser. The browser opens at the first step that needs one, so a test that only drives a terminal, works with values or files, calls an API or an MCP server, or runs a VM starts and ends without Chromium. A browser that is not installed is now reported at that first browser step, with the same install command. The failure bundle of a test that never opened a page holds the error and the terminal, and says in `screenshot-error.txt` and `page-html-error.txt` that there was no page to capture.
|
|
62
|
+
- 8d4109a: New: `networkEntries({ since?, glob? })` returns what the active page requested and was answered, so a scenario can check the status and the body of the response a click caused. It is recorded from the moment the page opens, 500 requests per context; `fetch` and `xhr` responses of a text or JSON type come with `responseJson` and `responseText` (up to 64 KB), and `requestJson` is the request body read as JSON. A mask starting with `/` is read on the site's origin.
|
|
63
|
+
|
|
64
|
+
```js
|
|
65
|
+
click(getByRole("button", { name: "Verify" }));
|
|
66
|
+
waitUntil(() => networkEntries({ glob: "/api/contacts/verify*" }).length > 0);
|
|
67
|
+
const answer = networkEntries({ glob: "/api/contacts/verify*" })[0];
|
|
68
|
+
assertEqual(answer.status, 200);
|
|
69
|
+
assertEqual(answer.responseJson.kind, "mobile");
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Changed: with `UNOTEST_NETWORK` on, `network.json` now holds the last 500 requests of a context instead of 2000.
|
|
73
|
+
|
|
74
|
+
replaces: evaluate with a fetch wrapper
|
|
75
|
+
|
|
76
|
+
- 12db2ae: New: `openTerminal()` with no app opens the `shell` terminal — your shell on a pseudo-terminal, its output read through a terminal emulator, with no app window. Nothing takes the keyboard or the screen, so terminal tests run on Linux, in CI and in the Playwright Docker image as well as on a Mac. Every terminal step works on it: `terminalType` and `terminalPress` send what an xterm sends (the arrows follow the program's cursor mode, `Alt` is ESC before the key; `Meta` is refused), `terminalResize` reaches the program, `terminalScreenshot` draws the screen in its colours with the headless Chromium, and `terminalClipboardRead` / `terminalClipboardWrite` use the terminal's own OSC 52 clipboard. `openTerminal('Terminal')` and `openTerminal('iTerm2')` open a macOS window as before. The `shell` terminal needs `node-pty`, now an optional dependency with prebuilt binaries for macOS, Linux (glibc, x64 and arm64) and Windows; it is loaded only when a test opens one, and where it did not install the step names the command that installs it. The viewer's docked terminal moves to the same `node-pty` version and loader.
|
|
77
|
+
|
|
78
|
+
```js
|
|
79
|
+
openTerminal();
|
|
80
|
+
terminalType("my-cli --version");
|
|
81
|
+
terminalPress("Enter");
|
|
82
|
+
terminalWaitForText(/my-cli \d+\.\d+/);
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
replaces: a Terminal.app or iTerm2 window on a Mac that holds the keyboard; nothing on Linux or in CI
|
|
86
|
+
|
|
87
|
+
- 4970a08: New: `openTerminal('ssh', {host: 'user@address'})` opens a terminal session on a Linux host with no GUI — a VM, a server — over `ssh -tt`, and the same `terminal*` steps drive it. A `[Y/n]`, a device code or a password prompt of the host reaches the scenario as it reaches a person. The key comes from your ssh agent or `~/.ssh`; a password is never passed, and a login that fails shows on the screen.
|
|
88
|
+
|
|
89
|
+
```js
|
|
90
|
+
openTerminal("ssh", { host: "admin@10.0.0.5", cols: 120 });
|
|
91
|
+
terminalType("apt-get install -y htop");
|
|
92
|
+
terminalWaitForText(/Do you want to continue\? \[Y\/n\]/);
|
|
93
|
+
terminalType("y");
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
replaces: nothing
|
|
97
|
+
|
|
98
|
+
- 3ce33e1: New: `terminalClipboardWrite(text)` and `terminalClipboardRead()` reach the clipboard of the machine the active terminal window is on, this Mac or the VM of `{host}`. A token printed in the VM's terminal goes into a field of the page under test, and a value from the page goes into the VM's shell. The text is passed as an argument, marked concealed and transient, and never logged.
|
|
99
|
+
|
|
100
|
+
```js
|
|
101
|
+
openTerminal("Terminal", { host: "admin@192.168.64.38" });
|
|
102
|
+
terminalType("my-cli token | pbcopy");
|
|
103
|
+
terminalPress("Enter");
|
|
104
|
+
fill(getByLabel("Token"), terminalClipboardRead());
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
replaces: nothing
|
|
108
|
+
|
|
109
|
+
- 881672d: New: `terminalWaitForExit({code?, timeoutMs?})` waits for the shell of a terminal to end and returns how: `{exitCode, signal}`, where `signal` is the signal's name such as `SIGTERM`, or `null`. A test of a command-line tool can now check its exit code, not only what it printed:
|
|
110
|
+
|
|
111
|
+
```js
|
|
112
|
+
function test_cli_rejects_a_bad_flag() {
|
|
113
|
+
step("The tool exits with 2", () => {
|
|
114
|
+
openTerminal();
|
|
115
|
+
terminalType("my-cli --nope; exit $?");
|
|
116
|
+
terminalPress("Enter");
|
|
117
|
+
terminalWaitForExit({ code: 2 });
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
With `code`, a different exit code fails with both codes and the end of the screen. After the exit, typing into that terminal is refused with a message that says to open another one. A Terminal or iTerm2 window cannot report the exit, and the call says so.
|
|
123
|
+
|
|
124
|
+
replaces: nothing
|
|
125
|
+
|
|
126
|
+
- b83ec02: New: `openTerminal()` takes the keys that set up how its shell starts — `env`, `cwd`, `shell`, `cols`, `rows`, `term`, `locale` and `cleanProfile` — so a run does not depend on the machine it is on. `cleanProfile: true` starts the shell without your rc files, with only `PATH`, `HOME`, `USER` and `TMPDIR` of the runner's environment, and a `$ ` prompt:
|
|
127
|
+
|
|
128
|
+
```js
|
|
129
|
+
openTerminal("shell", {
|
|
130
|
+
cleanProfile: true,
|
|
131
|
+
cwd: "unotest",
|
|
132
|
+
env: { GREETING: "hi" },
|
|
133
|
+
cols: 100,
|
|
134
|
+
rows: 30,
|
|
135
|
+
});
|
|
136
|
+
terminalType("echo $GREETING $COLUMNS");
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
A GUI terminal window takes none of these keys and says so. A misspelt key is refused with the keys the call reads.
|
|
140
|
+
|
|
141
|
+
replaces: setting up the shell by hand with terminalType (cd, export, stty) before the test
|
|
142
|
+
|
|
143
|
+
- 305331b: New: `terminalWaitForText` returns what it saw and `terminalText()` reads the whole terminal screen, so a value shown in a terminal can go into the test. A regex gives the match array (`[0]` the match, then the groups), a string gives the first screen row that holds it, and `{not: true}` gives `null`. For example, a device code printed by a CLI goes into a field on the page:
|
|
144
|
+
|
|
145
|
+
```js
|
|
146
|
+
const m = terminalWaitForText(/code: ([A-Z]{4}-\d{4})/);
|
|
147
|
+
fill(getByLabel("Device code"), m[1]);
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
replaces: terminalScreenshot + eyes
|
|
151
|
+
|
|
152
|
+
- bb6b9dc: New: `newContext({profile: '<dir>'})` opens a second browser context on a browser profile of its own, in the same test. Two devices of one app can now run side by side, each keeping its own cookies and storage:
|
|
153
|
+
|
|
154
|
+
```js
|
|
155
|
+
function test_two_devices() {
|
|
156
|
+
let a;
|
|
157
|
+
step("Device A opens the pairing page", () => {
|
|
158
|
+
a = newContext({ profile: ".profiles/device-a" });
|
|
159
|
+
goto("/pair");
|
|
160
|
+
});
|
|
161
|
+
step("Device B opens it too", () => {
|
|
162
|
+
newContext({ profile: ".profiles/device-b" });
|
|
163
|
+
goto("/pair");
|
|
164
|
+
});
|
|
165
|
+
step("Back to A, which kept what it stored", () => {
|
|
166
|
+
setContext(a);
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
A relative directory starts at the project root, like `launch.userDataDir`; it is made if it is missing and is never removed. It works in a run on `launch.userDataDir` and in a run without one. The same directory twice in a run is refused with a message that names it. `newContext()` without options behaves as before.
|
|
172
|
+
|
|
173
|
+
replaces: UNOTEST_NO_QUEUE=1 and two e2e processes
|
|
174
|
+
|
|
175
|
+
### Patch Changes
|
|
176
|
+
|
|
177
|
+
- 8bb4fc4: Fixed: `lint:wait-exceeds-test-budget` now reports in the viewer's editor and in the ESLint plugin as well, not only in `lint`, `e2e` and the MCP tools. The editor takes the budget from the project's config when the viewer starts, so a changed `testTimeoutMs` shows after the viewer is restarted.
|
|
178
|
+
- 5066f51: Fixed: with `UNOTEST_CONSOLE=1` a run's `console.json` now holds the console of every browser context of the test, each line with its `contextIndex`, not only the active one. `box_run_download` and `box run --download` also unpack a passing run's `console.json` and the full texts of its long notes into `.unotest/box/<runId>/`, and the reply names that directory as `capturesDir`.
|
|
179
|
+
- c565c0b: Fixed: `note()` and `log()` no longer lose the part of a long value past 4 KB. The journal still keeps the first 4 KB, and the whole value (secrets masked, up to 1 MB) is now written to a file in the run directory. A cut value in `--notes` output and in a failed step's notes ends with `… (+N chars, full: <path>)`, and the event carries `full` and `fullLength`.
|
|
180
|
+
- c3b172e: Fixed: a terminal step in a VM (`openTerminal(app, {host})`) no longer fails with "no answer from the terminal controller" and then runs later. A step the controller does not answer in time is withdrawn, and the error says what holds it ("busy with `osascript` for 40 s — Terminal in the VM may be held by a dialog or a sheet; close it, or restart the VM"). A program that runs past its step's time is killed in the VM, so it does not hold the next steps, and a controller that died is started again, with the waiting step sent once more.
|
|
181
|
+
- d4e1ef2: Fixed: a local terminal step no longer fails with "Terminal is not in front" when macOS refuses to activate Terminal for a process that is not the current app. After a second the run asks System Events to bring the window to the front, and if neither works in 2 s the error names both attempts and the app that kept the focus. A window frame that macOS refuses because Screen Recording is not allowed now says so, naming the app to allow under System Settings → Privacy & Security → Screen & System Audio Recording, and that the other terminal steps work without it.
|
|
182
|
+
- 5578824: Fixed: a terminal frame no longer carries a secret out of the run. When a value registered in `unotest/.secrets` is on the terminal screen, `terminalScreenshot()` saves the screen text with the secret replaced by `‹secret:NAME›` (a `.txt`, returned as the step's path) instead of the picture, and the viewer shows that text in place of the image. A failed terminal test keeps no `terminal.png` in that case and says why in `terminal-frame-error.txt`. A secret the terminal wrapped onto the next row is found and masked too, in `terminal.txt` as well, and in what `terminalText()` and `terminalWaitForText` hand to the scenario, so a `note()` or `log()` of the screen shows no part of it. Whether a wait or `terminalAssertText` sees the text is still decided on the screen as it is: an assertion that a token is `{not: true}` shown fails while it is, wrapped onto the next row or not. Only registered values are masked: a token that merely looks like one is not known to be secret and stays visible, so register every credential a terminal test may print.
|
|
183
|
+
- f2e349d: Fixed: when a test ends, its terminal windows no longer leave their programs running. The processes on a window's tty and everything they started get HUP, then KILL if they ignore it (a `trap '' HUP`, a program with its own handler), before the window closes; a process nothing stops fails the test's end with its pid and command. `closeTerminal()` does the same. The step's record notes what was stopped, e.g. `closed window 0 on admin@192.168.64.38; stopped 4312 sh -c … (HUP), 4320 unopipe host install (KILL)`.
|
|
184
|
+
|
|
185
|
+
New: `openTerminal(app, {leaveOpen: true})` keeps the window and its processes after the test, to look at them by hand.
|
|
186
|
+
|
|
187
|
+
- b978ddb: Fixed: when `terminalWaitForText` or `terminalAssertText` runs out of time, the error now quotes the end of the screen (the last 10 rows that are not empty) instead of only pointing at the failure bundle, so a prompt the program is stuck at, such as `[Y/n]`, is in the message and in the test output. A value registered from `.secrets` is masked in that excerpt, also when the terminal wrapped it, and in the screen excerpt of a `terminalType` echo failure, which was not masked before.
|
|
188
|
+
- 3c9043e: Fixed: a test that joined a browser over `newContext({cdpEndpoint})` now lets go of it before the VM it runs in is deleted. Before, the browser was closed after the VM was already gone, and a browser that had vanished with its VM kept the test waiting for up to half a minute on every failure. The browser's contexts are closed and the connection dropped first, the terminal window next, the VM last. The DSL reference has a new section, "Three surfaces in one test", with a worked example.
|
|
189
|
+
- f120084: Fixed: a scenario that reads a variable which `.env.example` declares but nothing gives a value now fails with the same message the pre-run lint prints ("declared in … but has no value here: set it in unotest/.env, the active overlay, or the shell"), instead of `ReferenceError: <NAME> is not defined`. A variable declared nowhere now fails with "external variable … not found — add it to unotest/.env" and the files it looked in, instead of the same `ReferenceError`.
|
|
190
|
+
- f191bcc: Fixed: `terminalWaitForText` and `terminalAssertText` no longer outlast the test. A wait that asked for more time than the test had left used to end as a bare "budget exhausted" with no screen and no name of the wait. It now stops 2 s short of the budget and fails with the end of the screen and a line saying how far it was cut and why.
|
|
191
|
+
|
|
192
|
+
New: the lint rule `lint:wait-exceeds-test-budget` (a warning) reports a literal `timeoutMs` in a test that is as long as the test's whole budget, whether the one `setTestTimeout()` sets or the project's.
|
|
193
|
+
|
|
194
|
+
- eda768f: Changed: `assertScreenshot` now warns, once per run, when the browser is WebKit and the page has an element with `backdrop-filter`. Playwright's WebKit does not draw that property, so such a design only matches its baseline in Chromium; the docs say so too.
|
|
195
|
+
- Updated dependencies [c565c0b]
|
|
196
|
+
- Updated dependencies [12db2ae]
|
|
197
|
+
- Updated dependencies [5578824]
|
|
198
|
+
- @unotest/protocol@0.53.0
|
|
199
|
+
- @unotest/core@0.53.0
|
|
200
|
+
- @unotest/viewer@0.53.0
|
|
201
|
+
- @unotest/dsl@0.53.0
|
|
202
|
+
- @unotest/grounder-client@0.53.0
|
|
203
|
+
|
|
3
204
|
## [0.52.1] - 2026-10-18
|
|
4
205
|
|
|
5
206
|
### Patch Changes
|
|
6
207
|
|
|
7
208
|
- e01789b: Fixed: `e2e` with no scenario name, and `--help`, now show `e2e <feature>/<name>`, the path `lint` accepts. They offered `unotest/e2e/<name>.js` first, a file directly in `unotest/e2e/`, which `lint` refuses as `lint:scenario-in-root` and `run_test` will not run.
|
|
8
209
|
- 9e950e1: Fixed: with TypeScript 7 installed, the line `lint` prints when it skips the type check now says `Install a supported one (npm i -D typescript@5)` instead of `Install it`, which read as if TypeScript were missing. The README runs `schedules`, `collection … --scheduled` and `viewer` from `unotest/`, like the other commands, so they use the version the suite pins.
|
|
9
|
-
- cc4074a: Fixed: a class declared inside a test, a flow or a helper (`class
|
|
210
|
+
- cc4074a: Fixed: a class declared inside a test, a flow or a helper (`class PAGE { … }` in a step) is a local name again. `lint` and `run_test` no longer refuse it as `lint:external-variable-undeclared` ("`PAGE` is not declared in unotest/.env"), and the name of a class expression (`const Q = class PAGE { … }`) is not read as an external variable either. A name nothing declares is still reported as before. A class at the top level of a file remains `validator:top-level-statement`.
|
|
10
211
|
- e75a9bd: Fixed: `lint` no longer fails as a whole when the project has TypeScript 7 installed (`Cannot read properties of undefined (reading 'ES2022')`). TypeScript 7 has no compiler API for the type check to use, so `lint` now prints one line, for example `type check skipped — typescript 7.0.2 is installed: 5.x or 6.x is supported, another major skips this layer`, and reports the validator's findings as before. The optional peer dependency is now `typescript >=5.0.0 <7`. The advice to install it names the version, `npm i -D typescript@5`, so following it no longer gets TypeScript 7.
|
|
11
212
|
- @unotest/core@0.52.1
|
|
12
213
|
- @unotest/dsl@0.52.1
|
|
@@ -2299,7 +2500,7 @@ picker on` fetches this project's own access and writes the three grounder
|
|
|
2299
2500
|
|
|
2300
2501
|
That screen named one command:
|
|
2301
2502
|
|
|
2302
|
-
|
|
2503
|
+
npx @unotest/web bundle push --run --env ENVIRONMENT
|
|
2303
2504
|
|
|
2304
2505
|
In a project that has just been created, the command refuses with `no box
|
|
2305
2506
|
address` before it does anything: the project holds neither the box's address
|
|
@@ -2308,8 +2509,8 @@ address` before it does anything: the project holds neither the box's address
|
|
|
2308
2509
|
|
|
2309
2510
|
The screen now names both steps, in the order they have to happen:
|
|
2310
2511
|
|
|
2311
|
-
|
|
2312
|
-
|
|
2512
|
+
npx @unotest/web box access larch
|
|
2513
|
+
npx @unotest/web bundle push --run --env ENVIRONMENT
|
|
2313
2514
|
|
|
2314
2515
|
The box's own name is filled in when its licence carries one. `box access`
|
|
2315
2516
|
with no name refuses, and its refusal offers to create a box — to somebody who
|
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ package; the full reference is at https://docs.unotest.com/reference/dsl/.
|
|
|
31
31
|
- **Page state** — `getAttribute`, `getInnerText`, `getInputValue`, `boundingBox`, `getTitle`, `getUrl`, `log`
|
|
32
32
|
- **Storage and cookies** — `setLocalStorage`, `getLocalStorage`, `setCookie`, `getCookie`
|
|
33
33
|
- **Tabs, frames, contexts, extensions** — `setPage`, `waitForPage`, `bringToFront`, `setPageHidden`, `newPage`, `closePage`, `setViewport`, `emulateMedia`, `newContext`, `setContext`, `enterFrame`, `exitFrame`, `addVirtualAuthenticator`, `virtualCredentials`, `removeVirtualAuthenticator`, `grantPermissions`, `setOffline`, `waitForServiceWorker`, `extensionId`, `evaluateInServiceWorker`
|
|
34
|
-
- **Data, files, network, processes** — `shell`, `waitForFile`, `assertNoFile`, `waitForJsonLine`, `assertNoJsonLine`, `readJsonLine`, `readJson`, `readFile`, `readFileInfo`, `waitForFileCount`, `assertFileCount`, `dbQuery`, `dbExec`, `apiCall`, `upload`, `mockRoute`, `unmockRoute`, `waitForRequest`, `waitForWebSocket`, `assertNoRequest`, `openTerminal`, `setTerminal`, `closeTerminal`, `terminalType`, `terminalPress`, `terminalWaitForText`, `terminalAssertText`, `terminalResize`, `terminalScreenshot`, `mcpStart`, `mcpCall`, `mcpWaitNotification`, `mcpStop`, `vmAvailable`, `vmClone`, `vmRun`, `vmIp`, `vmStop`, `vmDelete`
|
|
34
|
+
- **Data, files, network, processes** — `shell`, `waitForFile`, `assertNoFile`, `waitForJsonLine`, `assertNoJsonLine`, `readJsonLine`, `readJson`, `readFile`, `readFileInfo`, `waitForFileCount`, `assertFileCount`, `dbQuery`, `dbExec`, `apiCall`, `upload`, `mockRoute`, `unmockRoute`, `waitForRequest`, `waitForWebSocket`, `networkEntries`, `assertNoRequest`, `openTerminal`, `setTerminal`, `closeTerminal`, `terminalType`, `terminalClipboardWrite`, `terminalClipboardRead`, `terminalPress`, `terminalWaitForText`, `terminalWaitForExit`, `terminalAssertText`, `terminalResize`, `terminalText`, `terminalScreenshot`, `mcpStart`, `mcpCall`, `mcpWaitNotification`, `mcpStop`, `vmAvailable`, `vmClone`, `vmRun`, `vmIp`, `vmStop`, `vmDelete`
|
|
35
35
|
- **Diagnostics** — `screenshot`, `note`, `consoleEntries`, `pageErrors`, `assertNoConsoleErrors`
|
|
36
36
|
- **Structure** — `step`, `teardown`, `waitUntil`, `assertNever`
|
|
37
37
|
- **Page code (last resort)** — `evaluate`, `evaluateOnLocator`
|
|
@@ -48,8 +48,9 @@ npm install --prefix unotest
|
|
|
48
48
|
|
|
49
49
|
Run once in your project — any stack (Node, Django, Rails, Go, …), no
|
|
50
50
|
`package.json` required. `init` writes the config and a starter scenario,
|
|
51
|
-
sets up the browser (bundled Chromium
|
|
52
|
-
|
|
51
|
+
sets up the browser (it asks: bundled Chromium or your system Chrome;
|
|
52
|
+
without a terminal to ask in, as in CI, it takes the system Chrome when it
|
|
53
|
+
finds one), and wires the MCP config so Claude Code / Cursor / Codex
|
|
53
54
|
pick the server up automatically. Re-run anytime to update — it never
|
|
54
55
|
overwrites your edits.
|
|
55
56
|
|
|
@@ -82,8 +83,8 @@ cd unotest && npx @unotest/web viewer
|
|
|
82
83
|
```
|
|
83
84
|
|
|
84
85
|
A local IDE-style UI for your tests — no cloud, no account. This is your
|
|
85
|
-
home base: browse scenarios, run them, and watch each step live.
|
|
86
|
-
in §5.)
|
|
86
|
+
home base: browse scenarios, run them, and watch each step live. It runs
|
|
87
|
+
until you press Ctrl-C in that terminal. (Details in §5.)
|
|
87
88
|
|
|
88
89
|
## 3. Create a test — just ask your agent
|
|
89
90
|
|
|
@@ -181,7 +182,7 @@ Three commands, no token to copy:
|
|
|
181
182
|
|
|
182
183
|
```sh
|
|
183
184
|
npx @unotest/web login # a link and a code; approve in the browser
|
|
184
|
-
npx @unotest/web box create # rents a box named after the project, size S
|
|
185
|
+
cd unotest && npx @unotest/web box create # rents a box named after the project, size S
|
|
185
186
|
```
|
|
186
187
|
|
|
187
188
|
`login` signs this machine in to unotest cloud — the account that rents
|
|
@@ -198,6 +199,13 @@ one of them, and `box logs` the end of a box's own log without logging in to
|
|
|
198
199
|
it; `box destroy` does what it says, and `whoami` and `logout` complete the
|
|
199
200
|
set. In CI, export `UNOTEST_CLOUD_TOKEN` instead of signing in.
|
|
200
201
|
|
|
202
|
+
A box runs only your tests: it does not start your app, which must be
|
|
203
|
+
reachable at a public address. An environment whose `APP_BASE_URL` is
|
|
204
|
+
`localhost`, a private network (`10.x`, `192.168.x`, …) or a local-only
|
|
205
|
+
name (`*.local`, a compose service) stays behind with a note, and
|
|
206
|
+
`box create` rents nothing when no environment is left.
|
|
207
|
+
`--env <name>` (repeatable) sends only the environments named.
|
|
208
|
+
|
|
201
209
|
On a box the suite's files are read-only and a run may write in two places
|
|
202
210
|
only. Which ones, the variables a run is given and where a `shell()` step
|
|
203
211
|
starts are on one page:
|
|
@@ -222,8 +230,10 @@ one.
|
|
|
222
230
|
|
|
223
231
|
An agent does the same through the MCP server's `cloud_*` tools — listing,
|
|
224
232
|
renting, deleting, logs, the balance — with the same key and the same rules:
|
|
225
|
-
a rent
|
|
226
|
-
|
|
233
|
+
a rent comes back as a request to wait on, and `cloud_approval_wait`
|
|
234
|
+
waits for the person's answer. A delete is done at once by the key that
|
|
235
|
+
created the box (the account's owner gets an email naming it); any other
|
|
236
|
+
key — a new login is a new key — waits for a person too.
|
|
227
237
|
|
|
228
238
|
A key carries **permissions**. `login` asks for enough to see the
|
|
229
239
|
account's boxes and work with them, never its money, and the approval
|
|
@@ -306,7 +316,7 @@ If your team runs a box (a machine that keeps the environments, the
|
|
|
306
316
|
schedules and the history in one place), tests get there by being pushed:
|
|
307
317
|
|
|
308
318
|
```sh
|
|
309
|
-
npx @unotest/web bundle push --box https://tests.example.com
|
|
319
|
+
cd unotest && npx @unotest/web bundle push --box https://tests.example.com
|
|
310
320
|
```
|
|
311
321
|
|
|
312
322
|
It packs `unotest/` — the suite package, with its config, its
|
|
@@ -336,7 +346,7 @@ pushing an unchanged suite is a no-op.
|
|
|
336
346
|
From a CI job, push and run in one command:
|
|
337
347
|
|
|
338
348
|
```sh
|
|
339
|
-
npx @unotest/web bundle push --run --env test --collection smoke --pr 412
|
|
349
|
+
cd unotest && npx @unotest/web bundle push --run --env test --collection smoke --pr 412
|
|
340
350
|
```
|
|
341
351
|
|
|
342
352
|
The box answers as soon as the runs are queued and gives you their ids —
|
|
@@ -351,6 +361,7 @@ settings, its secrets — are sent separately, from the same files a local
|
|
|
351
361
|
run reads:
|
|
352
362
|
|
|
353
363
|
```sh
|
|
364
|
+
cd unotest
|
|
354
365
|
npx @unotest/web env push dev # .env + .env.dev + .secrets + .secrets.dev
|
|
355
366
|
npx @unotest/web env set dev REGION eu-west
|
|
356
367
|
printf '%s' "$KEY" | npx @unotest/web env set dev API_KEY --secret
|
|
@@ -381,6 +392,7 @@ environment's public URL, and `assertJudge` runs its judge in-process there
|
|
|
381
392
|
same terminal — no browser, no shell on the box:
|
|
382
393
|
|
|
383
394
|
```sh
|
|
395
|
+
cd unotest
|
|
384
396
|
npx @unotest/web box runs --env acme/test --latest
|
|
385
397
|
npx @unotest/web box run checkout-mqf3pwr1 --env acme/test
|
|
386
398
|
```
|
|
@@ -390,7 +402,7 @@ verdicts. A run whose test skipped itself reads `skipped`, with the reason,
|
|
|
390
402
|
and exits 0 like a local skip. When you want the artifacts too:
|
|
391
403
|
|
|
392
404
|
```sh
|
|
393
|
-
npx @unotest/web box run checkout-mqf3pwr1 --env acme/test --download
|
|
405
|
+
cd unotest && npx @unotest/web box run checkout-mqf3pwr1 --env acme/test --download
|
|
394
406
|
```
|
|
395
407
|
|
|
396
408
|
That saves the run's `*.unotest.zip` under `.unotest/box/` and unpacks its
|
|
@@ -445,7 +457,7 @@ you have just ordered may take a moment to appear.
|
|
|
445
457
|
## 5. Watch it run — the viewer
|
|
446
458
|
|
|
447
459
|
`cd unotest && npx @unotest/web viewer` opens a local UI (no cloud, no
|
|
448
|
-
account):
|
|
460
|
+
account); Ctrl-C in its terminal stops it:
|
|
449
461
|
|
|
450
462
|
- **Scenario tree** — scenarios, collections, helpers, and run history.
|
|
451
463
|
- **Run from the UI** — results stream live over WebSocket as steps execute.
|
|
@@ -466,7 +478,7 @@ reads back to repair a step when a selector drifts:
|
|
|
466
478
|
```js
|
|
467
479
|
function test_login() {
|
|
468
480
|
step("Log in as the demo user", () => {
|
|
469
|
-
goto('
|
|
481
|
+
goto('/login');
|
|
470
482
|
fill(getByLabel('Email'), 'demo@example.com');
|
|
471
483
|
click(getByRole('button', { name: 'Continue' }));
|
|
472
484
|
});
|
|
@@ -477,6 +489,9 @@ function test_login() {
|
|
|
477
489
|
}
|
|
478
490
|
```
|
|
479
491
|
|
|
492
|
+
`goto('/login')` opens that path of `APP_BASE_URL` from `unotest/.env`, the
|
|
493
|
+
address of your app.
|
|
494
|
+
|
|
480
495
|
The DSL uses the familiar modern browser-automation vocabulary, so it reads
|
|
481
496
|
the way you already expect:
|
|
482
497
|
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -125,19 +125,22 @@ type DialogPolicy = z.infer<typeof DialogPolicySchema>;
|
|
|
125
125
|
* loads, and `lint` warns that the entry does nothing. Gone in the next
|
|
126
126
|
* major. */
|
|
127
127
|
declare const REMOVED_VALIDATOR_RULE_IDS: readonly ["validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"];
|
|
128
|
-
declare const LinterRuleIdSchema: z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:top-level-statement", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:array-member-receiver", "validator:options", "validator:implicit-global", "validator:async-await", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:unknown-member", "validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"]>;
|
|
128
|
+
declare const LinterRuleIdSchema: z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:wait-exceeds-test-budget", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:top-level-statement", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:array-member-receiver", "validator:options", "validator:implicit-global", "validator:async-await", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:unknown-member", "validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"]>;
|
|
129
129
|
type LinterRuleId = z.infer<typeof LinterRuleIdSchema>;
|
|
130
130
|
declare const LinterSeveritySchema: z.ZodEnum<["off", "warn", "error"]>;
|
|
131
131
|
type LinterSeverity = z.infer<typeof LinterSeveritySchema>;
|
|
132
|
+
/** Removed ids whose check lives on under a new id. A removed id missing
|
|
133
|
+
* here has no successor: its entry just does nothing. */
|
|
134
|
+
declare const REMOVED_RULE_SUCCESSORS: ReadonlyMap<string, LinterRuleId>;
|
|
132
135
|
declare const LinterConfigSchema: z.ZodObject<{
|
|
133
136
|
enabled: z.ZodBoolean;
|
|
134
|
-
rules: z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:top-level-statement", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:array-member-receiver", "validator:options", "validator:implicit-global", "validator:async-await", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:unknown-member", "validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"]>, z.ZodEnum<["off", "warn", "error"]
|
|
137
|
+
rules: z.ZodEffects<z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:wait-exceeds-test-budget", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:top-level-statement", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:array-member-receiver", "validator:options", "validator:implicit-global", "validator:async-await", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:unknown-member", "validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"]>, z.ZodEnum<["off", "warn", "error"]>>, Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>, Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>>;
|
|
135
138
|
}, "strict", z.ZodTypeAny, {
|
|
136
139
|
enabled: boolean;
|
|
137
|
-
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
140
|
+
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
138
141
|
}, {
|
|
139
142
|
enabled: boolean;
|
|
140
|
-
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
143
|
+
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
141
144
|
}>;
|
|
142
145
|
type LinterConfig = z.infer<typeof LinterConfigSchema>;
|
|
143
146
|
declare const QueueConfigSchema: z.ZodObject<{
|
|
@@ -639,13 +642,13 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
639
642
|
}>;
|
|
640
643
|
linter: z.ZodObject<{
|
|
641
644
|
enabled: z.ZodBoolean;
|
|
642
|
-
rules: z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:top-level-statement", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:array-member-receiver", "validator:options", "validator:implicit-global", "validator:async-await", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:unknown-member", "validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"]>, z.ZodEnum<["off", "warn", "error"]
|
|
645
|
+
rules: z.ZodEffects<z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:wait-exceeds-test-budget", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:top-level-statement", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:array-member-receiver", "validator:options", "validator:implicit-global", "validator:async-await", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:unknown-member", "validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"]>, z.ZodEnum<["off", "warn", "error"]>>, Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>, Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>>;
|
|
643
646
|
}, "strict", z.ZodTypeAny, {
|
|
644
647
|
enabled: boolean;
|
|
645
|
-
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
648
|
+
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
646
649
|
}, {
|
|
647
650
|
enabled: boolean;
|
|
648
|
-
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
651
|
+
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
649
652
|
}>;
|
|
650
653
|
mcp: z.ZodObject<{
|
|
651
654
|
transport: z.ZodLiteral<"stdio">;
|
|
@@ -774,7 +777,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
774
777
|
defaultNavigationTimeoutMs: number;
|
|
775
778
|
linter: {
|
|
776
779
|
enabled: boolean;
|
|
777
|
-
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
780
|
+
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
778
781
|
};
|
|
779
782
|
mcp: {
|
|
780
783
|
transport: "stdio";
|
|
@@ -856,7 +859,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
856
859
|
defaultNavigationTimeoutMs: number;
|
|
857
860
|
linter: {
|
|
858
861
|
enabled: boolean;
|
|
859
|
-
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
862
|
+
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
860
863
|
};
|
|
861
864
|
mcp: {
|
|
862
865
|
transport: "stdio";
|
|
@@ -943,7 +946,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
943
946
|
defaultNavigationTimeoutMs: number;
|
|
944
947
|
linter: {
|
|
945
948
|
enabled: boolean;
|
|
946
|
-
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
949
|
+
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
947
950
|
};
|
|
948
951
|
mcp: {
|
|
949
952
|
transport: "stdio";
|
|
@@ -1025,7 +1028,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1025
1028
|
defaultNavigationTimeoutMs: number;
|
|
1026
1029
|
linter: {
|
|
1027
1030
|
enabled: boolean;
|
|
1028
|
-
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
1031
|
+
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
1029
1032
|
};
|
|
1030
1033
|
mcp: {
|
|
1031
1034
|
transport: "stdio";
|
|
@@ -1087,4 +1090,4 @@ type UnotestConfig = z.infer<typeof UnotestConfigSchema>;
|
|
|
1087
1090
|
type UnotestConfigInput = z.input<typeof UnotestConfigSchema>;
|
|
1088
1091
|
declare const DEFAULT_CONFIG: UnotestConfig;
|
|
1089
1092
|
|
|
1090
|
-
export { BROWSER_CHANNEL_WORDS, type Browser, type BrowserChannel, BrowserChannelSchema, BrowserSchema, DEFAULT_CONFIG, type DialogPolicy, DialogPolicySchema, type DisplayMode, DisplayModeSchema, type EnvConfig, EnvConfigSchema, type FailureBundleConfig, FailureBundleConfigSchema, type LinterConfig, LinterConfigSchema, type LinterRuleId, LinterRuleIdSchema, type LinterSeverity, LinterSeveritySchema, type McpConfig, McpConfigSchema, type QueueConfig, QueueConfigSchema, REMOVED_VALIDATOR_RULE_IDS, type RetryConfig, RetryConfigSchema, type RetryReason, RetryReasonSchema, SYSTEM_BROWSER_CHANNELS, type SandboxConfig, SandboxConfigSchema, type ScheduleConfig, ScheduleSchema, type UnotestConfig, type UnotestConfigInput, UnotestConfigSchema, type Viewport, ViewportSchema, type WebServerConfig, WebServerConfigSchema, WebServersConfigSchema, viewportDeviceConflict };
|
|
1093
|
+
export { BROWSER_CHANNEL_WORDS, type Browser, type BrowserChannel, BrowserChannelSchema, BrowserSchema, DEFAULT_CONFIG, type DialogPolicy, DialogPolicySchema, type DisplayMode, DisplayModeSchema, type EnvConfig, EnvConfigSchema, type FailureBundleConfig, FailureBundleConfigSchema, type LinterConfig, LinterConfigSchema, type LinterRuleId, LinterRuleIdSchema, type LinterSeverity, LinterSeveritySchema, type McpConfig, McpConfigSchema, type QueueConfig, QueueConfigSchema, REMOVED_RULE_SUCCESSORS, REMOVED_VALIDATOR_RULE_IDS, type RetryConfig, RetryConfigSchema, type RetryReason, RetryReasonSchema, SYSTEM_BROWSER_CHANNELS, type SandboxConfig, SandboxConfigSchema, type ScheduleConfig, ScheduleSchema, type UnotestConfig, type UnotestConfigInput, UnotestConfigSchema, type Viewport, ViewportSchema, type WebServerConfig, WebServerConfigSchema, WebServersConfigSchema, viewportDeviceConflict };
|