@unotest/web 0.52.1 → 0.53.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 +168 -3
- package/README.md +5 -3
- package/dist/config/schema.d.ts +11 -11
- 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 +5 -2
- package/dist/inspection/page-inject.js +11 -0
- 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.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,5 +1,170 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.53.0] - 2026-10-23
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 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.
|
|
8
|
+
- 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:
|
|
9
|
+
|
|
10
|
+
```js
|
|
11
|
+
function test_vm_browser() {
|
|
12
|
+
step("Join the VM's browser", () => {
|
|
13
|
+
const vm = vmClone("macos-base");
|
|
14
|
+
const ip = vmRun(vm);
|
|
15
|
+
newContext({ cdpEndpoint: `http://${ip}:9222` });
|
|
16
|
+
goto("https://app.example.com");
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
An endpoint nothing answers on fails within 10 seconds with one line that names it. It cannot be combined with `profile`.
|
|
22
|
+
|
|
23
|
+
replaces: nothing
|
|
24
|
+
|
|
25
|
+
- 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.
|
|
26
|
+
- 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.
|
|
27
|
+
|
|
28
|
+
```js
|
|
29
|
+
click(getByRole("button", { name: "Verify" }));
|
|
30
|
+
waitUntil(() => networkEntries({ glob: "/api/contacts/verify*" }).length > 0);
|
|
31
|
+
const answer = networkEntries({ glob: "/api/contacts/verify*" })[0];
|
|
32
|
+
assertEqual(answer.status, 200);
|
|
33
|
+
assertEqual(answer.responseJson.kind, "mobile");
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Changed: with `UNOTEST_NETWORK` on, `network.json` now holds the last 500 requests of a context instead of 2000.
|
|
37
|
+
|
|
38
|
+
replaces: evaluate with a fetch wrapper
|
|
39
|
+
|
|
40
|
+
- 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.
|
|
41
|
+
|
|
42
|
+
```js
|
|
43
|
+
openTerminal();
|
|
44
|
+
terminalType("my-cli --version");
|
|
45
|
+
terminalPress("Enter");
|
|
46
|
+
terminalWaitForText(/my-cli \d+\.\d+/);
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
replaces: a Terminal.app or iTerm2 window on a Mac that holds the keyboard; nothing on Linux or in CI
|
|
50
|
+
|
|
51
|
+
- 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.
|
|
52
|
+
|
|
53
|
+
```js
|
|
54
|
+
openTerminal("ssh", { host: "admin@10.0.0.5", cols: 120 });
|
|
55
|
+
terminalType("apt-get install -y htop");
|
|
56
|
+
terminalWaitForText(/Do you want to continue\? \[Y\/n\]/);
|
|
57
|
+
terminalType("y");
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
replaces: nothing
|
|
61
|
+
|
|
62
|
+
- 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.
|
|
63
|
+
|
|
64
|
+
```js
|
|
65
|
+
openTerminal("Terminal", { host: "admin@192.168.64.38" });
|
|
66
|
+
terminalType("my-cli token | pbcopy");
|
|
67
|
+
terminalPress("Enter");
|
|
68
|
+
fill(getByLabel("Token"), terminalClipboardRead());
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
replaces: nothing
|
|
72
|
+
|
|
73
|
+
- 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:
|
|
74
|
+
|
|
75
|
+
```js
|
|
76
|
+
function test_cli_rejects_a_bad_flag() {
|
|
77
|
+
step("The tool exits with 2", () => {
|
|
78
|
+
openTerminal();
|
|
79
|
+
terminalType("my-cli --nope; exit $?");
|
|
80
|
+
terminalPress("Enter");
|
|
81
|
+
terminalWaitForExit({ code: 2 });
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
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.
|
|
87
|
+
|
|
88
|
+
replaces: nothing
|
|
89
|
+
|
|
90
|
+
- 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:
|
|
91
|
+
|
|
92
|
+
```js
|
|
93
|
+
openTerminal("shell", {
|
|
94
|
+
cleanProfile: true,
|
|
95
|
+
cwd: "unotest",
|
|
96
|
+
env: { GREETING: "hi" },
|
|
97
|
+
cols: 100,
|
|
98
|
+
rows: 30,
|
|
99
|
+
});
|
|
100
|
+
terminalType("echo $GREETING $COLUMNS");
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
A GUI terminal window takes none of these keys and says so. A misspelt key is refused with the keys the call reads.
|
|
104
|
+
|
|
105
|
+
replaces: setting up the shell by hand with terminalType (cd, export, stty) before the test
|
|
106
|
+
|
|
107
|
+
- 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:
|
|
108
|
+
|
|
109
|
+
```js
|
|
110
|
+
const m = terminalWaitForText(/code: ([A-Z]{4}-\d{4})/);
|
|
111
|
+
fill(getByLabel("Device code"), m[1]);
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
replaces: terminalScreenshot + eyes
|
|
115
|
+
|
|
116
|
+
- 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:
|
|
117
|
+
|
|
118
|
+
```js
|
|
119
|
+
function test_two_devices() {
|
|
120
|
+
let a;
|
|
121
|
+
step("Device A opens the pairing page", () => {
|
|
122
|
+
a = newContext({ profile: ".profiles/device-a" });
|
|
123
|
+
goto("/pair");
|
|
124
|
+
});
|
|
125
|
+
step("Device B opens it too", () => {
|
|
126
|
+
newContext({ profile: ".profiles/device-b" });
|
|
127
|
+
goto("/pair");
|
|
128
|
+
});
|
|
129
|
+
step("Back to A, which kept what it stored", () => {
|
|
130
|
+
setContext(a);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
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.
|
|
136
|
+
|
|
137
|
+
replaces: UNOTEST_NO_QUEUE=1 and two e2e processes
|
|
138
|
+
|
|
139
|
+
### Patch Changes
|
|
140
|
+
|
|
141
|
+
- 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.
|
|
142
|
+
- 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`.
|
|
143
|
+
- 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`.
|
|
144
|
+
- 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.
|
|
145
|
+
- 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.
|
|
146
|
+
- 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.
|
|
147
|
+
- 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)`.
|
|
148
|
+
|
|
149
|
+
New: `openTerminal(app, {leaveOpen: true})` keeps the window and its processes after the test, to look at them by hand.
|
|
150
|
+
|
|
151
|
+
- 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.
|
|
152
|
+
- 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.
|
|
153
|
+
- 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`.
|
|
154
|
+
- 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.
|
|
155
|
+
|
|
156
|
+
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.
|
|
157
|
+
|
|
158
|
+
- 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.
|
|
159
|
+
- Updated dependencies [c565c0b]
|
|
160
|
+
- Updated dependencies [12db2ae]
|
|
161
|
+
- Updated dependencies [5578824]
|
|
162
|
+
- @unotest/protocol@0.53.0
|
|
163
|
+
- @unotest/core@0.53.0
|
|
164
|
+
- @unotest/viewer@0.53.0
|
|
165
|
+
- @unotest/dsl@0.53.0
|
|
166
|
+
- @unotest/grounder-client@0.53.0
|
|
167
|
+
|
|
3
168
|
## [0.52.1] - 2026-10-18
|
|
4
169
|
|
|
5
170
|
### Patch Changes
|
|
@@ -2299,7 +2464,7 @@ picker on` fetches this project's own access and writes the three grounder
|
|
|
2299
2464
|
|
|
2300
2465
|
That screen named one command:
|
|
2301
2466
|
|
|
2302
|
-
|
|
2467
|
+
npx @unotest/web bundle push --run --env ENVIRONMENT
|
|
2303
2468
|
|
|
2304
2469
|
In a project that has just been created, the command refuses with `no box
|
|
2305
2470
|
address` before it does anything: the project holds neither the box's address
|
|
@@ -2308,8 +2473,8 @@ address` before it does anything: the project holds neither the box's address
|
|
|
2308
2473
|
|
|
2309
2474
|
The screen now names both steps, in the order they have to happen:
|
|
2310
2475
|
|
|
2311
|
-
|
|
2312
|
-
|
|
2476
|
+
npx @unotest/web box access larch
|
|
2477
|
+
npx @unotest/web bundle push --run --env ENVIRONMENT
|
|
2313
2478
|
|
|
2314
2479
|
The box's own name is filled in when its licence carries one. `box access`
|
|
2315
2480
|
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`
|
|
@@ -222,8 +222,10 @@ one.
|
|
|
222
222
|
|
|
223
223
|
An agent does the same through the MCP server's `cloud_*` tools — listing,
|
|
224
224
|
renting, deleting, logs, the balance — with the same key and the same rules:
|
|
225
|
-
a rent
|
|
226
|
-
|
|
225
|
+
a rent comes back as a request to wait on, and `cloud_approval_wait`
|
|
226
|
+
waits for the person's answer. A delete is done at once by the key that
|
|
227
|
+
created the box (the account's owner gets an email naming it); any other
|
|
228
|
+
key — a new login is a new key — waits for a person too.
|
|
227
229
|
|
|
228
230
|
A key carries **permissions**. `login` asks for enough to see the
|
|
229
231
|
account's boxes and work with them, never its money, and the approval
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -125,19 +125,19 @@ 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
132
|
declare const LinterConfigSchema: z.ZodObject<{
|
|
133
133
|
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"]>>;
|
|
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: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"]>>;
|
|
135
135
|
}, "strict", z.ZodTypeAny, {
|
|
136
136
|
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">>;
|
|
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: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
138
|
}, {
|
|
139
139
|
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">>;
|
|
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">>;
|
|
141
141
|
}>;
|
|
142
142
|
type LinterConfig = z.infer<typeof LinterConfigSchema>;
|
|
143
143
|
declare const QueueConfigSchema: z.ZodObject<{
|
|
@@ -639,13 +639,13 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
639
639
|
}>;
|
|
640
640
|
linter: z.ZodObject<{
|
|
641
641
|
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"]>>;
|
|
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: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"]>>;
|
|
643
643
|
}, "strict", z.ZodTypeAny, {
|
|
644
644
|
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">>;
|
|
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: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
646
|
}, {
|
|
647
647
|
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">>;
|
|
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">>;
|
|
649
649
|
}>;
|
|
650
650
|
mcp: z.ZodObject<{
|
|
651
651
|
transport: z.ZodLiteral<"stdio">;
|
|
@@ -774,7 +774,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
774
774
|
defaultNavigationTimeoutMs: number;
|
|
775
775
|
linter: {
|
|
776
776
|
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">>;
|
|
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: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
778
|
};
|
|
779
779
|
mcp: {
|
|
780
780
|
transport: "stdio";
|
|
@@ -856,7 +856,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
856
856
|
defaultNavigationTimeoutMs: number;
|
|
857
857
|
linter: {
|
|
858
858
|
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">>;
|
|
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: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
860
|
};
|
|
861
861
|
mcp: {
|
|
862
862
|
transport: "stdio";
|
|
@@ -943,7 +943,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
943
943
|
defaultNavigationTimeoutMs: number;
|
|
944
944
|
linter: {
|
|
945
945
|
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">>;
|
|
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: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
947
|
};
|
|
948
948
|
mcp: {
|
|
949
949
|
transport: "stdio";
|
|
@@ -1025,7 +1025,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1025
1025
|
defaultNavigationTimeoutMs: number;
|
|
1026
1026
|
linter: {
|
|
1027
1027
|
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">>;
|
|
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: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
1029
|
};
|
|
1030
1030
|
mcp: {
|
|
1031
1031
|
transport: "stdio";
|
package/dist/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x3bb480=_0x41e5;(function(_0x2b8479,_0x54c7c4){var _0x46d1cb={_0x37504e:0x24a,_0x5bb91a:0x204,_0x3d36c9:0x1d2,_0x5e28a2:0x210,_0x2da6a5:0x1ef},_0x245172=_0x41e5,_0x24ba66=_0x2b8479();while(!![]){try{var _0x197496=-parseInt(_0x245172(0x230))/0x1+-parseInt(_0x245172(0x1f9))/0x2+-parseInt(_0x245172(_0x46d1cb._0x37504e))/0x3+-parseInt(_0x245172(0x25a))/0x4+parseInt(_0x245172(_0x46d1cb._0x5bb91a))/0x5*(-parseInt(_0x245172(_0x46d1cb._0x3d36c9))/0x6)+parseInt(_0x245172(0x211))/0x7*(-parseInt(_0x245172(_0x46d1cb._0x5e28a2))/0x8)+parseInt(_0x245172(_0x46d1cb._0x2da6a5))/0x9;if(_0x197496===_0x54c7c4)break;else _0x24ba66['push'](_0x24ba66['shift']());}catch(_0x57b7b6){_0x24ba66['push'](_0x24ba66['shift']());}}}(_0x12e8,0x921b2));var __defProp=Object[_0x3bb480(0x1e1)],__name=(_0x20f7ca,_0x19221a)=>__defProp(_0x20f7ca,'name',{'value':_0x19221a,'configurable':!![]});import{z as _0x41c531}from'zod';import{z}from'zod';import{levenshteinDistance}from'@unotest/core';var MAX_EDITS=0x2;function closestKey(_0x48b475,_0x558772){var _0x475da4={_0x251c38:0x238,_0x52bd0a:0x1ee},_0x568f5f=_0x3bb480;let _0x4c7af4;for(const _0x417100 of _0x558772){const _0xb666f5=levenshteinDistance(_0x48b475[_0x568f5f(_0x475da4._0x251c38)](),_0x417100['toLowerCase']());if(_0xb666f5>MAX_EDITS)continue;if(_0x4c7af4===void 0x0||_0xb666f5<_0x4c7af4[_0x568f5f(_0x475da4._0x52bd0a)])_0x4c7af4={'key':_0x417100,'distance':_0xb666f5};}return _0x4c7af4?.[_0x568f5f(0x213)];}__name(closestKey,_0x3bb480(0x201));function unknownKeyMessage(_0x1bce78,_0x1ee7cf){var _0x137fff={_0x203d1f:0x1ea},_0x429b0f={_0x4925e2:0x1e7,_0x4e019f:0x21d},_0x38d5d1=_0x3bb480;return _0x1bce78['map'](_0x2e0300=>{var _0x10a6ba=_0x41e5;const _0x126587=closestKey(_0x2e0300,_0x1ee7cf);return _0x126587===void 0x0?_0x10a6ba(0x21d)+_0x2e0300+_0x10a6ba(_0x429b0f._0x4925e2):_0x10a6ba(_0x429b0f._0x4e019f)+_0x2e0300+_0x10a6ba(0x244)+_0x126587+'\x22?';})[_0x38d5d1(_0x137fff._0x203d1f)](';\x20');}__name(unknownKeyMessage,_0x3bb480(0x20d));function strictObject(_0x50af49){var _0x2d8f18={_0x583164:0x235},_0x37cba7=_0x3bb480;const _0x5a5c1a=Object['keys'](_0x50af49);return z['object'](_0x50af49,{'errorMap':__name((_0x39fa21,_0x306a26)=>_0x39fa21[_0x37cba7(0x1f1)]===z['ZodIssueCode'][_0x37cba7(0x214)]?{'message':unknownKeyMessage(_0x39fa21[_0x37cba7(0x1fc)],_0x5a5c1a)}:{'message':_0x306a26['defaultError']},'errorMap')})[_0x37cba7(_0x2d8f18._0x583164)]();}__name(strictObject,_0x3bb480(0x1e6));import{BUNDLED_BROWSER_CHANNEL}from'@unotest/protocol';import{z as _0x395e5b}from'zod';import{UnotestError}from'@unotest/core';var LaunchConfigSchema=_0x395e5b[_0x3bb480(0x1d8)]({'userDataDir':_0x395e5b[_0x3bb480(0x1e3)]()[_0x3bb480(0x22e)](0x1)['optional'](),'profile':_0x395e5b[_0x3bb480(0x256)](_0x3bb480(0x200))[_0x3bb480(0x247)](),'args':_0x395e5b['array'](_0x395e5b['string']()[_0x3bb480(0x22e)](0x1))[_0x3bb480(0x247)]()})['strict'](),PROFILES={'ios':{'browsers':[_0x3bb480(0x20f)],'device':_0x3bb480(0x216),'displayMode':'standalone'}},PROFILE_NAMES=Object['keys'](PROFILES);function profileConflict(_0x45003c,_0x20688f){var _0xfb9cc5={_0x5dd4ad:0x203,_0x1b3da8:0x236,_0x5e7871:0x1fb,_0x3f362b:0x1fe,_0x381730:0x254},_0x3a7119=_0x3bb480;return'profile\x20\x22'+_0x45003c+_0x3a7119(_0xfb9cc5._0x5dd4ad)+_0x20688f[_0x3a7119(_0xfb9cc5._0x1b3da8)](_0x404ba8=>'`'+_0x404ba8+'`')[_0x3a7119(0x1ea)](_0x3a7119(0x209))+_0x3a7119(_0xfb9cc5._0x5e7871)+(_0x20688f[_0x3a7119(_0xfb9cc5._0x3f362b)]===0x1?'it':_0x3a7119(_0xfb9cc5._0x381730))+_0x3a7119(0x1e5);}__name(profileConflict,_0x3bb480(0x21a));var BrowserSchema=_0x41c531[_0x3bb480(0x224)]([_0x3bb480(0x1da),_0x3bb480(0x239),_0x3bb480(0x20f)]),SYSTEM_BROWSER_CHANNELS=['chrome',_0x3bb480(0x226),'chrome-beta','chromium'],BROWSER_CHANNEL_WORDS=[...SYSTEM_BROWSER_CHANNELS,BUNDLED_BROWSER_CHANNEL],BrowserChannelSchema=_0x41c531['union']([_0x41c531[_0x3bb480(0x224)](SYSTEM_BROWSER_CHANNELS),_0x41c531[_0x3bb480(0x256)](BUNDLED_BROWSER_CHANNEL)['transform'](()=>null),_0x41c531[_0x3bb480(0x252)]()])[_0x3bb480(0x247)](),DisplayModeSchema=_0x41c531['enum']([_0x3bb480(0x259),_0x3bb480(0x1f2),_0x3bb480(0x219),_0x3bb480(0x1dd)]),ViewportSchema=strictObject({'width':_0x41c531[_0x3bb480(0x228)]()[_0x3bb480(0x242)]()['positive']()['optional'](),'height':_0x41c531[_0x3bb480(0x228)]()[_0x3bb480(0x242)]()[_0x3bb480(0x21b)]()[_0x3bb480(0x247)](),'deviceScaleFactor':_0x41c531[_0x3bb480(0x228)]()[_0x3bb480(0x21b)]()[_0x3bb480(0x247)]()}),ConfigViewportSchema=ViewportSchema[_0x3bb480(0x1fd)]();function viewportDeviceConflict(_0x3dcc0d,_0x200234,_0x31a289=_0x3bb480(0x231)){var _0x3f3722=_0x3bb480;if(_0x3dcc0d!==null||_0x200234===void 0x0)return void 0x0;return _0x31a289+_0x3f3722(0x1de)+_0x200234+'\x22\x20sets\x20its\x20own\x20size\x20and\x20scale\x20—\x20drop\x20one\x20of\x20them.';}__name(viewportDeviceConflict,_0x3bb480(0x20a));var RetryReasonSchema=_0x41c531[_0x3bb480(0x224)]([_0x3bb480(0x22d),_0x3bb480(0x250),'crash']),RetryConfigSchema=strictObject({'count':_0x41c531['number']()[_0x3bb480(0x242)]()[_0x3bb480(0x22e)](0x0)[_0x3bb480(0x237)](0xa),'on':_0x41c531[_0x3bb480(0x22a)](RetryReasonSchema)}),FailureBundleConfigSchema=strictObject({'tier1':_0x41c531['literal'](!![])[_0x3bb480(0x221)](!![]),'tier2':_0x41c531['boolean'](),'tier3':strictObject({'network':_0x41c531[_0x3bb480(0x23e)](),'video':_0x41c531[_0x3bb480(0x23e)]()}),'retention':strictObject({'runs':_0x41c531[_0x3bb480(0x228)]()['int']()['positive'](),'days':_0x41c531[_0x3bb480(0x228)]()[_0x3bb480(0x242)]()[_0x3bb480(0x21b)]()}),'storageDir':_0x41c531[_0x3bb480(0x1e3)]()[_0x3bb480(0x22e)](0x1),'pageHtml':_0x41c531[_0x3bb480(0x224)]([_0x3bb480(0x1d9),_0x3bb480(0x218)])}),DialogPolicySchema=_0x41c531['enum']([_0x3bb480(0x1fa),'dismiss','manual']),REMOVED_VALIDATOR_RULE_IDS=[_0x3bb480(0x234),'validator:unsupported-expression',_0x3bb480(0x251),_0x3bb480(0x220),_0x3bb480(0x233),'validator:implicit-declaration'],LinterRuleIdSchema=_0x41c531[_0x3bb480(0x224)]([_0x3bb480(0x1df),_0x3bb480(0x232),_0x3bb480(0x21e),_0x3bb480(0x212),_0x3bb480(0x227),'lint:evaluate-discouraged',_0x3bb480(0x1d5),'lint:mustache-in-dsl',_0x3bb480(0x21c),_0x3bb480(0x217),'lint:echo-assert',_0x3bb480(0x1e2),'lint:lint-ok-missing-reason',_0x3bb480(0x245),_0x3bb480(0x243),'lint:external-variable-undeclared','lint:external-variable-no-value',_0x3bb480(0x223),'lint:one-test-per-file','lint:shadows-dsl-function',_0x3bb480(0x1d6),_0x3bb480(0x215),_0x3bb480(0x225),_0x3bb480(0x249),'lint:typed-step-available',_0x3bb480(0x22b),'validator:arity',_0x3bb480(0x241),_0x3bb480(0x1f0),_0x3bb480(0x23b),'validator:meta-shape',_0x3bb480(0x222),'validator:for-shape',_0x3bb480(0x23d),_0x3bb480(0x1e8),_0x3bb480(0x22f),_0x3bb480(0x1e9),'validator:semantic-loss',_0x3bb480(0x240),'validator:wrapped-format','validator:const-assign',_0x3bb480(0x208),_0x3bb480(0x1dc),_0x3bb480(0x1d4),_0x3bb480(0x24e),_0x3bb480(0x1eb),_0x3bb480(0x22c),'validator:top-level-const',_0x3bb480(0x20b),_0x3bb480(0x24c),_0x3bb480(0x23a),'validator:implicit-global',_0x3bb480(0x1f3),_0x3bb480(0x253),_0x3bb480(0x1d7),_0x3bb480(0x1f7),_0x3bb480(0x246),_0x3bb480(0x1e0),_0x3bb480(0x206),...REMOVED_VALIDATOR_RULE_IDS]),LinterSeveritySchema=_0x41c531[_0x3bb480(0x224)](['off','warn',_0x3bb480(0x1ff)]),LinterConfigSchema=strictObject({'enabled':_0x41c531['boolean'](),'rules':_0x41c531[_0x3bb480(0x20c)](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=strictObject({'enabled':_0x41c531['boolean']()[_0x3bb480(0x221)](!![]),'concurrency':_0x41c531[_0x3bb480(0x228)]()[_0x3bb480(0x242)]()['positive']()['default'](0x1)}),ScheduleSchema=strictObject({'collection':_0x41c531['string']()[_0x3bb480(0x22e)](0x1),'cron':_0x41c531[_0x3bb480(0x1e3)]()['min'](0x1),'env':_0x41c531[_0x3bb480(0x1e3)]()['min'](0x1)[_0x3bb480(0x247)](),'prepare':_0x41c531[_0x3bb480(0x1e3)]()[_0x3bb480(0x22e)](0x1)[_0x3bb480(0x247)]()}),McpConfigSchema=strictObject({'transport':_0x41c531['literal']('stdio')}),SandboxConfigSchema=strictObject({'shellCwd':_0x41c531[_0x3bb480(0x1e3)]()[_0x3bb480(0x247)](),'shellTimeoutMs':_0x41c531[_0x3bb480(0x228)]()['int']()[_0x3bb480(0x21b)]()['optional'](),'exportSecrets':_0x41c531[_0x3bb480(0x22a)](_0x41c531[_0x3bb480(0x1e3)]())[_0x3bb480(0x247)](),'database':_0x41c531[_0x3bb480(0x1e3)]()[_0x3bb480(0x247)](),'apiBaseUrl':_0x41c531[_0x3bb480(0x1e3)]()[_0x3bb480(0x1f4)]()[_0x3bb480(0x247)](),'uploadDir':_0x41c531[_0x3bb480(0x1e3)]()[_0x3bb480(0x247)](),'readRoots':_0x41c531['array'](_0x41c531[_0x3bb480(0x1e3)]()[_0x3bb480(0x22e)](0x1))[_0x3bb480(0x247)]()}),WebServerConfigSchema=strictObject({'command':_0x41c531[_0x3bb480(0x1e3)]()['min'](0x1),'url':_0x41c531[_0x3bb480(0x1e3)]()[_0x3bb480(0x1f4)](),'reuseExistingServer':_0x41c531[_0x3bb480(0x23e)]()[_0x3bb480(0x221)](!![]),'timeoutMs':_0x41c531[_0x3bb480(0x228)]()[_0x3bb480(0x242)]()[_0x3bb480(0x21b)]()[_0x3bb480(0x221)](0xea60)}),WebServersConfigSchema=_0x41c531[_0x3bb480(0x1f8)]([WebServerConfigSchema,_0x41c531[_0x3bb480(0x22a)](WebServerConfigSchema)['min'](0x1)])[_0x3bb480(0x207)](_0x2e36d3=>Array[_0x3bb480(0x24d)](_0x2e36d3)?_0x2e36d3:[_0x2e36d3])[_0x3bb480(0x258)]((_0xebc49e,_0x567830)=>{var _0x4b02fc={_0x2f8e3c:0x21f},_0x5d09d4={_0x1cc93b:0x1f4,_0xda25e:0x248,_0x2a3adc:0x1d3,_0x2553b9:0x23c},_0x34da76=_0x3bb480;const _0x36f32f=new Set();_0xebc49e[_0x34da76(_0x4b02fc._0x2f8e3c)]((_0x3fd950,_0x585079)=>{var _0x1955a9=_0x34da76;_0x36f32f['has'](_0x3fd950[_0x1955a9(_0x5d09d4._0x1cc93b)])&&_0x567830['addIssue']({'code':_0x41c531[_0x1955a9(_0x5d09d4._0xda25e)][_0x1955a9(_0x5d09d4._0x2a3adc)],'path':[_0x585079,_0x1955a9(_0x5d09d4._0x1cc93b)],'message':_0x1955a9(0x229)+_0x585079+'].url\x20'+_0x3fd950[_0x1955a9(_0x5d09d4._0x1cc93b)]+'\x20is\x20already\x20another\x20server\x27s\x20—\x20each\x20server\x20needs\x20its\x20own\x20readiness\x20URL.'}),_0x36f32f[_0x1955a9(_0x5d09d4._0x2553b9)](_0x3fd950[_0x1955a9(0x1f4)]);});}),EnvConfigSchema=strictObject({'shared':_0x41c531[_0x3bb480(0x22a)](_0x41c531[_0x3bb480(0x1e3)]())[_0x3bb480(0x221)]([])}),UnotestConfigSchema=strictObject({'baseUrl':_0x41c531[_0x3bb480(0x1e3)]()[_0x3bb480(0x1f4)]()['optional'](),'webServer':WebServersConfigSchema[_0x3bb480(0x247)](),'generate':_0x41c531['string']()['min'](0x1)['optional'](),'browsers':_0x41c531[_0x3bb480(0x22a)](BrowserSchema)[_0x3bb480(0x22e)](0x1),'channel':BrowserChannelSchema,'viewport':ConfigViewportSchema[_0x3bb480(0x247)](),'device':_0x41c531[_0x3bb480(0x1e3)]()['min'](0x1)['optional'](),'profile':_0x41c531[_0x3bb480(0x224)](PROFILE_NAMES)['optional'](),'displayMode':DisplayModeSchema[_0x3bb480(0x247)](),'timezone':_0x41c531[_0x3bb480(0x1e3)]()['refine'](isTimeZone,_0x472112=>({'message':'unknown\x20time\x20zone\x20\x22'+_0x472112+_0x3bb480(0x1d1)}))[_0x3bb480(0x247)](),'locale':_0x41c531[_0x3bb480(0x1e3)]()['refine'](isLocale,_0x40f035=>({'message':'invalid\x20locale\x20\x22'+_0x40f035+_0x3bb480(0x255)}))[_0x3bb480(0x247)](),'maxContexts':_0x41c531[_0x3bb480(0x228)]()['int']()['positive']()[_0x3bb480(0x247)](),'launch':LaunchConfigSchema[_0x3bb480(0x247)](),'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':_0x41c531[_0x3bb480(0x1e3)]()['optional'](),'testDir':_0x41c531['string']()[_0x3bb480(0x22e)](0x1),'helpersDir':_0x41c531[_0x3bb480(0x1e3)]()[_0x3bb480(0x22e)](0x1),'defaultTimeoutMs':_0x41c531[_0x3bb480(0x228)]()[_0x3bb480(0x242)]()[_0x3bb480(0x21b)](),'defaultNavigationTimeoutMs':_0x41c531[_0x3bb480(0x228)]()[_0x3bb480(0x242)]()[_0x3bb480(0x21b)](),'teardownTimeoutMs':_0x41c531[_0x3bb480(0x228)]()['int']()[_0x3bb480(0x21b)]()[_0x3bb480(0x247)](),'testTimeoutMs':_0x41c531[_0x3bb480(0x228)]()['int']()[_0x3bb480(0x21b)]()[_0x3bb480(0x247)](),'env':EnvConfigSchema,'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':_0x41c531[_0x3bb480(0x22a)](ScheduleSchema)[_0x3bb480(0x221)]([]),'sandbox':SandboxConfigSchema})['superRefine']((_0x54f499,_0x2ed22c)=>{var _0x4e7863={_0x3bdb57:0x1f5,_0x5c2f11:0x248,_0x8667f7:0x1d3,_0x875d2f:0x1ed,_0x472be6:0x1ea,_0x377971:0x1ea,_0x4f6465:0x1e4,_0x5a9fc6:0x1e4,_0x36da0a:0x257},_0x19dc90=_0x3bb480;const _0x39185f=viewportDeviceConflict(_0x54f499[_0x19dc90(_0x4e7863._0x3bdb57)],_0x54f499['device']);_0x39185f!==void 0x0&&_0x2ed22c['addIssue']({'code':_0x41c531[_0x19dc90(_0x4e7863._0x5c2f11)][_0x19dc90(_0x4e7863._0x8667f7)],'path':[_0x19dc90(_0x4e7863._0x3bdb57)],'message':_0x39185f});if(_0x54f499[_0x19dc90(0x257)]!==void 0x0){const _0x427505=PROFILES[_0x54f499['profile']],_0x57435c=[..._0x54f499[_0x19dc90(_0x4e7863._0x875d2f)][_0x19dc90(_0x4e7863._0x472be6)]()!==_0x427505[_0x19dc90(_0x4e7863._0x875d2f)][_0x19dc90(_0x4e7863._0x377971)]()?['browsers']:[],..._0x54f499[_0x19dc90(0x1e4)]!==_0x427505[_0x19dc90(_0x4e7863._0x4f6465)]?[_0x19dc90(_0x4e7863._0x5a9fc6)]:[]];_0x57435c['length']>0x0&&_0x2ed22c['addIssue']({'code':_0x41c531[_0x19dc90(_0x4e7863._0x5c2f11)]['custom'],'path':[_0x19dc90(_0x4e7863._0x36da0a)],'message':profileConflict(_0x54f499[_0x19dc90(0x257)],_0x57435c)});}});function isTimeZone(_0x47d2ec){var _0x2ce36f={_0x3390f7:0x1f6,_0x2a648f:0x1fe},_0x25962f=_0x3bb480;try{return new Intl[(_0x25962f(0x20e))](_0x25962f(_0x2ce36f._0x3390f7),{'timeZone':_0x47d2ec}),_0x47d2ec[_0x25962f(_0x2ce36f._0x2a648f)]>0x0;}catch{return![];}}__name(isTimeZone,_0x3bb480(0x24b));function _0x41e5(_0x2be526,_0x120e06){_0x2be526=_0x2be526-0x1d1;var _0x12e8e6=_0x12e8();var _0x41e592=_0x12e8e6[_0x2be526];if(_0x41e5['iqKvLh']===undefined){var _0x8c8ee1=function(_0x1d3ab5){var _0x55fced='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x41c531='',_0x395e5b='';for(var _0x20f7ca=0x0,_0x19221a,_0x48b475,_0x558772=0x0;_0x48b475=_0x1d3ab5['charAt'](_0x558772++);~_0x48b475&&(_0x19221a=_0x20f7ca%0x4?_0x19221a*0x40+_0x48b475:_0x48b475,_0x20f7ca++%0x4)?_0x41c531+=String['fromCharCode'](0xff&_0x19221a>>(-0x2*_0x20f7ca&0x6)):0x0){_0x48b475=_0x55fced['indexOf'](_0x48b475);}for(var _0x4c7af4=0x0,_0x417100=_0x41c531['length'];_0x4c7af4<_0x417100;_0x4c7af4++){_0x395e5b+='%'+('00'+_0x41c531['charCodeAt'](_0x4c7af4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x395e5b);};_0x41e5['LGASRr']=_0x8c8ee1,_0x41e5['NapNEn']={},_0x41e5['iqKvLh']=!![];}var _0x58e859=_0x12e8e6[0x0],_0x1f79bc=_0x2be526+_0x58e859,_0x411574=_0x41e5['NapNEn'][_0x1f79bc];return!_0x411574?(_0x41e592=_0x41e5['LGASRr'](_0x41e592),_0x41e5['NapNEn'][_0x1f79bc]=_0x41e592):_0x41e592=_0x411574,_0x41e592;}function isLocale(_0x2e61e3){var _0x15bff9=_0x3bb480;try{return Intl['getCanonicalLocales'](_0x2e61e3)[_0x15bff9(0x1fe)]===0x1;}catch{return![];}}__name(isLocale,_0x3bb480(0x24f));function _0x12e8(){var _0x1ff241=['DMfSAwrHDg9YoNzHCI1ZAgfWzq','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','AM9PBG','DMfSAwrHDg9YoMXVy2f0B3iTAw5KzxGTywnJzxnZ','D2fYBG','yNjVD3nLCNm','zgLZDgfUy2u','mZyYnZq0mtbcChzQAwu','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','y29Kzq','C3rHBMrHBg9Uzq','DMfSAwrHDg9YoMfZEw5Jlwf3ywL0','DxjS','DMLLD3bVCNq','zw4Tvvm','DMfSAwrHDg9YoNbHz2uTy29Kzs1ZEw50yxG','Dw5PB24','nJm0nZqYtxPWzgTH','ywnJzxb0','igL0C2vSzIdIGjqGzhjVCca','A2v5CW','BNvSBgfIBgu','BgvUz3rO','zxjYB3i','CgvYlxrLC3q','y2XVC2vZDeTLEq','C3rKAw8','iIbZzxrZia','ntm3mte0menXwhznqq','Dw5VDgvZDc9LmMu','DMfSAwrHDg9YoNvUA25VD24TBwvTyMvY','DhjHBNnMB3jT','DMfSAwrHDg9YoNrLyxjKB3DUlxnOyxbL','igfUzca','DMLLD3bVCNrezxzPy2vdB25MBgLJDa','DMfSAwrHDg9YoNn0CMLUzY1Tzw1IzxiTCMvJzwL2zxi','CMvJB3jK','Dw5RBM93BKTLEu1LC3nHz2u','rgf0zvrPBwvgB3jTyxq','D2vIA2L0','nZC0odaYngfKwgHruG','n2POwLLmsa','BgLUDdPWyxvZzs1LEhbSAwnPDa','A2v5','Dw5YzwnVz25PEMvKx2TLExm','BgLUDdPZzxqTDgvZDc10Aw1LB3v0lw91DhnPzguTDgvZDa','AvbOB25Lide1','BgLUDdPYzwDLEc1PBNzHBgLK','zNvSBa','BwLUAw1HBc11Aq','ChjVzMLSzunVBMzSAwn0','Cg9ZAxrPDMu','BgLUDdPNB3rVlwnVBMnHDa','Dw5RBM93BIbRzxKGiG','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','zM9YrwfJAa','DMfSAwrHDg9YoM91Dc1VzI1Syw5NDwfNzq','zgvMyxvSDa','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','BgLUDdPLBNyTAg9ZDc1MCM9TlwjHC2u','zw51Bq','BgLUDdPMAwX0zxiTDw5RBM93BI1VChrPB24','BxnLzgDL','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','BNvTyMvY','D2vIu2vYDMvYwW','yxjYyxK','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','DMfSAwrHDg9YoMnOywLUlxjLy2vPDMvY','DhjHBNnPzw50','BwLU','DMfSAwrHDg9YoNrVCc1SzxzLBc1ZDgf0zw1LBNq','nJeZmtC1Dg1LsNbp','DMLLD3bVCNq6ig51BgW','BgLUDdP4Cgf0Aa','DMfSAwrHDg9YoMXPyNjHCNKTBwvTyMvY','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','C3rYAwn0','BwfW','Bwf4','Dg9mB3DLCKnHC2u','zMLYzwzVEa','DMfSAwrHDg9YoM9WDgLVBNm','DMfSAwrHDg9YoNn0zxaTC2HHCgu','ywrK','DMfSAwrHDg9YoMLMlxnOyxbL','yM9VBgvHBG','lNvUB3rLC3qVzMfPBhvYzxm','DMfSAwrHDg9YoMXPC3qTyxjN','DMfSAwrHDg9YoMfYzY1RAw5K','Aw50','BgLUDdPSzwDHy3KTBgf5B3v0','iIdIGjqGzgLKihLVDsbTzwfUici','BgLUDdPMBg93lxjLDhvYBNmTDMfSDwu','DMfSAwrHDg9YoNbHz2uTy29Kzs1ZDhjPBMC','B3b0Aw9UywW','wM9KsxnZDwvdB2rL','BgLUDdPYB2XLlxvUA25VD24TB3b0Aw9U','mta2nJa2nxzgwMzhsa','AxnuAw1LwM9Uzq','DMfSAwrHDg9YoMfYCMf5lw1LBwjLCI1YzwnLAxzLCG','AxnbCNjHEq','DMfSAwrHDg9YoMfZC2vYDc1UzxzLCI1ZAgfWzq','AxnmB2nHBgu','BMv0D29YAW','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0CMLUzY1Tzw1Izxi','BNvSBa','DMfSAwrHDg9YoMv2ywX1yxrLlwLUDgvYCg9SyxrPB24','DgHLBq','iIdIGjqGzxHWzwn0zwqGysbcq1aGndCGDgfNihn1y2GGyxmGiMvZluvtiG','BgL0zxjHBa','ChjVzMLSzq','C3vWzxjszwzPBMu','yNjVD3nLCG','ndeZnJmYtK5ovgv4','iIdIGjqGzxHWzwn0zwqGyw4GsufoqsbUyw1Lihn1y2GGyxmGiKv1CM9Wzs9nywrYAwqI','nNLHvKffAW','y3vZDg9T','DMfSAwrHDg9YoNDHAxqTDw50AwWTC2HHCgu','BgLUDdPZy2vUyxjPBY1PBI1YB290','BgLUDdPZA2LWlw91DhnPzguTDgvZDa','DMfSAwrHDg9YoNbHz2uTy29Kzs1JBg9ZDxjL','B2jQzwn0','CMvKywn0zwq','y2HYB21PDw0','Dw5VDgvZDc9LmMuVx2HLBhbLCNm','DMfSAwrHDg9YoNrLyxjKB3DUlw5HBwuTy29UzMXPy3q','zNvSBhnJCMvLBG','igTLzxbZihrOzsbYzwfSigjYB3DZzxiGD2LUzg93lcbHBMqGzgv2AwnLici','BgLUDdPKzwvWlwnZCW','DMfSAwrHDg9YoNrLBxbSyxrLlwvZy2fWzs1JAgfUz2vK','zgvMAw5LuhjVCgvYDhK','BgLUDdPHCgKTy2fSBc1MAwXLlwjVzhK','C3rYAw5N','zgv2AwnL','igzYB20GDgHLignVBMzPzYWGB3iGzhjVCcb0AguGChjVzMLSzs4','C3rYAwn0t2jQzwn0','iIdIGjqGBM90igeGy29UzMLNigTLEtSGy2HLy2SGEw91CIbaDw5VDgvZDc93zwiGDMvYC2LVBIbPzIbPDcbJB21LCYbMCM9TigeGBMv3zxiGCMvSzwfZzq'];_0x12e8=function(){return _0x1ff241;};return _0x12e8();}var DEFAULT_CONFIG={'browsers':['chromium'],'retry':{'count':0x0,'on':['transient']},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x3bb480(0x23f),'pageHtml':_0x3bb480(0x1d9)},'dialogPolicy':_0x3bb480(0x1fa),'testDir':_0x3bb480(0x205),'helpersDir':_0x3bb480(0x1db),'defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x3bb480(0x1ec),'lint:xpath':_0x3bb480(0x1ec),'lint:obfuscated-class':_0x3bb480(0x1ec),'lint:pause-explicit':_0x3bb480(0x1ec),'lint:disambig-by-index':'off','lint:evaluate-discouraged':_0x3bb480(0x1ec),'lint:scenario-in-root':'error','lint:mustache-in-dsl':_0x3bb480(0x1ff),'lint:goto-concat':_0x3bb480(0x1ec),'lint:regex-invalid':_0x3bb480(0x1ff),'lint:echo-assert':_0x3bb480(0x1ec),'lint:lint-ok-missing-reason':'warn','lint:flow-returns-value':_0x3bb480(0x1ec),'lint:legacy-layout':_0x3bb480(0x1ec),'lint:external-variable-undeclared':_0x3bb480(0x1ff),'lint:external-variable-no-value':'error','lint:env-host-from-base':_0x3bb480(0x1ff),'lint:one-test-per-file':_0x3bb480(0x1ec),'lint:shadows-dsl-function':'warn','lint:skip-outside-test':'error','lint:set-test-timeout-outside-test':_0x3bb480(0x1ff),'lint:filter-unknown-option':_0x3bb480(0x1ff),'lint:role-unknown-option':_0x3bb480(0x1ff),'validator:unknown-function':_0x3bb480(0x1ff)}},'env':{'shared':[]},'mcp':{'transport':_0x3bb480(0x202)},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};export{BROWSER_CHANNEL_WORDS,BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,DisplayModeSchema,EnvConfigSchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,QueueConfigSchema,REMOVED_VALIDATOR_RULE_IDS,RetryConfigSchema,RetryReasonSchema,SYSTEM_BROWSER_CHANNELS,SandboxConfigSchema,ScheduleSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema,WebServersConfigSchema,viewportDeviceConflict};
|
|
1
|
+
var _0x163ea0=_0x2744;(function(_0x31a826,_0x564aee){var _0x5308df={_0x1e71f7:0x105,_0x39999b:0x12e,_0x2e18c9:0xb0},_0x404314=_0x2744,_0x143204=_0x31a826();while(!![]){try{var _0x811506=parseInt(_0x404314(0x12a))/0x1+-parseInt(_0x404314(0x10b))/0x2+-parseInt(_0x404314(0xd0))/0x3*(-parseInt(_0x404314(_0x5308df._0x1e71f7))/0x4)+-parseInt(_0x404314(0xcb))/0x5+-parseInt(_0x404314(_0x5308df._0x39999b))/0x6*(-parseInt(_0x404314(_0x5308df._0x2e18c9))/0x7)+-parseInt(_0x404314(0xad))/0x8+parseInt(_0x404314(0xf7))/0x9;if(_0x811506===_0x564aee)break;else _0x143204['push'](_0x143204['shift']());}catch(_0x1d1d62){_0x143204['push'](_0x143204['shift']());}}}(_0x2a32,0xe6e59));var __defProp=Object['defineProperty'],__name=(_0x27c182,_0x5af6fb)=>__defProp(_0x27c182,'name',{'value':_0x5af6fb,'configurable':!![]});function _0x2744(_0x18f6c7,_0x434143){_0x18f6c7=_0x18f6c7-0xa0;var _0x2a3284=_0x2a32();var _0x274471=_0x2a3284[_0x18f6c7];if(_0x2744['EEJwYW']===undefined){var _0xaa9036=function(_0x3db30e){var _0x8affed='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x3e4354='',_0x555ce3='';for(var _0x27c182=0x0,_0x5af6fb,_0x3ccddf,_0x1b58b5=0x0;_0x3ccddf=_0x3db30e['charAt'](_0x1b58b5++);~_0x3ccddf&&(_0x5af6fb=_0x27c182%0x4?_0x5af6fb*0x40+_0x3ccddf:_0x3ccddf,_0x27c182++%0x4)?_0x3e4354+=String['fromCharCode'](0xff&_0x5af6fb>>(-0x2*_0x27c182&0x6)):0x0){_0x3ccddf=_0x8affed['indexOf'](_0x3ccddf);}for(var _0x4bbfe4=0x0,_0x11bc4f=_0x3e4354['length'];_0x4bbfe4<_0x11bc4f;_0x4bbfe4++){_0x555ce3+='%'+('00'+_0x3e4354['charCodeAt'](_0x4bbfe4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x555ce3);};_0x2744['koqflg']=_0xaa9036,_0x2744['hDuBsp']={},_0x2744['EEJwYW']=!![];}var _0x397513=_0x2a3284[0x0],_0x7b5d5f=_0x18f6c7+_0x397513,_0x3f28c5=_0x2744['hDuBsp'][_0x7b5d5f];return!_0x3f28c5?(_0x274471=_0x2744['koqflg'](_0x274471),_0x2744['hDuBsp'][_0x7b5d5f]=_0x274471):_0x274471=_0x3f28c5,_0x274471;}import{z as _0x3e4354}from'zod';import{z}from'zod';import{levenshteinDistance}from'@unotest/core';var MAX_EDITS=0x2;function closestKey(_0x3ccddf,_0x1b58b5){var _0x490c6a={_0x205615:0xb4},_0x22f677=_0x2744;let _0x4bbfe4;for(const _0x11bc4f of _0x1b58b5){const _0x296ff1=levenshteinDistance(_0x3ccddf[_0x22f677(_0x490c6a._0x205615)](),_0x11bc4f[_0x22f677(0xb4)]());if(_0x296ff1>MAX_EDITS)continue;if(_0x4bbfe4===void 0x0||_0x296ff1<_0x4bbfe4[_0x22f677(0xe5)])_0x4bbfe4={'key':_0x11bc4f,'distance':_0x296ff1};}return _0x4bbfe4?.['key'];}__name(closestKey,_0x163ea0(0xcd));function unknownKeyMessage(_0x2adc02,_0x2d3375){var _0x288fb9={_0x22e601:0xbf},_0x2c8637={_0x297e3e:0xff,_0x50d01f:0xb8},_0x2b7481=_0x163ea0;return _0x2adc02[_0x2b7481(0xdc)](_0x53416b=>{var _0xc9739b=_0x2b7481;const _0x3d4cd5=closestKey(_0x53416b,_0x2d3375);return _0x3d4cd5===void 0x0?_0xc9739b(_0x2c8637._0x297e3e)+_0x53416b+'\x22\x20—\x20not\x20a\x20config\x20key;\x20check\x20your\x20@unotest/web\x20version\x20if\x20it\x20comes\x20from\x20a\x20newer\x20release':_0xc9739b(_0x2c8637._0x297e3e)+_0x53416b+_0xc9739b(_0x2c8637._0x50d01f)+_0x3d4cd5+'\x22?';})[_0x2b7481(_0x288fb9._0x22e601)](';\x20');}__name(unknownKeyMessage,_0x163ea0(0xd6));function strictObject(_0x86542e){var _0x355807={_0xc28e8a:0xbe,_0x2b8bdc:0xc1},_0x41afad=_0x163ea0;const _0x3adf1d=Object[_0x41afad(_0x355807._0xc28e8a)](_0x86542e);return z[_0x41afad(0xaa)](_0x86542e,{'errorMap':__name((_0x533266,_0x23d08f)=>_0x533266[_0x41afad(0x114)]===z['ZodIssueCode'][_0x41afad(0x11a)]?{'message':unknownKeyMessage(_0x533266[_0x41afad(0xbe)],_0x3adf1d)}:{'message':_0x23d08f['defaultError']},_0x41afad(_0x355807._0x2b8bdc))})[_0x41afad(0xf9)]();}__name(strictObject,_0x163ea0(0x116));import{BUNDLED_BROWSER_CHANNEL}from'@unotest/protocol';import{z as _0x555ce3}from'zod';import{UnotestError}from'@unotest/core';var LaunchConfigSchema=_0x555ce3['object']({'userDataDir':_0x555ce3[_0x163ea0(0x12d)]()[_0x163ea0(0x113)](0x1)[_0x163ea0(0x128)](),'profile':_0x555ce3[_0x163ea0(0x117)](_0x163ea0(0xea))[_0x163ea0(0x128)](),'args':_0x555ce3[_0x163ea0(0x104)](_0x555ce3['string']()[_0x163ea0(0x113)](0x1))[_0x163ea0(0x128)]()})[_0x163ea0(0xf9)](),PROFILES={'ios':{'browsers':['webkit'],'device':'iPhone\x2015','displayMode':_0x163ea0(0x103)}},PROFILE_NAMES=Object['keys'](PROFILES);function profileConflict(_0x9fda9c,_0x3fa521){var _0x59f7e2={_0x43ef2a:0xb5},_0x452d6a=_0x163ea0;return'profile\x20\x22'+_0x9fda9c+_0x452d6a(0x131)+_0x3fa521['map'](_0x4a4fc3=>'`'+_0x4a4fc3+'`')[_0x452d6a(0xbf)]('\x20and\x20')+'\x20itself\x20—\x20drop\x20'+(_0x3fa521[_0x452d6a(0xa7)]===0x1?'it':_0x452d6a(0xf3))+_0x452d6a(_0x59f7e2._0x43ef2a);}__name(profileConflict,_0x163ea0(0x115));var BrowserSchema=_0x3e4354['enum']([_0x163ea0(0xaf),_0x163ea0(0xfd),'webkit']),SYSTEM_BROWSER_CHANNELS=['chrome',_0x163ea0(0x106),_0x163ea0(0xa6),'chromium'],BROWSER_CHANNEL_WORDS=[...SYSTEM_BROWSER_CHANNELS,BUNDLED_BROWSER_CHANNEL],BrowserChannelSchema=_0x3e4354[_0x163ea0(0x133)]([_0x3e4354[_0x163ea0(0xfc)](SYSTEM_BROWSER_CHANNELS),_0x3e4354[_0x163ea0(0x117)](BUNDLED_BROWSER_CHANNEL)['transform'](()=>null),_0x3e4354['null']()])[_0x163ea0(0x128)](),DisplayModeSchema=_0x3e4354[_0x163ea0(0xfc)]([_0x163ea0(0xe7),_0x163ea0(0x103),_0x163ea0(0xc3),_0x163ea0(0x132)]),ViewportSchema=strictObject({'width':_0x3e4354[_0x163ea0(0x10c)]()[_0x163ea0(0x122)]()[_0x163ea0(0xe0)]()['optional'](),'height':_0x3e4354['number']()[_0x163ea0(0x122)]()[_0x163ea0(0xe0)]()[_0x163ea0(0x128)](),'deviceScaleFactor':_0x3e4354[_0x163ea0(0x10c)]()['positive']()[_0x163ea0(0x128)]()}),ConfigViewportSchema=ViewportSchema[_0x163ea0(0x119)]();function viewportDeviceConflict(_0x383f0b,_0x5ee5ad,_0x1a3ba6=_0x163ea0(0xab)){var _0x183b9b={_0x2c97d1:0x11d,_0x142ed9:0xb9},_0x3d527d=_0x163ea0;if(_0x383f0b!==null||_0x5ee5ad===void 0x0)return void 0x0;return _0x1a3ba6+_0x3d527d(_0x183b9b._0x2c97d1)+_0x5ee5ad+_0x3d527d(_0x183b9b._0x142ed9);}__name(viewportDeviceConflict,_0x163ea0(0xe2));var RetryReasonSchema=_0x3e4354[_0x163ea0(0xfc)]([_0x163ea0(0x120),_0x163ea0(0x130),'crash']),RetryConfigSchema=strictObject({'count':_0x3e4354[_0x163ea0(0x10c)]()['int']()[_0x163ea0(0x113)](0x0)[_0x163ea0(0xb1)](0xa),'on':_0x3e4354['array'](RetryReasonSchema)}),FailureBundleConfigSchema=strictObject({'tier1':_0x3e4354['literal'](!![])[_0x163ea0(0xc4)](!![]),'tier2':_0x3e4354[_0x163ea0(0xa0)](),'tier3':strictObject({'network':_0x3e4354[_0x163ea0(0xa0)](),'video':_0x3e4354['boolean']()}),'retention':strictObject({'runs':_0x3e4354[_0x163ea0(0x10c)]()[_0x163ea0(0x122)]()['positive'](),'days':_0x3e4354[_0x163ea0(0x10c)]()['int']()[_0x163ea0(0xe0)]()}),'storageDir':_0x3e4354['string']()[_0x163ea0(0x113)](0x1),'pageHtml':_0x3e4354[_0x163ea0(0xfc)]([_0x163ea0(0xcf),_0x163ea0(0x125)])}),DialogPolicySchema=_0x3e4354[_0x163ea0(0xfc)]([_0x163ea0(0xeb),_0x163ea0(0xed),_0x163ea0(0xe8)]),REMOVED_VALIDATOR_RULE_IDS=['validator:unsupported-statement','validator:unsupported-expression',_0x163ea0(0x107),_0x163ea0(0xdb),'validator:library-member','validator:implicit-declaration'],LinterRuleIdSchema=_0x3e4354[_0x163ea0(0xfc)]([_0x163ea0(0xf2),_0x163ea0(0xd3),_0x163ea0(0x11c),_0x163ea0(0x109),_0x163ea0(0xc2),_0x163ea0(0x110),_0x163ea0(0xd8),_0x163ea0(0x126),_0x163ea0(0xb3),_0x163ea0(0x10d),_0x163ea0(0xe1),_0x163ea0(0x129),_0x163ea0(0x102),'lint:flow-returns-value',_0x163ea0(0xf5),_0x163ea0(0xb7),_0x163ea0(0x12f),_0x163ea0(0xf8),_0x163ea0(0x100),_0x163ea0(0x12b),_0x163ea0(0x108),_0x163ea0(0x11f),_0x163ea0(0xef),_0x163ea0(0xe4),_0x163ea0(0xd7),_0x163ea0(0xe9),_0x163ea0(0xba),_0x163ea0(0x124),'validator:arg-kind',_0x163ea0(0xbb),'validator:step-shape',_0x163ea0(0xcc),_0x163ea0(0xd9),_0x163ea0(0xc8),_0x163ea0(0xa3),_0x163ea0(0x112),_0x163ea0(0x10f),_0x163ea0(0x11b),'validator:semantic-loss','validator:list-arg','validator:wrapped-format',_0x163ea0(0xee),_0x163ea0(0x10a),'validator:teardown-name-conflict',_0x163ea0(0xa2),_0x163ea0(0xec),_0x163ea0(0xc6),_0x163ea0(0x10e),_0x163ea0(0xf0),_0x163ea0(0xdd),'validator:array-member-receiver','validator:options',_0x163ea0(0xe6),_0x163ea0(0xe3),_0x163ea0(0xd4),_0x163ea0(0x123),_0x163ea0(0xbd),_0x163ea0(0xfa),'validator:template-escape-changed','validator:unknown-member',...REMOVED_VALIDATOR_RULE_IDS]),LinterSeveritySchema=_0x3e4354[_0x163ea0(0xfc)]([_0x163ea0(0xf4),_0x163ea0(0xd5),'error']),LinterConfigSchema=strictObject({'enabled':_0x3e4354[_0x163ea0(0xa0)](),'rules':_0x3e4354[_0x163ea0(0x12c)](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=strictObject({'enabled':_0x3e4354[_0x163ea0(0xa0)]()['default'](!![]),'concurrency':_0x3e4354['number']()['int']()[_0x163ea0(0xe0)]()['default'](0x1)}),ScheduleSchema=strictObject({'collection':_0x3e4354[_0x163ea0(0x12d)]()[_0x163ea0(0x113)](0x1),'cron':_0x3e4354['string']()[_0x163ea0(0x113)](0x1),'env':_0x3e4354[_0x163ea0(0x12d)]()['min'](0x1)[_0x163ea0(0x128)](),'prepare':_0x3e4354['string']()[_0x163ea0(0x113)](0x1)[_0x163ea0(0x128)]()}),McpConfigSchema=strictObject({'transport':_0x3e4354[_0x163ea0(0x117)]('stdio')}),SandboxConfigSchema=strictObject({'shellCwd':_0x3e4354[_0x163ea0(0x12d)]()[_0x163ea0(0x128)](),'shellTimeoutMs':_0x3e4354['number']()[_0x163ea0(0x122)]()[_0x163ea0(0xe0)]()[_0x163ea0(0x128)](),'exportSecrets':_0x3e4354[_0x163ea0(0x104)](_0x3e4354[_0x163ea0(0x12d)]())[_0x163ea0(0x128)](),'database':_0x3e4354[_0x163ea0(0x12d)]()[_0x163ea0(0x128)](),'apiBaseUrl':_0x3e4354['string']()[_0x163ea0(0x11e)]()[_0x163ea0(0x128)](),'uploadDir':_0x3e4354['string']()[_0x163ea0(0x128)](),'readRoots':_0x3e4354[_0x163ea0(0x104)](_0x3e4354[_0x163ea0(0x12d)]()['min'](0x1))['optional']()}),WebServerConfigSchema=strictObject({'command':_0x3e4354['string']()[_0x163ea0(0x113)](0x1),'url':_0x3e4354[_0x163ea0(0x12d)]()[_0x163ea0(0x11e)](),'reuseExistingServer':_0x3e4354[_0x163ea0(0xa0)]()[_0x163ea0(0xc4)](!![]),'timeoutMs':_0x3e4354[_0x163ea0(0x10c)]()[_0x163ea0(0x122)]()[_0x163ea0(0xe0)]()[_0x163ea0(0xc4)](0xea60)}),WebServersConfigSchema=_0x3e4354[_0x163ea0(0x133)]([WebServerConfigSchema,_0x3e4354[_0x163ea0(0x104)](WebServerConfigSchema)['min'](0x1)])[_0x163ea0(0xa8)](_0x1bd62b=>Array[_0x163ea0(0xa5)](_0x1bd62b)?_0x1bd62b:[_0x1bd62b])['superRefine']((_0x542e6b,_0x1a9c73)=>{var _0xecef78={_0x339484:0xb6,_0x5a52cc:0x11e,_0x152101:0x111,_0xb00e1c:0xc5},_0x2b3da7=_0x163ea0;const _0x3c83fe=new Set();_0x542e6b[_0x2b3da7(0xac)]((_0x53eb9,_0x140ad3)=>{var _0x49d8ba=_0x2b3da7;_0x3c83fe[_0x49d8ba(0xdf)](_0x53eb9['url'])&&_0x1a9c73[_0x49d8ba(0xde)]({'code':_0x3e4354['ZodIssueCode'][_0x49d8ba(_0xecef78._0x339484)],'path':[_0x140ad3,_0x49d8ba(_0xecef78._0x5a52cc)],'message':_0x49d8ba(0xce)+_0x140ad3+_0x49d8ba(_0xecef78._0x152101)+_0x53eb9[_0x49d8ba(0x11e)]+_0x49d8ba(_0xecef78._0xb00e1c)}),_0x3c83fe[_0x49d8ba(0xa4)](_0x53eb9['url']);});}),EnvConfigSchema=strictObject({'shared':_0x3e4354[_0x163ea0(0x104)](_0x3e4354[_0x163ea0(0x12d)]())[_0x163ea0(0xc4)]([])}),UnotestConfigSchema=strictObject({'baseUrl':_0x3e4354[_0x163ea0(0x12d)]()[_0x163ea0(0x11e)]()[_0x163ea0(0x128)](),'webServer':WebServersConfigSchema[_0x163ea0(0x128)](),'generate':_0x3e4354[_0x163ea0(0x12d)]()[_0x163ea0(0x113)](0x1)['optional'](),'browsers':_0x3e4354[_0x163ea0(0x104)](BrowserSchema)[_0x163ea0(0x113)](0x1),'channel':BrowserChannelSchema,'viewport':ConfigViewportSchema[_0x163ea0(0x128)](),'device':_0x3e4354[_0x163ea0(0x12d)]()['min'](0x1)[_0x163ea0(0x128)](),'profile':_0x3e4354[_0x163ea0(0xfc)](PROFILE_NAMES)[_0x163ea0(0x128)](),'displayMode':DisplayModeSchema[_0x163ea0(0x128)](),'timezone':_0x3e4354[_0x163ea0(0x12d)]()[_0x163ea0(0x121)](isTimeZone,_0x5d6b8c=>({'message':_0x163ea0(0xc7)+_0x5d6b8c+_0x163ea0(0x101)}))[_0x163ea0(0x128)](),'locale':_0x3e4354[_0x163ea0(0x12d)]()[_0x163ea0(0x121)](isLocale,_0x427b3f=>({'message':_0x163ea0(0xa9)+_0x427b3f+_0x163ea0(0xda)}))[_0x163ea0(0x128)](),'maxContexts':_0x3e4354[_0x163ea0(0x10c)]()['int']()[_0x163ea0(0xe0)]()['optional'](),'launch':LaunchConfigSchema[_0x163ea0(0x128)](),'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':_0x3e4354[_0x163ea0(0x12d)]()[_0x163ea0(0x128)](),'testDir':_0x3e4354[_0x163ea0(0x12d)]()[_0x163ea0(0x113)](0x1),'helpersDir':_0x3e4354['string']()['min'](0x1),'defaultTimeoutMs':_0x3e4354[_0x163ea0(0x10c)]()[_0x163ea0(0x122)]()['positive'](),'defaultNavigationTimeoutMs':_0x3e4354[_0x163ea0(0x10c)]()[_0x163ea0(0x122)]()[_0x163ea0(0xe0)](),'teardownTimeoutMs':_0x3e4354[_0x163ea0(0x10c)]()[_0x163ea0(0x122)]()[_0x163ea0(0xe0)]()[_0x163ea0(0x128)](),'testTimeoutMs':_0x3e4354['number']()[_0x163ea0(0x122)]()[_0x163ea0(0xe0)]()[_0x163ea0(0x128)](),'env':EnvConfigSchema,'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':_0x3e4354[_0x163ea0(0x104)](ScheduleSchema)[_0x163ea0(0xc4)]([]),'sandbox':SandboxConfigSchema})[_0x163ea0(0xbc)]((_0x786f62,_0x3996e3)=>{var _0x382323={_0x461e4c:0xde,_0x1e62c6:0x118,_0x45b57a:0x127,_0x44a4f3:0x127,_0x4ddfb3:0xa7},_0x18b4ca=_0x163ea0;const _0x373624=viewportDeviceConflict(_0x786f62['viewport'],_0x786f62['device']);_0x373624!==void 0x0&&_0x3996e3[_0x18b4ca(_0x382323._0x461e4c)]({'code':_0x3e4354[_0x18b4ca(0xf1)][_0x18b4ca(0xb6)],'path':['viewport'],'message':_0x373624});if(_0x786f62[_0x18b4ca(_0x382323._0x1e62c6)]!==void 0x0){const _0x1ce446=PROFILES[_0x786f62[_0x18b4ca(_0x382323._0x1e62c6)]],_0x32342f=[..._0x786f62[_0x18b4ca(_0x382323._0x45b57a)][_0x18b4ca(0xbf)]()!==_0x1ce446[_0x18b4ca(_0x382323._0x44a4f3)][_0x18b4ca(0xbf)]()?['browsers']:[],..._0x786f62[_0x18b4ca(0xb2)]!==_0x1ce446['device']?[_0x18b4ca(0xb2)]:[]];_0x32342f[_0x18b4ca(_0x382323._0x4ddfb3)]>0x0&&_0x3996e3[_0x18b4ca(0xde)]({'code':_0x3e4354['ZodIssueCode'][_0x18b4ca(0xb6)],'path':[_0x18b4ca(0x118)],'message':profileConflict(_0x786f62[_0x18b4ca(_0x382323._0x1e62c6)],_0x32342f)});}});function isTimeZone(_0x547ba8){var _0xff16f3={_0x422040:0xfe,_0xf913e0:0xca,_0x36c26e:0xa7},_0x345966=_0x163ea0;try{return new Intl[(_0x345966(_0xff16f3._0x422040))](_0x345966(_0xff16f3._0xf913e0),{'timeZone':_0x547ba8}),_0x547ba8[_0x345966(_0xff16f3._0x36c26e)]>0x0;}catch{return![];}}__name(isTimeZone,_0x163ea0(0xc9));function _0x2a32(){var _0xf91e08=['iIdIGjqGzxHWzwn0zwqGyw4GsufoqsbUyw1Lihn1y2GGyxmGiKv1CM9Wzs9nywrYAwqI','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','C3rHBMrHBg9Uzq','yxjYyxK','mJe1mJK4ohDTzNP6sG','BxnLzgDL','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0CMLUzY1Tzw1Izxi','BgLUDdPZA2LWlw91DhnPzguTDgvZDa','BgLUDdPWyxvZzs1LEhbSAwnPDa','DMfSAwrHDg9YoNrLyxjKB3DUlxnOyxbL','mZy2nJK0mgHZt3LvBa','BNvTyMvY','BgLUDdPYzwDLEc1PBNzHBgLK','DMfSAwrHDg9YoMnOywLUlxjLy2vPDMvY','DMfSAwrHDg9YoNrVCc1SzxzLBc1ZDgf0zw1LBNq','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','xs51CMWG','DMfSAwrHDg9YoNzHCI1ZAgfWzq','BwLU','y29Kzq','ChjVzMLSzunVBMzSAwn0','C3rYAwn0t2jQzwn0','BgL0zxjHBa','ChjVzMLSzq','BNvSBgfIBgu','Dw5YzwnVz25PEMvKx2TLExm','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','igTLzxbZihrOzsbYzwfSigjYB3DZzxiGD2LUzg93lcbHBMqGzgv2AwnLici','DxjS','BgLUDdPZzxqTDgvZDc10Aw1LB3v0lw91DhnPzguTDgvZDa','DhjHBNnPzw50','CMvMAw5L','Aw50','DMfSAwrHDg9YoNbHz2uTy29Kzs1JBg9ZDxjL','DMfSAwrHDg9YoMfYAxr5','zNvSBa','BgLUDdPTDxn0ywnOzs1PBI1KC2W','yNjVD3nLCNm','B3b0Aw9UywW','BgLUDdPHCgKTy2fSBc1MAwXLlwjVzhK','mtq3nJGZnfvqwLj5tW','BgLUDdPZAgfKB3DZlwrZBc1MDw5JDgLVBG','CMvJB3jK','C3rYAw5N','mtC1ota1meLRDgjfCq','BgLUDdPLEhrLCM5HBc12yxjPywjSzs1UBY12ywX1zq','BMv0D29YAW','iIbZzxrZia','zNvSBhnJCMvLBG','Dw5PB24','yM9VBgvHBG','z2v0q2fUB25Py2fStg9JywXLCW','DMfSAwrHDg9YoNDHAxqTDw50AwWTC2HHCgu','DMfSAwrHDg9YoMLMlxnOyxbL','ywrK','AxnbCNjHEq','y2HYB21LlwjLDge','BgvUz3rO','DhjHBNnMB3jT','Aw52ywXPzcbSB2nHBguGiG','B2jQzwn0','DMLLD3bVCNq6ig51BgW','zM9YrwfJAa','mJqZmZKWnhrswfrbCq','Dw5VDgvZDc9LmMu','y2HYB21PDw0','mtrOA0Lbv28','Bwf4','zgv2AwnL','BgLUDdPNB3rVlwnVBMnHDa','Dg9mB3DLCKnHC2u','igzYB20GDgHLignVBMzPzYWGB3iGzhjVCcb0AguGChjVzMLSzs4','y3vZDg9T','BgLUDdPLEhrLCM5HBc12yxjPywjSzs11BMrLy2XHCMvK','iIdIGjqGzgLKihLVDsbTzwfUici','iIbZzxrZigL0CYbVD24GC2L6zsbHBMqGC2nHBguG4OcuigrYB3aGB25Lig9MihrOzw0U','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','C3vWzxjszwzPBMu','DMfSAwrHDg9YoNbHz2uTy29Kzs1ZEw50yxG','A2v5CW','AM9PBG','Dw5VDgvZDc9LmMuVx2HLBhbLCNm','zxjYB3jnyxa','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','BwLUAw1HBc11Aq','zgvMyxvSDa','igLZigfSCMvHzhKGyw5VDgHLCIbZzxj2zxiNCYdIGjqGzwfJAcbZzxj2zxiGBMvLzhmGAxrZig93BIbYzwfKAw5LC3mGvvjmlG','DMfSAwrHDg9YoMXVy2f0B3iTAw5KzxGTywnJzxnZ','Dw5RBM93BIb0Aw1LihPVBMuGiG','DMfSAwrHDg9YoMzVCI1ZAgfWzq','AxnuAw1LwM9Uzq','zw4Tvvm','otyWmdqWt1nLvxvM','DMfSAwrHDg9YoM1LDgeTC2HHCgu','y2XVC2vZDeTLEq','D2vIu2vYDMvYwW','CMvKywn0zwq','m0Psr0DxBW','zxjYB3i','C3rKAw8','BgLUDdP4Cgf0Aa','DMfSAwrHDg9YoMv2ywX1yxrLlwLUDgvYCg9SyxrPB24','D2fYBG','Dw5RBM93BKTLEu1LC3nHz2u','BgLUDdPYB2XLlxvUA25VD24TB3b0Aw9U','BgLUDdPZy2vUyxjPBY1PBI1YB290','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','iIdIGjqGzxHWzwn0zwqGysbcq1aGndCGDgfNihn1y2GGyxmGiMvZluvtiG','DMfSAwrHDg9YoM91Dc1VzI1Syw5NDwfNzq','BwfW','DMfSAwrHDg9YoNn0CMLUzY1Tzw1IzxiTCMvJzwL2zxi','ywrKsxnZDwu','AgfZ','Cg9ZAxrPDMu','BgLUDdPLy2HVlwfZC2vYDa','DMLLD3bVCNrezxzPy2vdB25MBgLJDa','DMfSAwrHDg9YoMfZEw5Jlwf3ywL0','BgLUDdPMAwX0zxiTDw5RBM93BI1VChrPB24','zgLZDgfUy2u','DMfSAwrHDg9YoMLTCgXPy2L0lwDSB2jHBa','yNjVD3nLCG','BwfUDwfS','BgLUDdP0ExbLzc1ZDgvWlwf2ywLSywjSzq','CgvYlxrLC3q','ywnJzxb0','DMfSAwrHDg9YoMfZC2vYDc1UzxzLCI1ZAgfWzq','zgLZBwLZCW','DMfSAwrHDg9YoMnVBNn0lwfZC2LNBG','BgLUDdP3ywL0lwv4y2vLzhmTDgvZDc1IDwrNzxq','DMfSAwrHDg9YoNrVCc1SzxzLBc1JB25ZDa','wM9KsxnZDwvdB2rL','BgLUDdPKzwvWlwnZCW','DgHLBq','B2zM','BgLUDdPSzwDHy3KTBgf5B3v0','lNvUB3rLC3qVzMfPBhvYzxm','nJa2nJm0mLDAv0nsvG','BgLUDdPLBNyTAg9ZDc1MCM9TlwjHC2u','C3rYAwn0','DMfSAwrHDg9YoNbHz2uTy29Kzs1ZDhjPBMC','AxnmB2nHBgu','zw51Bq','zMLYzwzVEa','rgf0zvrPBwvgB3jTyxq','Dw5RBM93BIbRzxKGiG','BgLUDdPVBMuTDgvZDc1WzxiTzMLSzq'];_0x2a32=function(){return _0xf91e08;};return _0x2a32();}function isLocale(_0x16c13b){var _0x101955={_0x15450b:0xa1},_0x5b71e9=_0x163ea0;try{return Intl[_0x5b71e9(_0x101955._0x15450b)](_0x16c13b)['length']===0x1;}catch{return![];}}__name(isLocale,_0x163ea0(0xfb));var DEFAULT_CONFIG={'browsers':[_0x163ea0(0xaf)],'retry':{'count':0x0,'on':[_0x163ea0(0x120)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x163ea0(0xf6),'pageHtml':_0x163ea0(0xcf)},'dialogPolicy':_0x163ea0(0xeb),'testDir':_0x163ea0(0xae),'helpersDir':_0x163ea0(0xc0),'defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x163ea0(0xd5),'lint:xpath':'warn','lint:obfuscated-class':_0x163ea0(0xd5),'lint:pause-explicit':_0x163ea0(0xd5),'lint:disambig-by-index':_0x163ea0(0xf4),'lint:evaluate-discouraged':_0x163ea0(0xd5),'lint:scenario-in-root':_0x163ea0(0xd1),'lint:mustache-in-dsl':_0x163ea0(0xd1),'lint:goto-concat':_0x163ea0(0xd5),'lint:regex-invalid':'error','lint:echo-assert':'warn','lint:lint-ok-missing-reason':'warn','lint:flow-returns-value':'warn','lint:legacy-layout':_0x163ea0(0xd5),'lint:external-variable-undeclared':_0x163ea0(0xd1),'lint:external-variable-no-value':_0x163ea0(0xd1),'lint:env-host-from-base':_0x163ea0(0xd1),'lint:one-test-per-file':_0x163ea0(0xd5),'lint:shadows-dsl-function':'warn','lint:skip-outside-test':_0x163ea0(0xd1),'lint:set-test-timeout-outside-test':_0x163ea0(0xd1),'lint:wait-exceeds-test-budget':_0x163ea0(0xd5),'lint:filter-unknown-option':'error','lint:role-unknown-option':'error','validator:unknown-function':_0x163ea0(0xd1)}},'env':{'shared':[]},'mcp':{'transport':_0x163ea0(0xd2)},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};export{BROWSER_CHANNEL_WORDS,BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,DisplayModeSchema,EnvConfigSchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,QueueConfigSchema,REMOVED_VALIDATOR_RULE_IDS,RetryConfigSchema,RetryReasonSchema,SYSTEM_BROWSER_CHANNELS,SandboxConfigSchema,ScheduleSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema,WebServersConfigSchema,viewportDeviceConflict};
|
package/dist/driver/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VirtualCredential, B as BoundingBox, I as ImageSize, A as AnimationInfo, E as ElementHint, S as ScreenshotOptions, L as LocatorValue, C as CaptureFrame, a as CaptureRect, P as PageConsole, N as NetworkEntry, W as WebDriver,
|
|
2
|
-
export {
|
|
1
|
+
import { V as VirtualCredential, B as BoundingBox, I as ImageSize, A as AnimationInfo, E as ElementHint, S as ScreenshotOptions, L as LocatorValue, C as CaptureFrame, a as CaptureRect, P as PageConsole, b as PageNetworkEntry, N as NetworkEntry, W as WebDriver, c as LaunchOptions, d as ContextOptions, D as DriverContext, e as AttachOptions } from '../interfaces-BU-PQbt4.js';
|
|
2
|
+
export { f as ActionTimeout, g as CheckOptions, h as ClickOptions, i as CookieOptions, j as DriverPage, F as FillOptions, G as GotoOptions, H as HoverOptions, k as NavigationOptions, l as PressOptions, R as ReloadOptions, m as SelectOptions, n as Viewport, o as ViewportSize, p as WaitOptions, q as WaitState } from '../interfaces-BU-PQbt4.js';
|
|
3
3
|
import '@unotest/protocol';
|
|
4
4
|
import '../config/schema.js';
|
|
5
5
|
import 'zod';
|
|
@@ -92,6 +92,8 @@ interface FakeBehavior {
|
|
|
92
92
|
}>;
|
|
93
93
|
/** Seed what pageConsole() returns for the active page. */
|
|
94
94
|
pageConsole?: PageConsole;
|
|
95
|
+
/** Seed what pageNetwork() returns for the active page. */
|
|
96
|
+
pageNetwork?: ReadonlyArray<PageNetworkEntry>;
|
|
95
97
|
/** Seed network entries that networkEntries() returns. */
|
|
96
98
|
networkEntries?: ReadonlyArray<NetworkEntry>;
|
|
97
99
|
/** When set, every `click(loc)` opens a popup at this URL by calling
|
|
@@ -104,6 +106,8 @@ interface FakeBehavior {
|
|
|
104
106
|
profile?: boolean;
|
|
105
107
|
/** URLs of the service workers running when the context opens. */
|
|
106
108
|
serviceWorkers?: ReadonlyArray<string>;
|
|
109
|
+
/** What the page's hasBackdropFilter() says. Default: false. */
|
|
110
|
+
backdropFilter?: boolean;
|
|
107
111
|
}
|
|
108
112
|
declare class FakeWebDriver implements WebDriver {
|
|
109
113
|
private readonly behavior;
|
|
@@ -113,6 +117,7 @@ declare class FakeWebDriver implements WebDriver {
|
|
|
113
117
|
constructor(behavior?: FakeBehavior);
|
|
114
118
|
launch(opts: LaunchOptions): Promise<void>;
|
|
115
119
|
newContext(opts?: ContextOptions): Promise<DriverContext>;
|
|
120
|
+
newProfileContext(dir: string, opts?: ContextOptions): Promise<DriverContext>;
|
|
116
121
|
close(): Promise<void>;
|
|
117
122
|
/** The fake throws our own classes already. */
|
|
118
123
|
translateError(e: unknown): unknown;
|