@unotest/web 0.51.0 → 0.52.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +91 -3
- package/README.md +22 -13
- package/bin/unotest-web.js +2 -1
- package/dist/config/schema.d.ts +17 -12
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +39 -41
- package/dist/dsl/index.js +1 -1
- package/dist/dsl/v8/scenario-worker.d.ts +2 -0
- package/dist/dsl/v8/scenario-worker.js +1 -0
- package/dist/dsl/web-dsl-language-service.d.ts +5 -0
- package/dist/dsl/web-dsl-language-service.js +1 -1
- package/dist/mcp/server.js +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/dsl-reference.md +166 -205
- package/package.json +16 -8
- package/types/unotest-lib.d.ts +93 -27
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,93 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.52.1] - 2026-10-18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e01789b: Fixed: `e2e` with no scenario name, and `--help`, now show `e2e <feature>/<name>`, the path `lint` accepts. They offered `unotest/e2e/<name>.js` first, a file directly in `unotest/e2e/`, which `lint` refuses as `lint:scenario-in-root` and `run_test` will not run.
|
|
8
|
+
- 9e950e1: Fixed: with TypeScript 7 installed, the line `lint` prints when it skips the type check now says `Install a supported one (npm i -D typescript@5)` instead of `Install it`, which read as if TypeScript were missing. The README runs `schedules`, `collection … --scheduled` and `viewer` from `unotest/`, like the other commands, so they use the version the suite pins.
|
|
9
|
+
- cc4074a: Fixed: a class declared inside a test, a flow or a helper (`class Page { … }` in a step) is a local name again. `lint` and `run_test` no longer refuse it as `lint:external-variable-undeclared` ("`Page` is not declared in unotest/.env"), and the name of a class expression (`const Q = class Page { … }`) is not read as an external variable either. A name nothing declares is still reported as before. A class at the top level of a file remains `validator:top-level-statement`.
|
|
10
|
+
- e75a9bd: Fixed: `lint` no longer fails as a whole when the project has TypeScript 7 installed (`Cannot read properties of undefined (reading 'ES2022')`). TypeScript 7 has no compiler API for the type check to use, so `lint` now prints one line, for example `type check skipped — typescript 7.0.2 is installed: 5.x or 6.x is supported, another major skips this layer`, and reports the validator's findings as before. The optional peer dependency is now `typescript >=5.0.0 <7`. The advice to install it names the version, `npm i -D typescript@5`, so following it no longer gets TypeScript 7.
|
|
11
|
+
- @unotest/core@0.52.1
|
|
12
|
+
- @unotest/dsl@0.52.1
|
|
13
|
+
- @unotest/grounder-client@0.52.1
|
|
14
|
+
- @unotest/protocol@0.52.1
|
|
15
|
+
- @unotest/viewer@0.52.1
|
|
16
|
+
|
|
17
|
+
## [0.52.0] - 2026-10-17
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- 4e37bc3: BREAKING: scenarios run on V8, the engine of Node and Chrome, as the JavaScript they are. Classes, getters, generators, `Date`, `Symbol`, `instanceof` and the built-in objects now work, with the semantics of the language; the white list of the old library is gone. A scenario still has no APIs of Node or of the browser (`require`, `process`, `fetch`, `window`, timers): `apiCall`, `shell`, `evaluate`, `pause` and `waitUntil` stand in for them, and `console` prints nowhere. A scenario is not a sandbox: it runs with the rights of the user who started it, as a Playwright test does.
|
|
22
|
+
|
|
23
|
+
What changes for a suite, beyond the `let` and Continue entries of this release:
|
|
24
|
+
|
|
25
|
+
- `keys()`, `values()` and `entries()` of a Map or a Set, and `matchAll`, were arrays and are now iterators. `for…of` and a spread read them as before; an array method or a DSL function needs the spread first: `[...m.keys()].map(…)`.
|
|
26
|
+
- A test was also cut after a fixed count of statements (`maxSteps budget (100000) exhausted`). That count is gone: only the time budget (`setTestTimeout(ms)`, else `testTimeoutMs` or `UNOTEST_MAX_DURATION_MS`) cuts a test, and an endless loop fails on it, naming its line. A run that relied on the count to stop an endless loop sooner now runs until the time budget.
|
|
27
|
+
|
|
28
|
+
Migration: run `npx @unotest/web lint --fix`, commit the `let` lines it writes, then run the suite. Add the spread where a test reads keys, values or entries with an array method. The upgrade guide on docs.unotest.com lists every case.
|
|
29
|
+
|
|
30
|
+
- a5d8901: BREAKING: scenarios now run on the V8 engine only, as the JavaScript they are; the interpreter is gone from `@unotest/web`, and so is its export: `AstExecutor` is no longer exported from the package root. The `UNOTEST_ENGINE` switch is gone too; a value left set is ignored.
|
|
31
|
+
|
|
32
|
+
What a run reports changes where JavaScript says it differently: a name nothing declares fails as `ReferenceError: <name> is not defined` (`lint` still names it, with the advice for `wait` / `sleep` / `waitForTimeout`), and a member read on `null` or `undefined` fails with JavaScript's `TypeError`. An object handed to a DSL function with a key it only inherits, written under `__proto__:` or made by `Object.create(…)`, fails the step instead of being sent without that key. `arr.sortBy(…)` is gone with the interpreter's library: JavaScript's arrays have no such method.
|
|
33
|
+
|
|
34
|
+
Migration: drop `UNOTEST_ENGINE` from your environment. Replace `rows.sortBy('order')` with `rows.sort((a, b) => a.order - b.order)` (strings: `a.name.localeCompare(b.name)`; `{desc: true}`: swap `a` and `b`). A test rig that built `AstExecutor` runs scenarios through `npx @unotest/web e2e` or the MCP `run_test` tool instead.
|
|
35
|
+
|
|
36
|
+
- dd454ed: BREAKING: a variable assigned without a declaration (`i = 0` with no `let`) is now an error, `validator:implicit-global`: in JavaScript such a name is a global, shared by every test of the run. It was an info, `validator:implicit-declaration`. `run_test` refuses the scenario on it, as on any lint error; `e2e` prints it and runs. The diagnostic carries a fix — `let i;` at the start of the `test_*`, `flow_*` or helper, where every step sees the name — and `lint --fix` or `eslint --fix` with the plugin writes it.
|
|
37
|
+
|
|
38
|
+
The validator no longer refuses JavaScript the scenario language left out, nor members the old library lacked: `validator:out-of-language`, `validator:library-member` and `validator:unsupported-string-member` report nothing. A member a string, an array, a number, a Map or a Set does not have in JavaScript is `validator:unknown-member`, now checked against JavaScript itself, so `'a'.charCodeAt(0)` and `/a/.exec(s)` lint clean. A statement at the top level of a file is `validator:top-level-statement` (it was `validator:unsupported-statement`).
|
|
39
|
+
|
|
40
|
+
Migration: run `npx @unotest/web lint --fix` once and commit the `let` lines it adds. In `linter.rules`, rename `validator:unsupported-statement` to `validator:top-level-statement` and `validator:implicit-declaration` to `validator:implicit-global`, and drop `validator:out-of-language`, `validator:library-member` and `validator:unsupported-string-member`. A config that still names one of the five loads: the entry is ignored, and `lint` warns that it does nothing.
|
|
41
|
+
|
|
42
|
+
`@unotest/protocol`: `DslDiagnostic.fix` — `{range: [start, end], text}`, the edit that removes the finding, with 0-based offsets into the source. `@unotest/dsl`: `ScenarioDiagnostic.fix`, and `applyFixes(source, fixes)` from `@unotest/dsl/validator`.
|
|
43
|
+
|
|
44
|
+
- dd454ed: New: `npx @unotest/web lint` type-checks each scenario as the JavaScript it is — the file, the helpers of `_helpers/`, the DSL declarations and the external variable names. It reports, as warnings under `ts:<code>`, what the validator leaves to JavaScript: a name nothing declares, a member a value does not have (`Math.tau`), an argument of the wrong type (`n.toFixed('two')`). Where the validator reports at the same position, its line stands alone. The check needs `typescript` in the project (`npm i -D typescript`, an optional peer dependency); without it `lint` says once that the layer was skipped. And `lint --fix` writes the fixes the diagnostics offer before it reports. replaces: reading a scenario by eye for a typo of a name or a key
|
|
45
|
+
- 9159456: BREAKING: `async` and `await` in a scenario are a lint error, `validator:async-await`. Before, `await` was allowed in an `async function` and changed nothing. Now that scenarios run as JavaScript, an async function returns at its first `await`, and the rest of it runs after the test is over: its checks fail nowhere, and the test passes. DSL calls return their result, so a scenario has nothing to await. `run_test` and `e2e` refuse to start on it, and a run that gets there anyway fails: a test, a step, a rollback block, a `waitUntil` or an `assertNever` body that returns a promise fails the test with `… returned a promise: … drop async and await`. Async code handed to the page, `evaluate(async () => …)`, is the page's and is not reported.
|
|
46
|
+
|
|
47
|
+
Migration: run `npx @unotest/web lint --fix`. Each finding carries a fix that drops the word, so `lint --fix` and `eslint --fix` with the plugin remove every `async` and `await` the scenarios hold.
|
|
48
|
+
|
|
49
|
+
- 1946b74: BREAKING: Continue on a failure pause now finishes the test as failed. No statement after the failure runs; the `teardown(...)` blocks play and the failure bundle taken at the pause stays the run's. Before, the run went on with the next statement and still ended failed, so a debug run could pause again at a later failure. The CLI says it at the pause: `⏸ paused on failure at <file>:<line>:<col> — Continue finishes this test as failed`. The viewer now offers Continue on a failure pause, labelled **Finish as failed**; Step is not offered there. MCP `resume` on a `paused-failure` runtime ends it the same way. A failure pause the runner resumes as a retry (`resumeRetriesFailedStep`) is unchanged.
|
|
50
|
+
|
|
51
|
+
Migration: to see what follows a failure, fix the scenario and run the test again; a `resume` per failure no longer walks the test to its end.
|
|
52
|
+
|
|
53
|
+
- 5d9d6a4: Changed: `viewer` opens a browser tab only when a person is at the terminal — stdin and stdout are TTYs and `CI` is unset (or `0` / `false`). Launched by an agent, a script or CI, it prints the URL and opens nothing. `viewer --open` opens the tab anyway; `UNOTEST_VIEWER_NO_OPEN=1` still turns it off and beats `--open`. `login` follows the same rule, so under `CI` it no longer opens a browser even on a pseudo-terminal, and the commands that ask a question no longer ask it there: `init` uses the system browser when it finds one (as in a pipe), `box create` leaves the Picker off unless `--picker` is given, and `box destroy` needs `--yes`. `viewer` now refuses an argument it does not know (exit 2) instead of ignoring it.
|
|
54
|
+
|
|
55
|
+
### Patch Changes
|
|
56
|
+
|
|
57
|
+
- fa8d762: Fixed: `login` now also asks for `billing:read`, so `whoami` shows the balance on the documented path instead of "not visible to this key". The approval page still lets you untick it. A key from an earlier `login` keeps the permissions it was given: run `login` again (after `logout`) to get one that sees the balance.
|
|
58
|
+
- 82ca2ac: Changed: a test that never ends is cut by its time budget (`setTestTimeout(ms)`, else `testTimeoutMs`), not by a count of statements: the test fails naming the budget and the statement it was on, and its teardown blocks still play. Code that never returns to the runner, such as a regular expression that backtracks for minutes, is stopped a second after the budget, and its teardown blocks cannot play. A run that keeps too much in memory ends on a fixed memory limit, and the runner keeps going. `@unotest/dsl/executor` exports the budget readers a second engine shares with the interpreter: `durationBudget`, `timeLeft`, `withinDeadline`, `runHeapLimitBytes` and the `BudgetOptions` / `BudgetSite` types.
|
|
59
|
+
- 440bdcb: Changed: `@unotest/dsl/executor` exports what a second scenario engine needs to behave like the interpreter: the `waitUntil` and `assertNever` option readers and verdicts (`readWaitUntilOptions`, `waitUntilVerdict`, `readAssertNeverOptions`, `assertNeverVerdict`), a synchronous polling loop (`pollWindowSync`), `tagText`, `toExecutionError` and `softFailuresError`. A rollback frame is now `TeardownFrame<B>`, generic in what the engine that registered it plays it with (`ScenarioTeardownFrame` is `TeardownFrame<Closure>`); an engine handed a frame another engine registered refuses it with `ForeignTeardownFrameError`. Scenarios run exactly as before.
|
|
60
|
+
- be2f2dc: Changed: debugging works on V8 as it did before: breakpoints, Step, the viewer's Pause, the pause on a failure nobody catches, Vars while paused, and Stop on a pause.
|
|
61
|
+
- 843b58e: Changed: `@unotest/dsl` exports `pageCodeArgumentOf(call, pageCodeArg)`, the argument in a call's page-code position as written, and `@unotest/dsl/executor` exports the declaration readers the interpreter hoists with (`lexicalDeclarations`, `patternNames`, `hoistedVarNames`). Scenarios run exactly as before.
|
|
62
|
+
- 8655c26: Fixed: time a test spends held on a pause (a breakpoint, a Step, a failure being looked at) no longer counts toward its time budget (`setTestTimeout(ms)`, else `testTimeoutMs` or `UNOTEST_MAX_DURATION_MS`). After a long look at a breakpoint or a Step, Continue goes on with the budget the test had left when it stopped, instead of failing it with `budget exhausted` at the next line. On a failure pause, Continue finishes the test as failed.
|
|
63
|
+
- 423d119: Changed: `keys()`, `values()` and `entries()` of a Map or a Set, and `matchAll`, give iterators, as in JavaScript. `for…of`, a spread and `Array.from` read them; array methods need the spread first: `[...m.keys()].map(…)`. A DSL function given an iterator fails, naming the line and the spread to write; it takes `[...m.keys()]` or the Map itself. The editor typings say the same, and lint warns on an array method called on an iterator. `upload()` keeps its meaning wherever the scenario passes it: as the body of `apiCall` it is sent as multipart, nested in a JSON body it is refused as before.
|
|
64
|
+
- c307b42: Changed: the V8 thread a scenario runs on starts without the runner's own credentials — the cloud sign-in token, the box tokens and the judge's and grounder's keys — on the CLI and over MCP alike. A scenario already could not read them through `getVar`, `{{NAME}}` or `shell()`; this keeps them out of the thread itself. Nothing to check when upgrading from 0.51.0: no scenario there could reach them. Variables a suite declares, or a CI job exports, read as before.
|
|
65
|
+
|
|
66
|
+
The docs now say plainly what this is: a guard against a slip, not a
|
|
67
|
+
sandbox. A scenario runs with the rights of the account that starts it.
|
|
68
|
+
|
|
69
|
+
- 223f143: Fixed: the viewer on a box starts again. Since 0.50.0 it created the breakpoint folder in the project at startup; a box mounts the project read-only, so the viewer exited and was restarted every few seconds, and the box showed "the viewer for this environment is not running".
|
|
70
|
+
|
|
71
|
+
The viewer now creates nothing at startup: the breakpoint folder appears with the first breakpoint. On a box the breakpoints live in the environment's run history, where both the viewer and the runs can write. Locally nothing changes: the store is still `.unotest/debugger.json`.
|
|
72
|
+
|
|
73
|
+
A breakpoint that cannot be saved because the folder is read-only is no longer lost silently: the viewer shows the reason above the steps.
|
|
74
|
+
|
|
75
|
+
`@unotest/protocol`: `localStateDirFrom(env, projectRoot)` names the directory of the tool's local state, and `debuggerFileNameFor(suffix)` the store's file name inside it. `@unotest/core`: `debuggerFileIn(stateDir, projectRoot, suffix)` takes that directory explicitly; `debuggerFile` and `readDebuggerBreakpoints` take an optional environment; `isNotWritable(error)` tells a read-only refusal apart.
|
|
76
|
+
|
|
77
|
+
- Updated dependencies [82ca2ac]
|
|
78
|
+
- Updated dependencies [440bdcb]
|
|
79
|
+
- Updated dependencies [dd454ed]
|
|
80
|
+
- Updated dependencies [843b58e]
|
|
81
|
+
- Updated dependencies [9159456]
|
|
82
|
+
- Updated dependencies [1946b74]
|
|
83
|
+
- Updated dependencies [423d119]
|
|
84
|
+
- Updated dependencies [223f143]
|
|
85
|
+
- @unotest/dsl@0.52.0
|
|
86
|
+
- @unotest/protocol@0.52.0
|
|
87
|
+
- @unotest/viewer@0.52.0
|
|
88
|
+
- @unotest/core@0.52.0
|
|
89
|
+
- @unotest/grounder-client@0.52.0
|
|
90
|
+
|
|
3
91
|
## [0.51.0] - 2026-10-15
|
|
4
92
|
|
|
5
93
|
### Minor Changes
|
|
@@ -2211,7 +2299,7 @@ picker on` fetches this project's own access and writes the three grounder
|
|
|
2211
2299
|
|
|
2212
2300
|
That screen named one command:
|
|
2213
2301
|
|
|
2214
|
-
|
|
2302
|
+
npx @unotest/web bundle push --run --env ENVIRONMENT
|
|
2215
2303
|
|
|
2216
2304
|
In a project that has just been created, the command refuses with `no box
|
|
2217
2305
|
address` before it does anything: the project holds neither the box's address
|
|
@@ -2220,8 +2308,8 @@ address` before it does anything: the project holds neither the box's address
|
|
|
2220
2308
|
|
|
2221
2309
|
The screen now names both steps, in the order they have to happen:
|
|
2222
2310
|
|
|
2223
|
-
|
|
2224
|
-
|
|
2311
|
+
npx @unotest/web box access larch
|
|
2312
|
+
npx @unotest/web bundle push --run --env ENVIRONMENT
|
|
2225
2313
|
|
|
2226
2314
|
The box's own name is filled in when its licence carries one. `box access`
|
|
2227
2315
|
with no name refuses, and its refusal offers to create a box — to somebody who
|
package/README.md
CHANGED
|
@@ -43,6 +43,7 @@ package; the full reference is at https://docs.unotest.com/reference/dsl/.
|
|
|
43
43
|
|
|
44
44
|
```sh
|
|
45
45
|
npx @unotest/web@latest init
|
|
46
|
+
npm install --prefix unotest
|
|
46
47
|
```
|
|
47
48
|
|
|
48
49
|
Run once in your project — any stack (Node, Django, Rails, Go, …), no
|
|
@@ -52,12 +53,19 @@ during the prompt), and wires the MCP config so Claude Code / Cursor / Codex
|
|
|
52
53
|
pick the server up automatically. Re-run anytime to update — it never
|
|
53
54
|
overwrites your edits.
|
|
54
55
|
|
|
56
|
+
`unotest/` is a package of its own, with its own `package.json` that pins
|
|
57
|
+
`@unotest/web`. The second line installs it there, as the first of the
|
|
58
|
+
"Next steps" `init` prints: it does not touch your application's
|
|
59
|
+
dependencies, and it writes the lockfile a box installs from. The commands
|
|
60
|
+
below run from inside `unotest/`, so they run the version the suite pins.
|
|
61
|
+
|
|
55
62
|
It also wires editor typings (`unotest/jsconfig.json` + generated `.d.ts`
|
|
56
63
|
files), so scenarios get autocomplete, hover docs and signature help in
|
|
57
64
|
VS Code / WebStorm instead of red squiggles. On an existing project or a
|
|
58
|
-
fresh checkout, `npx @unotest/web types` writes them; a test
|
|
65
|
+
fresh checkout, `cd unotest && npx @unotest/web types` writes them; a test
|
|
66
|
+
run does not.
|
|
59
67
|
Details: the "Editor setup" section of
|
|
60
|
-
`node_modules/@unotest/web/guides/dsl-reference.md`.
|
|
68
|
+
`unotest/node_modules/@unotest/web/guides/dsl-reference.md`.
|
|
61
69
|
|
|
62
70
|
Testing a browser extension? `launch` in `unotest.config` starts the browser
|
|
63
71
|
with a profile (`userDataDir`) and extra arguments (`args`, e.g.
|
|
@@ -70,7 +78,7 @@ empty profile: a suite of N files runs on N profiles.
|
|
|
70
78
|
## 2. Open the viewer
|
|
71
79
|
|
|
72
80
|
```sh
|
|
73
|
-
npx @unotest/web viewer
|
|
81
|
+
cd unotest && npx @unotest/web viewer
|
|
74
82
|
```
|
|
75
83
|
|
|
76
84
|
A local IDE-style UI for your tests — no cloud, no account. This is your
|
|
@@ -87,20 +95,20 @@ describe the flow in plain English:
|
|
|
87
95
|
|
|
88
96
|
Through the MCP server the agent explores your live app — clicking,
|
|
89
97
|
filling, reading the real DOM via semantic snapshots — then writes a clean
|
|
90
|
-
scenario to `unotest/e2e/<name>.js` with stable selectors (`getByTestId` →
|
|
98
|
+
scenario to `unotest/e2e/<feature>/<name>.js` with stable selectors (`getByTestId` →
|
|
91
99
|
`getByRole` → … — never brittle CSS), runs it, and debugs itself if it
|
|
92
100
|
fails. You get a reviewable `.js` test: read it, tweak it, commit it.
|
|
93
101
|
|
|
94
102
|
> For best results, point the agent at its authoring guide, shipped with
|
|
95
|
-
> the package at `node_modules/@unotest/web/guides/agent-integration.md`.
|
|
103
|
+
> the package at `unotest/node_modules/@unotest/web/guides/agent-integration.md`.
|
|
96
104
|
|
|
97
105
|
## 4. Run a test
|
|
98
106
|
|
|
99
107
|
Click any scenario in the viewer, or run from the CLI:
|
|
100
108
|
|
|
101
109
|
```sh
|
|
102
|
-
npx @unotest/web e2e <name>
|
|
103
|
-
npx @unotest/web e2e
|
|
110
|
+
cd unotest && npx @unotest/web e2e <feature>/<name> # one scenario
|
|
111
|
+
cd unotest && npx @unotest/web e2e # list / usage
|
|
104
112
|
```
|
|
105
113
|
|
|
106
114
|
Runs of one project take turns. A second run — from another terminal, the
|
|
@@ -144,16 +152,16 @@ export default {
|
|
|
144
152
|
};
|
|
145
153
|
```
|
|
146
154
|
|
|
147
|
-
`npx @unotest/web schedules` prints the merged list, with a `next …`
|
|
155
|
+
`cd unotest && npx @unotest/web schedules` prints the merged list, with a `next …`
|
|
148
156
|
preview per entry (your machine's clock) so a wrong cron is visible
|
|
149
157
|
before you push it. A hand-written expression outside the previewable
|
|
150
158
|
subset is marked `not previewable — an executor may drop it`;
|
|
151
|
-
`npx @unotest/web schedules --check` turns that mark into a non-zero
|
|
159
|
+
`cd unotest && npx @unotest/web schedules --check` turns that mark into a non-zero
|
|
152
160
|
exit for a pre-push hook or a CI gate. Nothing in the CLI ticks: cron is
|
|
153
161
|
executed by whatever hosts your runs — your CI, or a box — so a clone of
|
|
154
162
|
your repo never starts running suites in the background. Run one now with
|
|
155
|
-
`npx @unotest/web collection nightly --scheduled`, or
|
|
156
|
-
`npx @unotest/web e2e checkout/happy-path --scheduled` for a per-test
|
|
163
|
+
`cd unotest && npx @unotest/web collection nightly --scheduled`, or
|
|
164
|
+
`cd unotest && npx @unotest/web e2e checkout/happy-path --scheduled` for a per-test
|
|
157
165
|
entry (both also run the entry's `prepare` command, inside the same run
|
|
158
166
|
slot).
|
|
159
167
|
|
|
@@ -436,7 +444,8 @@ you have just ordered may take a moment to appear.
|
|
|
436
444
|
|
|
437
445
|
## 5. Watch it run — the viewer
|
|
438
446
|
|
|
439
|
-
`npx @unotest/web viewer` opens a local UI (no cloud, no
|
|
447
|
+
`cd unotest && npx @unotest/web viewer` opens a local UI (no cloud, no
|
|
448
|
+
account):
|
|
440
449
|
|
|
441
450
|
- **Scenario tree** — scenarios, collections, helpers, and run history.
|
|
442
451
|
- **Run from the UI** — results stream live over WebSocket as steps execute.
|
|
@@ -478,7 +487,7 @@ the way you already expect:
|
|
|
478
487
|
- **Setup** — `dbQuery`, `dbExec`, `apiCall`, `shell`, `evaluate`
|
|
479
488
|
|
|
480
489
|
Full reference, shipped with the package:
|
|
481
|
-
`node_modules/@unotest/web/guides/dsl-reference.md` (plus operational guides
|
|
490
|
+
`unotest/node_modules/@unotest/web/guides/dsl-reference.md` (plus operational guides
|
|
482
491
|
alongside it in `guides/`).
|
|
483
492
|
|
|
484
493
|
---
|
package/bin/unotest-web.js
CHANGED
|
@@ -99,7 +99,8 @@ function dispatch(sub) {
|
|
|
99
99
|
// arguments belong to the command, not to the dispatcher.
|
|
100
100
|
return cliRoute(args);
|
|
101
101
|
case "viewer":
|
|
102
|
-
|
|
102
|
+
// Forwarded whole: `--open` belongs to the command.
|
|
103
|
+
return cliRoute(args);
|
|
103
104
|
case "prepare-fix":
|
|
104
105
|
return {
|
|
105
106
|
dist: "dist/runner/prepare-fix.js",
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -120,19 +120,24 @@ declare const FailureBundleConfigSchema: z.ZodObject<{
|
|
|
120
120
|
type FailureBundleConfig = z.infer<typeof FailureBundleConfigSchema>;
|
|
121
121
|
declare const DialogPolicySchema: z.ZodEnum<["accept", "dismiss", "manual"]>;
|
|
122
122
|
type DialogPolicy = z.infer<typeof DialogPolicySchema>;
|
|
123
|
-
|
|
123
|
+
/** Validator rules a scenario that runs as JavaScript made moot. They
|
|
124
|
+
* report nothing; the ids stay in the enum so a config naming one still
|
|
125
|
+
* loads, and `lint` warns that the entry does nothing. Gone in the next
|
|
126
|
+
* major. */
|
|
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"]>;
|
|
124
129
|
type LinterRuleId = z.infer<typeof LinterRuleIdSchema>;
|
|
125
130
|
declare const LinterSeveritySchema: z.ZodEnum<["off", "warn", "error"]>;
|
|
126
131
|
type LinterSeverity = z.infer<typeof LinterSeveritySchema>;
|
|
127
132
|
declare const LinterConfigSchema: z.ZodObject<{
|
|
128
133
|
enabled: z.ZodBoolean;
|
|
129
|
-
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:
|
|
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"]>>;
|
|
130
135
|
}, "strict", z.ZodTypeAny, {
|
|
131
136
|
enabled: boolean;
|
|
132
|
-
rules: Partial<Record<"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:
|
|
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">>;
|
|
133
138
|
}, {
|
|
134
139
|
enabled: boolean;
|
|
135
|
-
rules: Partial<Record<"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:
|
|
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">>;
|
|
136
141
|
}>;
|
|
137
142
|
type LinterConfig = z.infer<typeof LinterConfigSchema>;
|
|
138
143
|
declare const QueueConfigSchema: z.ZodObject<{
|
|
@@ -634,13 +639,13 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
634
639
|
}>;
|
|
635
640
|
linter: z.ZodObject<{
|
|
636
641
|
enabled: z.ZodBoolean;
|
|
637
|
-
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:
|
|
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"]>>;
|
|
638
643
|
}, "strict", z.ZodTypeAny, {
|
|
639
644
|
enabled: boolean;
|
|
640
|
-
rules: Partial<Record<"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:
|
|
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">>;
|
|
641
646
|
}, {
|
|
642
647
|
enabled: boolean;
|
|
643
|
-
rules: Partial<Record<"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:
|
|
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">>;
|
|
644
649
|
}>;
|
|
645
650
|
mcp: z.ZodObject<{
|
|
646
651
|
transport: z.ZodLiteral<"stdio">;
|
|
@@ -769,7 +774,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
769
774
|
defaultNavigationTimeoutMs: number;
|
|
770
775
|
linter: {
|
|
771
776
|
enabled: boolean;
|
|
772
|
-
rules: Partial<Record<"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:
|
|
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">>;
|
|
773
778
|
};
|
|
774
779
|
mcp: {
|
|
775
780
|
transport: "stdio";
|
|
@@ -851,7 +856,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
851
856
|
defaultNavigationTimeoutMs: number;
|
|
852
857
|
linter: {
|
|
853
858
|
enabled: boolean;
|
|
854
|
-
rules: Partial<Record<"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:
|
|
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">>;
|
|
855
860
|
};
|
|
856
861
|
mcp: {
|
|
857
862
|
transport: "stdio";
|
|
@@ -938,7 +943,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
938
943
|
defaultNavigationTimeoutMs: number;
|
|
939
944
|
linter: {
|
|
940
945
|
enabled: boolean;
|
|
941
|
-
rules: Partial<Record<"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:
|
|
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">>;
|
|
942
947
|
};
|
|
943
948
|
mcp: {
|
|
944
949
|
transport: "stdio";
|
|
@@ -1020,7 +1025,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1020
1025
|
defaultNavigationTimeoutMs: number;
|
|
1021
1026
|
linter: {
|
|
1022
1027
|
enabled: boolean;
|
|
1023
|
-
rules: Partial<Record<"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:
|
|
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">>;
|
|
1024
1029
|
};
|
|
1025
1030
|
mcp: {
|
|
1026
1031
|
transport: "stdio";
|
|
@@ -1082,4 +1087,4 @@ type UnotestConfig = z.infer<typeof UnotestConfigSchema>;
|
|
|
1082
1087
|
type UnotestConfigInput = z.input<typeof UnotestConfigSchema>;
|
|
1083
1088
|
declare const DEFAULT_CONFIG: UnotestConfig;
|
|
1084
1089
|
|
|
1085
|
-
export { BROWSER_CHANNEL_WORDS, type Browser, type BrowserChannel, BrowserChannelSchema, BrowserSchema, DEFAULT_CONFIG, type DialogPolicy, DialogPolicySchema, type DisplayMode, DisplayModeSchema, type EnvConfig, EnvConfigSchema, type FailureBundleConfig, FailureBundleConfigSchema, type LinterConfig, LinterConfigSchema, type LinterRuleId, LinterRuleIdSchema, type LinterSeverity, LinterSeveritySchema, type McpConfig, McpConfigSchema, type QueueConfig, QueueConfigSchema, type RetryConfig, RetryConfigSchema, type RetryReason, RetryReasonSchema, SYSTEM_BROWSER_CHANNELS, type SandboxConfig, SandboxConfigSchema, type ScheduleConfig, ScheduleSchema, type UnotestConfig, type UnotestConfigInput, UnotestConfigSchema, type Viewport, ViewportSchema, type WebServerConfig, WebServerConfigSchema, WebServersConfigSchema, viewportDeviceConflict };
|
|
1090
|
+
export { BROWSER_CHANNEL_WORDS, type Browser, type BrowserChannel, BrowserChannelSchema, BrowserSchema, DEFAULT_CONFIG, type DialogPolicy, DialogPolicySchema, type DisplayMode, DisplayModeSchema, type EnvConfig, EnvConfigSchema, type FailureBundleConfig, FailureBundleConfigSchema, type LinterConfig, LinterConfigSchema, type LinterRuleId, LinterRuleIdSchema, type LinterSeverity, LinterSeveritySchema, type McpConfig, McpConfigSchema, type QueueConfig, QueueConfigSchema, REMOVED_VALIDATOR_RULE_IDS, type RetryConfig, RetryConfigSchema, type RetryReason, RetryReasonSchema, SYSTEM_BROWSER_CHANNELS, type SandboxConfig, SandboxConfigSchema, type ScheduleConfig, ScheduleSchema, type UnotestConfig, type UnotestConfigInput, UnotestConfigSchema, type Viewport, ViewportSchema, type WebServerConfig, WebServerConfigSchema, WebServersConfigSchema, viewportDeviceConflict };
|
package/dist/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x4a59ba=_0x22e4;(function(_0x380e73,_0x53d37d){var _0x14390d={_0x2741fd:0x1a3,_0x46eb96:0x1d1,_0x3f8632:0x1d3,_0x55a817:0x18e,_0x3c9882:0x1b9,_0x274aed:0x1e3},_0x35a80a=_0x22e4,_0x437c9b=_0x380e73();while(!![]){try{var _0x1dedce=-parseInt(_0x35a80a(_0x14390d._0x2741fd))/0x1*(parseInt(_0x35a80a(0x1a8))/0x2)+-parseInt(_0x35a80a(0x1b7))/0x3+-parseInt(_0x35a80a(_0x14390d._0x46eb96))/0x4+-parseInt(_0x35a80a(_0x14390d._0x3f8632))/0x5+parseInt(_0x35a80a(_0x14390d._0x55a817))/0x6+parseInt(_0x35a80a(0x200))/0x7*(-parseInt(_0x35a80a(_0x14390d._0x3c9882))/0x8)+parseInt(_0x35a80a(_0x14390d._0x274aed))/0x9;if(_0x1dedce===_0x53d37d)break;else _0x437c9b['push'](_0x437c9b['shift']());}catch(_0x30e74f){_0x437c9b['push'](_0x437c9b['shift']());}}}(_0x284d,0x2f3eb));var __defProp=Object['defineProperty'],__name=(_0x5154a0,_0x58d327)=>__defProp(_0x5154a0,_0x4a59ba(0x1bb),{'value':_0x58d327,'configurable':!![]});import{z as _0x1fe3aa}from'zod';import{z}from'zod';import{levenshteinDistance}from'@unotest/core';var MAX_EDITS=0x2;function closestKey(_0x1ba2e2,_0x20ddc1){var _0x52c04c={_0x1bcad9:0x1d8},_0x34fa72=_0x4a59ba;let _0x5aed4c;for(const _0x39252a of _0x20ddc1){const _0xdab434=levenshteinDistance(_0x1ba2e2[_0x34fa72(_0x52c04c._0x1bcad9)](),_0x39252a[_0x34fa72(_0x52c04c._0x1bcad9)]());if(_0xdab434>MAX_EDITS)continue;if(_0x5aed4c===void 0x0||_0xdab434<_0x5aed4c['distance'])_0x5aed4c={'key':_0x39252a,'distance':_0xdab434};}return _0x5aed4c?.['key'];}__name(closestKey,_0x4a59ba(0x1ad));function unknownKeyMessage(_0x5d0d12,_0x42ba05){var _0x3c5f7c={_0x3aee3c:0x1ea,_0x34ad35:0x1cf};return _0x5d0d12['map'](_0x562205=>{var _0x1940cb=_0x22e4;const _0x12dd88=closestKey(_0x562205,_0x42ba05);return _0x12dd88===void 0x0?_0x1940cb(_0x3c5f7c._0x3aee3c)+_0x562205+_0x1940cb(_0x3c5f7c._0x34ad35):_0x1940cb(0x1ea)+_0x562205+_0x1940cb(0x1d7)+_0x12dd88+'\x22?';})['join'](';\x20');}__name(unknownKeyMessage,_0x4a59ba(0x1be));function strictObject(_0x15c59d){var _0xe19253={_0x548076:0x1ec},_0x5a0b32=_0x4a59ba;const _0x1fca03=Object['keys'](_0x15c59d);return z[_0x5a0b32(_0xe19253._0x548076)](_0x15c59d,{'errorMap':__name((_0x50414d,_0x1eea77)=>_0x50414d[_0x5a0b32(0x1ba)]===z[_0x5a0b32(0x1e4)][_0x5a0b32(0x1f0)]?{'message':unknownKeyMessage(_0x50414d['keys'],_0x1fca03)}:{'message':_0x1eea77[_0x5a0b32(0x1a0)]},'errorMap')})[_0x5a0b32(0x1f4)]();}__name(strictObject,_0x4a59ba(0x196));import{BUNDLED_BROWSER_CHANNEL}from'@unotest/protocol';import{z as _0xa5eed0}from'zod';import{UnotestError}from'@unotest/core';var LaunchConfigSchema=_0xa5eed0[_0x4a59ba(0x1ec)]({'userDataDir':_0xa5eed0[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1)['optional'](),'profile':_0xa5eed0[_0x4a59ba(0x204)]('per-test')[_0x4a59ba(0x1e0)](),'args':_0xa5eed0[_0x4a59ba(0x1d6)](_0xa5eed0[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1))['optional']()})['strict'](),PROFILES={'ios':{'browsers':[_0x4a59ba(0x1a6)],'device':_0x4a59ba(0x1f1),'displayMode':_0x4a59ba(0x1cd)}},PROFILE_NAMES=Object[_0x4a59ba(0x18b)](PROFILES);function profileConflict(_0x455ac9,_0x5e5c54){var _0x548a79={_0x1e939f:0x1f9},_0x42745e=_0x4a59ba;return'profile\x20\x22'+_0x455ac9+'\x22\x20sets\x20'+_0x5e5c54[_0x42745e(0x1f8)](_0x324525=>'`'+_0x324525+'`')[_0x42745e(_0x548a79._0x1e939f)](_0x42745e(0x198))+'\x20itself\x20—\x20drop\x20'+(_0x5e5c54[_0x42745e(0x1ff)]===0x1?'it':_0x42745e(0x1bf))+'\x20from\x20the\x20config,\x20or\x20drop\x20the\x20profile.';}__name(profileConflict,_0x4a59ba(0x190));var BrowserSchema=_0x1fe3aa[_0x4a59ba(0x1eb)]([_0x4a59ba(0x199),_0x4a59ba(0x1a2),'webkit']),SYSTEM_BROWSER_CHANNELS=[_0x4a59ba(0x1d4),_0x4a59ba(0x1a1),_0x4a59ba(0x1a4),_0x4a59ba(0x199)],BROWSER_CHANNEL_WORDS=[...SYSTEM_BROWSER_CHANNELS,BUNDLED_BROWSER_CHANNEL],BrowserChannelSchema=_0x1fe3aa['union']([_0x1fe3aa['enum'](SYSTEM_BROWSER_CHANNELS),_0x1fe3aa[_0x4a59ba(0x204)](BUNDLED_BROWSER_CHANNEL)[_0x4a59ba(0x1cc)](()=>null),_0x1fe3aa['null']()])['optional'](),DisplayModeSchema=_0x1fe3aa[_0x4a59ba(0x1eb)]([_0x4a59ba(0x1cb),_0x4a59ba(0x1cd),_0x4a59ba(0x1d2),_0x4a59ba(0x1a9)]),ViewportSchema=strictObject({'width':_0x1fe3aa[_0x4a59ba(0x1ac)]()['int']()['positive']()['optional'](),'height':_0x1fe3aa['number']()[_0x4a59ba(0x1ef)]()['positive']()[_0x4a59ba(0x1e0)](),'deviceScaleFactor':_0x1fe3aa['number']()[_0x4a59ba(0x1e1)]()[_0x4a59ba(0x1e0)]()}),ConfigViewportSchema=ViewportSchema[_0x4a59ba(0x1c1)]();function viewportDeviceConflict(_0x5824e9,_0x49020b,_0x1cc1a9='viewport:\x20null'){var _0x18be22={_0x27ef17:0x1c6},_0x5272db=_0x4a59ba;if(_0x5824e9!==null||_0x49020b===void 0x0)return void 0x0;return _0x1cc1a9+'\x20keeps\x20the\x20real\x20browser\x20window,\x20and\x20device\x20\x22'+_0x49020b+_0x5272db(_0x18be22._0x27ef17);}__name(viewportDeviceConflict,_0x4a59ba(0x206));var RetryReasonSchema=_0x1fe3aa[_0x4a59ba(0x1eb)](['transient','network','crash']),RetryConfigSchema=strictObject({'count':_0x1fe3aa['number']()[_0x4a59ba(0x1ef)]()[_0x4a59ba(0x1c5)](0x0)[_0x4a59ba(0x1a5)](0xa),'on':_0x1fe3aa['array'](RetryReasonSchema)}),FailureBundleConfigSchema=strictObject({'tier1':_0x1fe3aa[_0x4a59ba(0x204)](!![])['default'](!![]),'tier2':_0x1fe3aa[_0x4a59ba(0x1b0)](),'tier3':strictObject({'network':_0x1fe3aa[_0x4a59ba(0x1b0)](),'video':_0x1fe3aa[_0x4a59ba(0x1b0)]()}),'retention':strictObject({'runs':_0x1fe3aa['number']()['int']()[_0x4a59ba(0x1e1)](),'days':_0x1fe3aa['number']()[_0x4a59ba(0x1ef)]()[_0x4a59ba(0x1e1)]()}),'storageDir':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1),'pageHtml':_0x1fe3aa['enum']([_0x4a59ba(0x1fa),_0x4a59ba(0x1af)])}),DialogPolicySchema=_0x1fe3aa[_0x4a59ba(0x1eb)]([_0x4a59ba(0x1d0),_0x4a59ba(0x18f),_0x4a59ba(0x1c0)]),LinterRuleIdSchema=_0x1fe3aa[_0x4a59ba(0x1eb)]([_0x4a59ba(0x1ca),_0x4a59ba(0x1b1),_0x4a59ba(0x18a),'lint:pause-explicit',_0x4a59ba(0x1d9),'lint:evaluate-discouraged',_0x4a59ba(0x18c),_0x4a59ba(0x193),_0x4a59ba(0x202),_0x4a59ba(0x195),'lint:echo-assert','lint:api-call-file-body',_0x4a59ba(0x1f6),_0x4a59ba(0x197),'lint:legacy-layout',_0x4a59ba(0x1bd),_0x4a59ba(0x1b8),'lint:env-host-from-base',_0x4a59ba(0x1b5),'lint:shadows-dsl-function','lint:skip-outside-test','lint:set-test-timeout-outside-test','lint:filter-unknown-option',_0x4a59ba(0x1ae),_0x4a59ba(0x1ee),_0x4a59ba(0x1f5),_0x4a59ba(0x1f3),_0x4a59ba(0x1dc),_0x4a59ba(0x194),_0x4a59ba(0x1db),_0x4a59ba(0x19e),_0x4a59ba(0x1f2),_0x4a59ba(0x19f),'validator:if-shape',_0x4a59ba(0x1a7),'validator:unsupported-statement','validator:unsupported-expression',_0x4a59ba(0x1ed),_0x4a59ba(0x1aa),'validator:list-arg',_0x4a59ba(0x189),_0x4a59ba(0x1b2),_0x4a59ba(0x1c3),'validator:teardown-name-conflict',_0x4a59ba(0x1e2),_0x4a59ba(0x192),_0x4a59ba(0x1d5),_0x4a59ba(0x1bc),_0x4a59ba(0x1fc),_0x4a59ba(0x19b),_0x4a59ba(0x1f7),_0x4a59ba(0x207),'validator:options',_0x4a59ba(0x1fe),'validator:implicit-declaration',_0x4a59ba(0x18d),'validator:page-code-closure',_0x4a59ba(0x1df),'validator:page-code-string',_0x4a59ba(0x1ce),_0x4a59ba(0x1dd),_0x4a59ba(0x20b)]),LinterSeveritySchema=_0x1fe3aa[_0x4a59ba(0x1eb)]([_0x4a59ba(0x19a),_0x4a59ba(0x1da),_0x4a59ba(0x1ab)]),LinterConfigSchema=strictObject({'enabled':_0x1fe3aa[_0x4a59ba(0x1b0)](),'rules':_0x1fe3aa['record'](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=strictObject({'enabled':_0x1fe3aa['boolean']()['default'](!![]),'concurrency':_0x1fe3aa['number']()[_0x4a59ba(0x1ef)]()[_0x4a59ba(0x1e1)]()[_0x4a59ba(0x1de)](0x1)}),ScheduleSchema=strictObject({'collection':_0x1fe3aa['string']()['min'](0x1),'cron':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1),'env':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1)[_0x4a59ba(0x1e0)](),'prepare':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1)[_0x4a59ba(0x1e0)]()}),McpConfigSchema=strictObject({'transport':_0x1fe3aa[_0x4a59ba(0x204)](_0x4a59ba(0x201))}),SandboxConfigSchema=strictObject({'shellCwd':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1e0)](),'shellTimeoutMs':_0x1fe3aa[_0x4a59ba(0x1ac)]()[_0x4a59ba(0x1ef)]()[_0x4a59ba(0x1e1)]()[_0x4a59ba(0x1e0)](),'exportSecrets':_0x1fe3aa[_0x4a59ba(0x1d6)](_0x1fe3aa[_0x4a59ba(0x1c8)]())[_0x4a59ba(0x1e0)](),'database':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1e0)](),'apiBaseUrl':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x20a)]()[_0x4a59ba(0x1e0)](),'uploadDir':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1e0)](),'readRoots':_0x1fe3aa[_0x4a59ba(0x1d6)](_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1))[_0x4a59ba(0x1e0)]()}),WebServerConfigSchema=strictObject({'command':_0x1fe3aa[_0x4a59ba(0x1c8)]()['min'](0x1),'url':_0x1fe3aa[_0x4a59ba(0x1c8)]()['url'](),'reuseExistingServer':_0x1fe3aa[_0x4a59ba(0x1b0)]()[_0x4a59ba(0x1de)](!![]),'timeoutMs':_0x1fe3aa['number']()[_0x4a59ba(0x1ef)]()[_0x4a59ba(0x1e1)]()[_0x4a59ba(0x1de)](0xea60)}),WebServersConfigSchema=_0x1fe3aa['union']([WebServerConfigSchema,_0x1fe3aa['array'](WebServerConfigSchema)[_0x4a59ba(0x1c5)](0x1)])[_0x4a59ba(0x1cc)](_0x25ff32=>Array[_0x4a59ba(0x1e8)](_0x25ff32)?_0x25ff32:[_0x25ff32])[_0x4a59ba(0x1c7)]((_0x309d01,_0x48d7cb)=>{var _0xc0e4ab={_0x21c5a5:0x20a,_0x285d7c:0x209,_0x1ff3bd:0x1e4,_0x2586ad:0x1b6},_0x3a2957=_0x4a59ba;const _0x75fdd7=new Set();_0x309d01[_0x3a2957(0x191)]((_0xc6131f,_0x1b3dcf)=>{var _0x63f2a0=_0x3a2957;_0x75fdd7[_0x63f2a0(0x1c9)](_0xc6131f[_0x63f2a0(_0xc0e4ab._0x21c5a5)])&&_0x48d7cb[_0x63f2a0(_0xc0e4ab._0x285d7c)]({'code':_0x1fe3aa[_0x63f2a0(_0xc0e4ab._0x1ff3bd)]['custom'],'path':[_0x1b3dcf,_0x63f2a0(_0xc0e4ab._0x21c5a5)],'message':_0x63f2a0(0x1e9)+_0x1b3dcf+_0x63f2a0(_0xc0e4ab._0x2586ad)+_0xc6131f[_0x63f2a0(0x20a)]+_0x63f2a0(0x19d)}),_0x75fdd7[_0x63f2a0(0x1c4)](_0xc6131f[_0x63f2a0(0x20a)]);});}),EnvConfigSchema=strictObject({'shared':_0x1fe3aa['array'](_0x1fe3aa[_0x4a59ba(0x1c8)]())[_0x4a59ba(0x1de)]([])}),UnotestConfigSchema=strictObject({'baseUrl':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x20a)]()[_0x4a59ba(0x1e0)](),'webServer':WebServersConfigSchema[_0x4a59ba(0x1e0)](),'generate':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1)[_0x4a59ba(0x1e0)](),'browsers':_0x1fe3aa[_0x4a59ba(0x1d6)](BrowserSchema)['min'](0x1),'channel':BrowserChannelSchema,'viewport':ConfigViewportSchema[_0x4a59ba(0x1e0)](),'device':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1)[_0x4a59ba(0x1e0)](),'profile':_0x1fe3aa[_0x4a59ba(0x1eb)](PROFILE_NAMES)['optional'](),'displayMode':DisplayModeSchema['optional'](),'timezone':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c2)](isTimeZone,_0x5a8f23=>({'message':'unknown\x20time\x20zone\x20\x22'+_0x5a8f23+'\x22\x20—\x20expected\x20an\x20IANA\x20name\x20such\x20as\x20\x22Europe/Madrid\x22'}))[_0x4a59ba(0x1e0)](),'locale':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c2)](isLocale,_0x8afdaf=>({'message':_0x4a59ba(0x1b3)+_0x8afdaf+_0x4a59ba(0x1e6)}))[_0x4a59ba(0x1e0)](),'maxContexts':_0x1fe3aa[_0x4a59ba(0x1ac)]()['int']()[_0x4a59ba(0x1e1)]()[_0x4a59ba(0x1e0)](),'launch':LaunchConfigSchema[_0x4a59ba(0x1e0)](),'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':_0x1fe3aa['string']()[_0x4a59ba(0x1e0)](),'testDir':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1),'helpersDir':_0x1fe3aa[_0x4a59ba(0x1c8)]()[_0x4a59ba(0x1c5)](0x1),'defaultTimeoutMs':_0x1fe3aa[_0x4a59ba(0x1ac)]()[_0x4a59ba(0x1ef)]()[_0x4a59ba(0x1e1)](),'defaultNavigationTimeoutMs':_0x1fe3aa['number']()[_0x4a59ba(0x1ef)]()[_0x4a59ba(0x1e1)](),'teardownTimeoutMs':_0x1fe3aa[_0x4a59ba(0x1ac)]()[_0x4a59ba(0x1ef)]()[_0x4a59ba(0x1e1)]()['optional'](),'testTimeoutMs':_0x1fe3aa[_0x4a59ba(0x1ac)]()['int']()[_0x4a59ba(0x1e1)]()['optional'](),'env':EnvConfigSchema,'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':_0x1fe3aa[_0x4a59ba(0x1d6)](ScheduleSchema)[_0x4a59ba(0x1de)]([]),'sandbox':SandboxConfigSchema})[_0x4a59ba(0x1c7)]((_0x1663d0,_0xc29648)=>{var _0x4de46d={_0x491f29:0x19c,_0x2d3706:0x1f9,_0x45d830:0x203,_0xcf0bee:0x1ff},_0x2ae329=_0x4a59ba;const _0x5bf322=viewportDeviceConflict(_0x1663d0['viewport'],_0x1663d0['device']);_0x5bf322!==void 0x0&&_0xc29648['addIssue']({'code':_0x1fe3aa[_0x2ae329(0x1e4)][_0x2ae329(0x205)],'path':[_0x2ae329(0x1b4)],'message':_0x5bf322});if(_0x1663d0[_0x2ae329(0x19c)]!==void 0x0){const _0x3d6356=PROFILES[_0x1663d0[_0x2ae329(_0x4de46d._0x491f29)]],_0x4abffb=[..._0x1663d0[_0x2ae329(0x1fd)]['join']()!==_0x3d6356[_0x2ae329(0x1fd)][_0x2ae329(_0x4de46d._0x2d3706)]()?[_0x2ae329(0x1fd)]:[],..._0x1663d0['device']!==_0x3d6356[_0x2ae329(0x203)]?[_0x2ae329(_0x4de46d._0x45d830)]:[]];_0x4abffb[_0x2ae329(_0x4de46d._0xcf0bee)]>0x0&&_0xc29648['addIssue']({'code':_0x1fe3aa[_0x2ae329(0x1e4)][_0x2ae329(0x205)],'path':[_0x2ae329(_0x4de46d._0x491f29)],'message':profileConflict(_0x1663d0['profile'],_0x4abffb)});}});function isTimeZone(_0x566e2c){var _0x2ea178={_0x194c99:0x1ff},_0x396f1f=_0x4a59ba;try{return new Intl['DateTimeFormat']('en-US',{'timeZone':_0x566e2c}),_0x566e2c[_0x396f1f(_0x2ea178._0x194c99)]>0x0;}catch{return![];}}__name(isTimeZone,_0x4a59ba(0x1e5));function isLocale(_0x3dfb10){try{return Intl['getCanonicalLocales'](_0x3dfb10)['length']===0x1;}catch{return![];}}function _0x284d(){var _0x74549=['iIdIGjqGzxHWzwn0zwqGysbcq1aGndCGDgfNihn1y2GGyxmGiMvZluvtiG','lNvUB3rLC3qVzMfPBhvYzxm','AxnbCNjHEq','D2vIu2vYDMvYwW','Dw5RBM93BIbRzxKGiG','zw51Bq','B2jQzwn0','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','BgLUDdP0ExbLzc1ZDgvWlwf2ywLSywjSzq','Aw50','Dw5YzwnVz25PEMvKx2TLExm','AvbOB25Lide1','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','DMfSAwrHDg9YoMfYAxr5','C3rYAwn0','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0CMLUzY1Tzw1Izxi','BwfW','AM9PBG','CMvKywn0zwq','AxnmB2nHBgu','DMfSAwrHDg9YoNrVCc1SzxzLBc1JB25ZDa','yNjVD3nLCNm','DMfSAwrHDg9YoM91Dc1VzI1Syw5NDwfNzq','BgvUz3rO','mta1wvHqA3vU','C3rKAw8','BgLUDdPNB3rVlwnVBMnHDa','zgv2AwnL','BgL0zxjHBa','y3vZDg9T','DMLLD3bVCNrezxzPy2vdB25MBgLJDa','DMfSAwrHDg9YoMfYCMf5lw1LBwjLCI1YzwnLAxzLCG','Dw5VDgvZDc9LmMu','ywrKsxnZDwu','DxjS','DMfSAwrHDg9YoNvUA25VD24TBwvTyMvY','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','A2v5CW','BgLUDdPZy2vUyxjPBY1PBI1YB290','DMfSAwrHDg9YoMv2ywX1yxrLlwLUDgvYCg9SyxrPB24','mta2mJy5nKfUDwLRwa','zgLZBwLZCW','ChjVzMLSzunVBMzSAwn0','zM9YrwfJAa','DMfSAwrHDg9YoMfZC2vYDc1UzxzLCI1ZAgfWzq','BgLUDdPTDxn0ywnOzs1PBI1KC2W','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','BgLUDdPYzwDLEc1PBNzHBgLK','C3rYAwn0t2jQzwn0','BgLUDdPMBg93lxjLDhvYBNmTDMfSDwu','igfUzca','y2HYB21PDw0','B2zM','DMfSAwrHDg9YoNn0CMLUzY1Tzw1IzxiTCMvJzwL2zxi','ChjVzMLSzq','igLZigfSCMvHzhKGyw5VDgHLCIbZzxj2zxiNCYdIGjqGzwfJAcbZzxj2zxiGBMvLzhmGAxrZig93BIbYzwfKAw5LC3mGvvjmlG','DMfSAwrHDg9YoM1LDgeTC2HHCgu','DMfSAwrHDg9YoMzVCI1ZAgfWzq','zgvMyxvSDevYCM9Y','BxnLzgDL','zMLYzwzVEa','nw1HBLPqEa','y2HYB21LlwjLDge','Bwf4','D2vIA2L0','DMfSAwrHDg9YoNzHCI1ZAgfWzq','nZi1nJHhD1zvwNu','zNvSBhnJCMvLBG','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','zxjYB3i','BNvTyMvY','y2XVC2vZDeTLEq','BgLUDdPYB2XLlxvUA25VD24TB3b0Aw9U','zNvSBa','yM9VBgvHBG','BgLUDdP4Cgf0Aa','DMfSAwrHDg9YoMnVBNn0lwfZC2LNBG','Aw52ywXPzcbSB2nHBguGiG','DMLLD3bVCNq','BgLUDdPVBMuTDgvZDc1WzxiTzMLSzq','xs51CMWG','mZmZode5AKToy09s','BgLUDdPLEhrLCM5HBc12yxjPywjSzs1UBY12ywX1zq','mtmXmde2vwr2sxzu','y29Kzq','BMfTzq','DMfSAwrHDg9YoMnOywLUlxjLy2vPDMvY','BgLUDdPLEhrLCM5HBc12yxjPywjSzs11BMrLy2XHCMvK','Dw5RBM93BKTLEu1LC3nHz2u','DgHLBq','BwfUDwfS','BNvSBgfIBgu','CMvMAw5L','DMfSAwrHDg9YoNrLyxjKB3DUlxnOyxbL','ywrK','BwLU','iIbZzxrZigL0CYbVD24GC2L6zsbHBMqGC2nHBguG4OcuigrYB3aGB25Lig9MihrOzw0U','C3vWzxjszwzPBMu','C3rYAw5N','AgfZ','BgLUDdPKzwvWlwnZCW','yNjVD3nLCG','DhjHBNnMB3jT','C3rHBMrHBg9Uzq','DMfSAwrHDg9YoNrLBxbSyxrLlwvZy2fWzs1JAgfUz2vK','iIdIGjqGBM90igeGy29UzMLNigTLEtSGy2HLy2SGEw91CIbaDw5VDgvZDc93zwiGDMvYC2LVBIbPzIbPDcbJB21LCYbMCM9TigeGBMv3zxiGCMvSzwfZzq','ywnJzxb0','otm2ntCYswTHAu1T','BwLUAw1HBc11Aq','mtu4ntK1AuXbAffW','y2HYB21L','DMfSAwrHDg9YoMXVy2f0B3iTAw5KzxGTywnJzxnZ','yxjYyxK','iIdIGjqGzgLKihLVDsbTzwfUici','Dg9mB3DLCKnHC2u','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','D2fYBG','DMfSAwrHDg9YoNn0zxaTC2HHCgu','DMfSAwrHDg9YoMfYzY1RAw5K','DMfSAwrHDg9YoMXPyNjHCNKTBwvTyMvY','zgvMyxvSDa','DMfSAwrHDg9YoNbHz2uTy29Kzs1ZEw50yxG','B3b0Aw9UywW','Cg9ZAxrPDMu','DMfSAwrHDg9YoNDHAxqTDw50AwWTC2HHCgu','nZm4ntq4muX3yxn5uq','wM9KsxnZDwvdB2rL','AxnuAw1LwM9Uzq'];_0x284d=function(){return _0x74549;};return _0x284d();}__name(isLocale,_0x4a59ba(0x1fb));function _0x22e4(_0x4cbd9e,_0x2c89b4){_0x4cbd9e=_0x4cbd9e-0x189;var _0x284d21=_0x284d();var _0x22e425=_0x284d21[_0x4cbd9e];if(_0x22e4['sLPXsJ']===undefined){var _0x4ad10a=function(_0x233ea4){var _0x1fabf5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x1fe3aa='',_0xa5eed0='';for(var _0x5154a0=0x0,_0x58d327,_0x1ba2e2,_0x20ddc1=0x0;_0x1ba2e2=_0x233ea4['charAt'](_0x20ddc1++);~_0x1ba2e2&&(_0x58d327=_0x5154a0%0x4?_0x58d327*0x40+_0x1ba2e2:_0x1ba2e2,_0x5154a0++%0x4)?_0x1fe3aa+=String['fromCharCode'](0xff&_0x58d327>>(-0x2*_0x5154a0&0x6)):0x0){_0x1ba2e2=_0x1fabf5['indexOf'](_0x1ba2e2);}for(var _0x5aed4c=0x0,_0x39252a=_0x1fe3aa['length'];_0x5aed4c<_0x39252a;_0x5aed4c++){_0xa5eed0+='%'+('00'+_0x1fe3aa['charCodeAt'](_0x5aed4c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xa5eed0);};_0x22e4['gMKZxK']=_0x4ad10a,_0x22e4['evyCbe']={},_0x22e4['sLPXsJ']=!![];}var _0x12ae93=_0x284d21[0x0],_0x456b92=_0x4cbd9e+_0x12ae93,_0x62ccad=_0x22e4['evyCbe'][_0x456b92];return!_0x62ccad?(_0x22e425=_0x22e4['gMKZxK'](_0x22e425),_0x22e4['evyCbe'][_0x456b92]=_0x22e425):_0x22e425=_0x62ccad,_0x22e425;}var DEFAULT_CONFIG={'browsers':[_0x4a59ba(0x199)],'retry':{'count':0x0,'on':['transient']},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x4a59ba(0x1e7),'pageHtml':_0x4a59ba(0x1fa)},'dialogPolicy':_0x4a59ba(0x1d0),'testDir':_0x4a59ba(0x208),'helpersDir':'unotest/e2e/_helpers','defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x4a59ba(0x1da),'lint:xpath':_0x4a59ba(0x1da),'lint:obfuscated-class':_0x4a59ba(0x1da),'lint:pause-explicit':_0x4a59ba(0x1da),'lint:disambig-by-index':_0x4a59ba(0x19a),'lint:evaluate-discouraged':_0x4a59ba(0x1da),'lint:scenario-in-root':_0x4a59ba(0x1ab),'lint:mustache-in-dsl':'error','lint:goto-concat':'warn','lint:regex-invalid':_0x4a59ba(0x1ab),'lint:echo-assert':_0x4a59ba(0x1da),'lint:lint-ok-missing-reason':_0x4a59ba(0x1da),'lint:flow-returns-value':_0x4a59ba(0x1da),'lint:legacy-layout':_0x4a59ba(0x1da),'lint:external-variable-undeclared':_0x4a59ba(0x1ab),'lint:external-variable-no-value':_0x4a59ba(0x1ab),'lint:env-host-from-base':'error','lint:one-test-per-file':'warn','lint:shadows-dsl-function':'warn','lint:skip-outside-test':'error','lint:set-test-timeout-outside-test':_0x4a59ba(0x1ab),'lint:filter-unknown-option':_0x4a59ba(0x1ab),'lint:role-unknown-option':_0x4a59ba(0x1ab),'validator:unknown-function':_0x4a59ba(0x1ab)}},'env':{'shared':[]},'mcp':{'transport':_0x4a59ba(0x201)},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};export{BROWSER_CHANNEL_WORDS,BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,DisplayModeSchema,EnvConfigSchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,QueueConfigSchema,RetryConfigSchema,RetryReasonSchema,SYSTEM_BROWSER_CHANNELS,SandboxConfigSchema,ScheduleSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema,WebServersConfigSchema,viewportDeviceConflict};
|
|
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};
|