@unotest/web 0.53.0 → 0.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +94 -4
- package/README.md +42 -12
- package/dist/config/schema.d.ts +6 -3
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.d.ts +2 -2
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +19 -2
- package/dist/dsl/index.js +1 -1
- package/dist/dsl/v8/scenario-worker.js +1 -1
- package/dist/dsl/web-dsl-language-service.js +1 -1
- package/dist/inspection/page-inject.d.ts +9 -4
- package/dist/inspection/page-inject.js +3 -2
- package/dist/{interfaces-BU-PQbt4.d.ts → interfaces-CNvyInrY.d.ts} +10 -0
- 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.d.ts +1 -1
- package/dist/runner/init.js +1 -1
- package/dist/runner/install-chromium.js +1 -1
- package/dist/runner/prepare-fix.js +1 -1
- package/dist/runner/scaffold-workspace.js +1 -1
- package/dist/runner/serve-fixture.js +1 -1
- package/dist/runner/web-runner-adapter.js +1 -1
- package/guides/agent-integration.md +17 -3
- package/guides/dsl-reference.md +81 -6
- package/llms.txt +2 -1
- package/package.json +8 -8
- package/types/unotest-dsl.d.ts +9 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,95 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.55.0] - 2026-10-25
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4c34192: New: `npx @unotest/web box repo add [url]` maps a repository to its project on a box that already exists, so `bundle push` stops warning that the repository "maps to no project on this box". `box create` has mapped the project's git origin since 0.54.0; a box rented earlier gets the same mapping from this one command, with no operator. The repository defaults to the checkout's git origin, credentials in a URL are never sent, and running it again changes nothing. It uses the project's push token, the one `bundle push` uses: the token decides the project, and a repository another project on the box already holds is refused with that project's name. The `bundle push` warning now ends with this command. The MCP tool `box_repo_add` takes `{url?}` and does the same. The box needs this release's image: an older box answers with the next step, Update in the dashboard.
|
|
8
|
+
|
|
9
|
+
replaces: asking the box's operator to add the repository to the box config by hand
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npx @unotest/web box repo add
|
|
13
|
+
# ✓ github.com/acme/app maps to project shop on this box
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
- 0505386: BREAKING: a box rented without a lifetime is now deleted by itself after 24 hours, and charging for it stops then. This is the cloud's default for every client, `@unotest/web` 0.54.0 included: `box create` without `--ttl`, the MCP tool `cloud_box_create` without `ttl`, and the dashboard's create form with its default all rent a box that ends a day later. The owner gets a letter when a box's lifetime ends it. Boxes rented before this change have no lifetime and keep running while they are paid for.
|
|
17
|
+
|
|
18
|
+
Migration: for a box that has to keep running — one CI pushes to — rent it with `npx @unotest/web box create <name> --ttl none` (MCP: `ttl: "none"`; dashboard: Lifetime "No lifetime"), or take the lifetime off one you already rented with `npx @unotest/web box extend <name> --ttl none`.
|
|
19
|
+
|
|
20
|
+
- e8b257d: New: a rented box has a lifetime. `box create --ttl 8h` (or `2d`, up to `30d`) rents a box that is deleted by itself at the end of it, and charging stops there; without `--ttl` the cloud gives a new box 24 hours, and `--ttl none` keeps it until you delete it. `box extend <name> --ttl 4h` moves the end later (`--ttl none` takes the lifetime away); nothing is charged at once, the box keeps being charged by the hour while it runs. `box status` and `box list` show when a box ends, and within the hour before the end `box status` prints the command that extends it. A key that may not spend by itself asks a person for an extension, as it does for a create, and the request shows the lifetime next to the price. The MCP tool `cloud_box_create` takes `ttl`, and the new `cloud_box_extend` takes `{name, ttl}`. In the dashboard, the create form has a Lifetime select, each box shows when it ends next to its price, and Extend moves the end. Update every machine that uses the account: while an extension waits for approval, `box approvals` and the MCP list of waiting requests fail on 0.54.0, which cannot read that kind of request. From this version on, a kind of request the client does not know is listed by name instead.
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
npx @unotest/web box create shop --ttl 8h
|
|
24
|
+
npx @unotest/web box extend shop --ttl 4h
|
|
25
|
+
npx @unotest/web box create ci-box --ttl none
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
replaces: remembering to run `box destroy` when you are done
|
|
29
|
+
|
|
30
|
+
- 88e1199: BREAKING: a scenario reads a project variable only by its bare name, `APP_URL`, never as a member, `globalThis.APP_URL`. A test read the variable through `globalThis` while the list of variables a bundle reads (`readVariables`, the gaps `push` reports) did not name it, so a push let through a suite whose variable the box did not have. `globalThis.APP_URL` is now `undefined` unless the test also reads `APP_URL` itself; `lint` gives no error on the member form.
|
|
31
|
+
|
|
32
|
+
Migration: read the variable directly: `goto(APP_URL)` instead of `goto(globalThis.APP_URL)`. For a name only known at run time, use `env(name)`.
|
|
33
|
+
|
|
34
|
+
- 4023a82: New: `waitForResponse(glob, {status?, method?, since?, timeoutMs?})` waits for the answer to a request and returns `{url, method, status, ok, headers, json, text}`, so a test can check what an answer draws, or must not, without a `pause`: `click(load); waitForResponse('**/api/items', {status: 200}); assertHidden(item)`. It looks at requests sent from the start of the last call that acted on the page (a click, fill, press, goto, evaluate and the like): a log or an assertion in between moves nothing, the same GET the page made as it loaded is not taken after a later click, and an answer that came before the call is found. Each answer is returned once. `{status}` and `{method}` pass over other answers, and a request that failed is no answer. `{since}` (from `nowMs()`) sets the start instead, for when another action came between the one that sent the request and the wait. A timeout fails the test and names the answers it passed over and why. The answer is in but not yet drawn: to show an element never appears, follow with `assertNeverAppears`. The lint hint on `pause` now names `waitForResponse`. `networkEntries()` entries carry the response `headers` too. replaces: `pause` after a click, and `waitUntil` over `networkEntries`
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- 97be883: Fixed: `click`, `doubleClick` and `press` on a control that closes its own page (a button that runs `window.close()`) no longer fail with "Target page, context or browser has been closed" when the page goes away before the action returns. The action did its work, so the step goes on. An action on a page that was already closed is still an error.
|
|
39
|
+
- 60cea81: Fixed: `box create --help` no longer says the base `unotest/.env` is an environment of its own. Box environments are the `unotest/.env.<name>` overlays; the base file is only the layer they share, and it is the one environment, `default`, only when there is no overlay. When no environment has a public address, `box create` now says what to do: with a public address in `unotest/.env` next to a localhost overlay it explains the layering, and it names where the public `APP_BASE_URL` goes (e.g. `unotest/.env.staging`). `env set` refusing a loopback or private-network target and `cloud_box_create` (its `next`) give the same step.
|
|
40
|
+
- 07e9296: Fixed: the way to a CI box now says the box needs `--ttl none`. The hint `init` ends with reads `box create --ttl none`, `box create` without `--ttl` names the lifetime it rents for (`for 24 hours by default; --ttl none keeps it for CI`), and the docs on running on every push say to rent the box CI pushes to with `box create <name> --ttl none`, or to take the lifetime off one you already rented with `box extend <name> --ttl none`. Before, a box rented as the hint said was deleted a day later and the workflow's pushes failed.
|
|
41
|
+
- f98461f: Changed: the workflow `init --ci github` writes gives its token read access only (`permissions: contents: read`) and pins `actions/checkout` and `actions/setup-node` by commit, with the version in a comment; Dependabot's `github-actions` keeps the pins current. It still runs on every branch, and the file now says why and how to narrow it. A workflow you already have is not changed; `init --ci github --force` writes the new one and keeps yours as `.bak`.
|
|
42
|
+
- 0771c34: Fixed: a scenario that catches a stack overflow (deep recursion, or `JSON.stringify` of a deeply nested value) no longer gets the wrong answers afterwards. An overflow that landed inside a DSL call could leave that call's reply behind, so the next calls silently read the previous call's result, or the run failed with "the main thread raised its reply flag with no reply on the port". Each call now reads its own reply.
|
|
43
|
+
- e8d814f: Fixed: a value nested very deep (a loop that wraps a value in itself, `v = [v]`, fifty thousand times) no longer ends the whole `e2e` command with `Maximum call stack size exceeded` and no verdict. A DSL function handed a value nested deeper than 1000 levels (`log`, `note`, `assertEqual`, any other) refuses it by name, `log: value nested deeper than 1000 levels`, and the test is errored with that reason; the run prints its verdict and summary as for any other error. The Vars view and `inspect_runtime` show such a value cut at 1000 levels, marked `…`. `JSON.stringify` is the engine's own and throws its own `RangeError`, as in any JavaScript. `@unotest/dsl/value` exports the bound and the check, `MAX_VALUE_DEPTH`, `nestedDeeperThan` and `ValueTooDeepError`, and its snapshot cuts a value at that depth.
|
|
44
|
+
- 8eec55d: Fixed: `dsl_lookup` no longer answers a task the DSL has no function for with functions that share one word with it: "sort table rows" got `texts` and `openTerminal`, "run the suite in GitHub Actions on every push" got `clockRun` and `vmRun`. When the functions found hold too little of what the task's words say, the reply has no function, and the pointer to the CLI commands comes first, right after the task.
|
|
45
|
+
- f7385e9: Fixed: three hints `init` gives right after install. The `.bak` that `init --ci github --force` keeps of `.github/workflows/unotest.yml` is now in the `.gitignore` lines `init` writes, so `git status` no longer lists it. The hint to download the bundled Chromium reads `cd unotest && npx @unotest/web install-chromium`, like the other next steps: from the project root, npx takes the npm package, not the version your suite pins. And `unotest/.env.example`, like the `dbQuery` error for a missing driver, installs the database driver into the suite with npm (`cd unotest && npm i -D pg @types/pg`) instead of `pnpm add -D`, which needed pnpm and put the driver in your application.
|
|
46
|
+
- 9dd70f5: Fixed: with `UNOTEST_JUDGE_MODE=local`, the judge now finds its provider key (`GEMINI_API_KEY`, `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`) in `unotest/.secrets` or `unotest/.secrets.<env>`, the files the run header already reported as loaded; an exported variable still wins. Before, a key kept there was ignored and every run that reached `assertJudge` was refused with "requires GEMINI_API_KEY". The same holds for a collection's preflight. The key is handed to the judge only: it is not added to the environment a scenario's `shell()` or a child process inherits. When no key is found, the refusal names every place it looked.
|
|
47
|
+
- 0ff4150: Fixed: `login` on a machine whose key was granted less than a sign-in asks for today — a key from 0.51.0 or earlier, or one with `billing:read` unticked on the approval page — no longer answers "already signed in" and leaves the balance invisible for good. It says what the key is missing, runs the sign-in again, and revokes the old key once the new one is saved; whatever is granted this time is kept as granted. A key set through `UNOTEST_CLOUD_TOKEN` is left alone as before. `whoami` and the price line of `box create` / `box picker on` now say what to do when a key cannot see the money: run `npx @unotest/web login`, or, for a key from the environment, create one with `billing:read` in the cabinet.
|
|
48
|
+
- Updated dependencies [4c34192]
|
|
49
|
+
- Updated dependencies [e8b257d]
|
|
50
|
+
- Updated dependencies [e8d814f]
|
|
51
|
+
- @unotest/protocol@0.55.0
|
|
52
|
+
- @unotest/dsl@0.55.0
|
|
53
|
+
- @unotest/viewer@0.55.0
|
|
54
|
+
- @unotest/core@0.55.0
|
|
55
|
+
- @unotest/grounder-client@0.55.0
|
|
56
|
+
|
|
57
|
+
## [0.54.0] - 2026-10-24
|
|
58
|
+
|
|
59
|
+
### Minor Changes
|
|
60
|
+
|
|
61
|
+
- 5ffa98d: New: `box create --env <name>` sends only the environments named; repeat it for several, e.g. `npx @unotest/web box create --env staging --env prod`. replaces: deleting a `unotest/.env.<name>` overlay before renting so it would not be sent.
|
|
62
|
+
|
|
63
|
+
Changed: a box runs only your tests and reaches your app at a public address, and the CLI now says so before anything is rented. `box create` leaves out an environment whose `APP_BASE_URL` is `localhost`, a loopback or private-network address (`127.x`, `10.x`, `172.16-31.x`, `192.168.x`, `100.64.x`), a link-local address or a name only a local network resolves (`*.local`, `*.localhost`, a name without a dot such as a compose service), and prints a note naming the environment and the reason. When no environment is left, it refuses with exit 2 and nothing is created or charged. A named `--env` that cannot be served is refused the same way rather than dropped. `env push` sends the values of such an environment but not its target, with the same note.
|
|
64
|
+
|
|
65
|
+
BREAKING: `env set <env> APP_BASE_URL <url>` and the MCP tool `cloud_box_create` now refuse a target of that kind instead of storing it. `cloud_box_create` answers `{state: 'unreachable-target'}` with each environment and reason, before the cloud is asked for anything.
|
|
66
|
+
|
|
67
|
+
Migration: give the environment a public address (a staging deploy, a tunnel with a public hostname) and set that as its `APP_BASE_URL`, or leave the environment out of `envs` and `--env`.
|
|
68
|
+
|
|
69
|
+
- 70a77a9: New: `npx @unotest/web init --ci github` writes `.github/workflows/unotest.yml` at the root of your git repository. Its steps run in `unotest/`: on every push it runs `npm ci`, so the version pinned in `unotest/package.json` is used, and then `npx @unotest/web bundle push --run --collection examples --json`, with the box address and push token read from the repository secrets `UNOTEST_BOX_URL` and `UNOTEST_BOX_TOKEN`. In a monorepo the steps run in the project's `unotest/`. Outside a git repository no workflow is written. A re-run leaves the file as it is; `--force` takes the template again and keeps yours as `.bak`. replaces: copying the minimal CI job from the docs and adapting it by hand.
|
|
70
|
+
|
|
71
|
+
### Patch Changes
|
|
72
|
+
|
|
73
|
+
- 88807f9: Fixed: the first `bundle push` after `box create` no longer warns that the repository "maps to no project on this box". `box create` (and the `cloud_box_create` MCP tool) now maps the project's git `origin`, without credentials, to the box's project; with no git or no origin the create is unchanged. The warning itself no longer sends a box's owner to an operator.
|
|
74
|
+
- 8eeaa67: Fixed: `lint` no longer reports `lint:external-variable-undeclared` for the own name of a class or function expression used inside it (`const Q = class R { m() { return R } }`, `const f = function G(n) { return n ? G(n - 1) : 0 }`). The same name outside the expression is still checked.
|
|
75
|
+
- f6f0c70: Fixed: the line `lint` prints when it skips the type check now says where `typescript` is looked for — next to `@unotest/web`, in the suite — and how to install it there: `cd unotest && npm i -D typescript@5`. A box installs the suite alone, so that is where `typescript` belongs. `init` also lists `unotest/unotest.config.mjs` under "Files:" with the rest of what it writes; the config's outcome is still the line printed after the browser question.
|
|
76
|
+
- ecf2f35: Fixed: `npx @unotest/web api <word>` and the MCP tool `dsl_lookup` find a word only where a word begins. `api lint` no longer prints `scrollIntoView` ("scrol**lint**oView"), and "sort table rows" no longer suggests `dragAndDrop`. A task without a negation no longer finds a check by the words it negates: "wait until the success toast appears" gives `assertVisible`, `waitFor`, `waitUntil`, not `assertNeverAppears`; "an error toast never shows" still finds it. `dsl_lookup` now returns up to four functions instead of three, and every reply carries `commands`: where the CLI commands are listed, since a task such as "a typo in a variable name" is what `lint` reports. `api` says the same when no function matches.
|
|
77
|
+
- eec637d: Fixed: a run of a whole file plays its `test_*` functions only. A `flow_*` function next to them is no longer played as a run of its own with no arguments, which failed it and added a failure the file did not have. A file with no tests still plays its flows. `--test <name>` picks a test as before.
|
|
78
|
+
- e32b2ba: Fixed: `init --force` (including `init --ci github --force`) no longer rewrites `unotest/package.json` from the template, which dropped every dev dependency except `@unotest/web` so the next `npm install` removed them. The existing file is now only completed with what the template has and the file lacks; your dependencies and your `@unotest/web` pin stay, and nothing changes when nothing is missing. A file that is not valid JSON is refused with its reason instead of being replaced.
|
|
79
|
+
- c31d64c: Fixed: `init` run from inside the suite (`cd unotest && npx @unotest/web init --ci github`) no longer creates a second suite in `unotest/unotest/` with a workflow pointing at it. Like every other command, it now works on the project the suite belongs to; in a directory with no suite above it, `init` sets the project up in place, as before. An explicit `[target]` is unchanged.
|
|
80
|
+
- 158e5b5: Fixed: the MCP server now sees a `login` made after it started. Signing in, signing out or switching accounts in another terminal takes effect on the next cloud tool call, without restarting the agent session. Until then the tools answer `not-logged-in` with the login command.
|
|
81
|
+
- b2fb2d0: Fixed: a `linter.rules` entry for `validator:implicit-declaration` or `validator:unsupported-statement` no longer loses its level. `lint` now says which rule replaced it (`validator:implicit-global`, `validator:top-level-statement`) and asks to rename the entry. Until then the old entry's level applies to the new rule, unless the config sets the new rule too. A removed rule with no successor still gets the old "reports nothing" warning.
|
|
82
|
+
- c7c51dc: Fixed: the hint `schedules` prints for running a test entry now reads `npx @unotest/web e2e <feature>/<name> --scheduled`. The old `e2e <name>` pointed at a file in the root of `unotest/e2e/`, which lint rejects.
|
|
83
|
+
- 83b2473: Fixed: a `teardown(…)` or `step(…)` written without its label or its function, such as `teardown(() => { … })`, stops the test at that line with `teardown is written teardown("label", () => { … })`, as it did before 0.52.0. It used to show the function's internal code as the step's name and fail later with `… is not a function`.
|
|
84
|
+
- b0a7fe2: Fixed: with `displayMode` set, WebKit pages see `navigator.standalone` on Linux too, as the reference says — `true` for `standalone`, `false` for the other modes. Before, it was set only where the engine already had the property, which Playwright's WebKit has on macOS and not on Linux, so runs on a box got no `navigator.standalone`. Chromium still has none; without `displayMode` the browser's own is left as is.
|
|
85
|
+
- Updated dependencies [eec637d]
|
|
86
|
+
- Updated dependencies [83b2473]
|
|
87
|
+
- @unotest/protocol@0.54.0
|
|
88
|
+
- @unotest/dsl@0.54.0
|
|
89
|
+
- @unotest/viewer@0.54.0
|
|
90
|
+
- @unotest/core@0.54.0
|
|
91
|
+
- @unotest/grounder-client@0.54.0
|
|
92
|
+
|
|
3
93
|
## [0.53.0] - 2026-10-23
|
|
4
94
|
|
|
5
95
|
### Minor Changes
|
|
@@ -171,7 +261,7 @@
|
|
|
171
261
|
|
|
172
262
|
- 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.
|
|
173
263
|
- 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.
|
|
174
|
-
- cc4074a: Fixed: a class declared inside a test, a flow or a helper (`class
|
|
264
|
+
- 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`.
|
|
175
265
|
- 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.
|
|
176
266
|
- @unotest/core@0.52.1
|
|
177
267
|
- @unotest/dsl@0.52.1
|
|
@@ -2464,7 +2554,7 @@ picker on` fetches this project's own access and writes the three grounder
|
|
|
2464
2554
|
|
|
2465
2555
|
That screen named one command:
|
|
2466
2556
|
|
|
2467
|
-
|
|
2557
|
+
npx @unotest/web bundle push --run --env ENVIRONMENT
|
|
2468
2558
|
|
|
2469
2559
|
In a project that has just been created, the command refuses with `no box
|
|
2470
2560
|
address` before it does anything: the project holds neither the box's address
|
|
@@ -2473,8 +2563,8 @@ address` before it does anything: the project holds neither the box's address
|
|
|
2473
2563
|
|
|
2474
2564
|
The screen now names both steps, in the order they have to happen:
|
|
2475
2565
|
|
|
2476
|
-
|
|
2477
|
-
|
|
2566
|
+
npx @unotest/web box access larch
|
|
2567
|
+
npx @unotest/web bundle push --run --env ENVIRONMENT
|
|
2478
2568
|
|
|
2479
2569
|
The box's own name is filled in when its licence carries one. `box access`
|
|
2480
2570
|
with no name refuses, and its refusal offers to create a box — to somebody who
|
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ package; the full reference is at https://docs.unotest.com/reference/dsl/.
|
|
|
31
31
|
- **Page state** — `getAttribute`, `getInnerText`, `getInputValue`, `boundingBox`, `getTitle`, `getUrl`, `log`
|
|
32
32
|
- **Storage and cookies** — `setLocalStorage`, `getLocalStorage`, `setCookie`, `getCookie`
|
|
33
33
|
- **Tabs, frames, contexts, extensions** — `setPage`, `waitForPage`, `bringToFront`, `setPageHidden`, `newPage`, `closePage`, `setViewport`, `emulateMedia`, `newContext`, `setContext`, `enterFrame`, `exitFrame`, `addVirtualAuthenticator`, `virtualCredentials`, `removeVirtualAuthenticator`, `grantPermissions`, `setOffline`, `waitForServiceWorker`, `extensionId`, `evaluateInServiceWorker`
|
|
34
|
-
- **Data, files, network, processes** — `shell`, `waitForFile`, `assertNoFile`, `waitForJsonLine`, `assertNoJsonLine`, `readJsonLine`, `readJson`, `readFile`, `readFileInfo`, `waitForFileCount`, `assertFileCount`, `dbQuery`, `dbExec`, `apiCall`, `upload`, `mockRoute`, `unmockRoute`, `waitForRequest`, `waitForWebSocket`, `networkEntries`, `assertNoRequest`, `openTerminal`, `setTerminal`, `closeTerminal`, `terminalType`, `terminalClipboardWrite`, `terminalClipboardRead`, `terminalPress`, `terminalWaitForText`, `terminalWaitForExit`, `terminalAssertText`, `terminalResize`, `terminalText`, `terminalScreenshot`, `mcpStart`, `mcpCall`, `mcpWaitNotification`, `mcpStop`, `vmAvailable`, `vmClone`, `vmRun`, `vmIp`, `vmStop`, `vmDelete`
|
|
34
|
+
- **Data, files, network, processes** — `shell`, `waitForFile`, `assertNoFile`, `waitForJsonLine`, `assertNoJsonLine`, `readJsonLine`, `readJson`, `readFile`, `readFileInfo`, `waitForFileCount`, `assertFileCount`, `dbQuery`, `dbExec`, `apiCall`, `upload`, `mockRoute`, `unmockRoute`, `waitForRequest`, `waitForResponse`, `waitForWebSocket`, `networkEntries`, `assertNoRequest`, `openTerminal`, `setTerminal`, `closeTerminal`, `terminalType`, `terminalClipboardWrite`, `terminalClipboardRead`, `terminalPress`, `terminalWaitForText`, `terminalWaitForExit`, `terminalAssertText`, `terminalResize`, `terminalText`, `terminalScreenshot`, `mcpStart`, `mcpCall`, `mcpWaitNotification`, `mcpStop`, `vmAvailable`, `vmClone`, `vmRun`, `vmIp`, `vmStop`, `vmDelete`
|
|
35
35
|
- **Diagnostics** — `screenshot`, `note`, `consoleEntries`, `pageErrors`, `assertNoConsoleErrors`
|
|
36
36
|
- **Structure** — `step`, `teardown`, `waitUntil`, `assertNever`
|
|
37
37
|
- **Page code (last resort)** — `evaluate`, `evaluateOnLocator`
|
|
@@ -48,8 +48,9 @@ npm install --prefix unotest
|
|
|
48
48
|
|
|
49
49
|
Run once in your project — any stack (Node, Django, Rails, Go, …), no
|
|
50
50
|
`package.json` required. `init` writes the config and a starter scenario,
|
|
51
|
-
sets up the browser (bundled Chromium
|
|
52
|
-
|
|
51
|
+
sets up the browser (it asks: bundled Chromium or your system Chrome;
|
|
52
|
+
without a terminal to ask in, as in CI, it takes the system Chrome when it
|
|
53
|
+
finds one), and wires the MCP config so Claude Code / Cursor / Codex
|
|
53
54
|
pick the server up automatically. Re-run anytime to update — it never
|
|
54
55
|
overwrites your edits.
|
|
55
56
|
|
|
@@ -82,8 +83,8 @@ cd unotest && npx @unotest/web viewer
|
|
|
82
83
|
```
|
|
83
84
|
|
|
84
85
|
A local IDE-style UI for your tests — no cloud, no account. This is your
|
|
85
|
-
home base: browse scenarios, run them, and watch each step live.
|
|
86
|
-
in §5.)
|
|
86
|
+
home base: browse scenarios, run them, and watch each step live. It runs
|
|
87
|
+
until you press Ctrl-C in that terminal. (Details in §5.)
|
|
87
88
|
|
|
88
89
|
## 3. Create a test — just ask your agent
|
|
89
90
|
|
|
@@ -181,14 +182,16 @@ Three commands, no token to copy:
|
|
|
181
182
|
|
|
182
183
|
```sh
|
|
183
184
|
npx @unotest/web login # a link and a code; approve in the browser
|
|
184
|
-
npx @unotest/web box create # rents a box named after the project, size S
|
|
185
|
+
cd unotest && npx @unotest/web box create # rents a box named after the project, size S
|
|
185
186
|
```
|
|
186
187
|
|
|
187
188
|
`login` signs this machine in to unotest cloud — the account that rents
|
|
188
189
|
boxes — and keeps the key in `~/.config/unotest/credentials.json`
|
|
189
190
|
(mode 0600). `box create` creates the box with the environments the
|
|
190
191
|
suite already runs locally (each `unotest/.env.<name>` and its
|
|
191
|
-
`APP_BASE_URL`
|
|
192
|
+
`APP_BASE_URL`; the base `unotest/.env` is only their shared layer, and
|
|
193
|
+
an environment of its own, `default`, only when no overlay exists),
|
|
194
|
+
waits for the box, writes
|
|
192
195
|
`UNOTEST_BOX_URL` to `unotest/.env` and the push and read tokens to
|
|
193
196
|
`unotest/.secrets`, pushes the suite and prints the viewer's address.
|
|
194
197
|
The tokens live thirty days; `bundle push` and `box …` re-mint them
|
|
@@ -198,6 +201,22 @@ one of them, and `box logs` the end of a box's own log without logging in to
|
|
|
198
201
|
it; `box destroy` does what it says, and `whoami` and `logout` complete the
|
|
199
202
|
set. In CI, export `UNOTEST_CLOUD_TOKEN` instead of signing in.
|
|
200
203
|
|
|
204
|
+
A box has a lifetime: at its end it is deleted by itself and charging
|
|
205
|
+
stops. `box create --ttl 8h` (hours or days, up to `30d`) sets it; without
|
|
206
|
+
`--ttl` the cloud gives a new box 24 hours, and `--ttl none` — what a CI
|
|
207
|
+
box wants — keeps it until it is deleted. `box extend <name> --ttl 4h`
|
|
208
|
+
moves the end later and charges nothing at once. `box status` and
|
|
209
|
+
`box list` show the end, and in the last hour `box status` prints the
|
|
210
|
+
command that extends it.
|
|
211
|
+
|
|
212
|
+
A box runs only your tests: it does not start your app, which must be
|
|
213
|
+
reachable at a public address. An environment whose `APP_BASE_URL` is
|
|
214
|
+
`localhost`, a private network (`10.x`, `192.168.x`, …) or a local-only
|
|
215
|
+
name (`*.local`, a compose service) stays behind with a note, and
|
|
216
|
+
`box create` rents nothing when no environment is left, and says where a
|
|
217
|
+
public address goes instead.
|
|
218
|
+
`--env <name>` (repeatable) sends only the environments named.
|
|
219
|
+
|
|
201
220
|
On a box the suite's files are read-only and a run may write in two places
|
|
202
221
|
only. Which ones, the variables a run is given and where a `shell()` step
|
|
203
222
|
starts are on one page:
|
|
@@ -308,7 +327,7 @@ If your team runs a box (a machine that keeps the environments, the
|
|
|
308
327
|
schedules and the history in one place), tests get there by being pushed:
|
|
309
328
|
|
|
310
329
|
```sh
|
|
311
|
-
npx @unotest/web bundle push --box https://tests.example.com
|
|
330
|
+
cd unotest && npx @unotest/web bundle push --box https://tests.example.com
|
|
312
331
|
```
|
|
313
332
|
|
|
314
333
|
It packs `unotest/` — the suite package, with its config, its
|
|
@@ -335,10 +354,16 @@ reads a file outside `unotest/`, a missing `unotest/package-lock.json`,
|
|
|
335
354
|
no `@unotest/web` pin. The bundle's id is a hash of its content, so
|
|
336
355
|
pushing an unchanged suite is a no-op.
|
|
337
356
|
|
|
357
|
+
A push whose repository maps to no project on the box still lands, with
|
|
358
|
+
a `warning:` naming the project it went to. `box create` maps the git
|
|
359
|
+
origin itself; on a box rented before 0.54.0, map it once with
|
|
360
|
+
`npx @unotest/web box repo add` (the project's push token, the git origin
|
|
361
|
+
by default).
|
|
362
|
+
|
|
338
363
|
From a CI job, push and run in one command:
|
|
339
364
|
|
|
340
365
|
```sh
|
|
341
|
-
npx @unotest/web bundle push --run --env test --collection smoke --pr 412
|
|
366
|
+
cd unotest && npx @unotest/web bundle push --run --env test --collection smoke --pr 412
|
|
342
367
|
```
|
|
343
368
|
|
|
344
369
|
The box answers as soon as the runs are queued and gives you their ids —
|
|
@@ -353,6 +378,7 @@ settings, its secrets — are sent separately, from the same files a local
|
|
|
353
378
|
run reads:
|
|
354
379
|
|
|
355
380
|
```sh
|
|
381
|
+
cd unotest
|
|
356
382
|
npx @unotest/web env push dev # .env + .env.dev + .secrets + .secrets.dev
|
|
357
383
|
npx @unotest/web env set dev REGION eu-west
|
|
358
384
|
printf '%s' "$KEY" | npx @unotest/web env set dev API_KEY --secret
|
|
@@ -383,6 +409,7 @@ environment's public URL, and `assertJudge` runs its judge in-process there
|
|
|
383
409
|
same terminal — no browser, no shell on the box:
|
|
384
410
|
|
|
385
411
|
```sh
|
|
412
|
+
cd unotest
|
|
386
413
|
npx @unotest/web box runs --env acme/test --latest
|
|
387
414
|
npx @unotest/web box run checkout-mqf3pwr1 --env acme/test
|
|
388
415
|
```
|
|
@@ -392,7 +419,7 @@ verdicts. A run whose test skipped itself reads `skipped`, with the reason,
|
|
|
392
419
|
and exits 0 like a local skip. When you want the artifacts too:
|
|
393
420
|
|
|
394
421
|
```sh
|
|
395
|
-
npx @unotest/web box run checkout-mqf3pwr1 --env acme/test --download
|
|
422
|
+
cd unotest && npx @unotest/web box run checkout-mqf3pwr1 --env acme/test --download
|
|
396
423
|
```
|
|
397
424
|
|
|
398
425
|
That saves the run's `*.unotest.zip` under `.unotest/box/` and unpacks its
|
|
@@ -447,7 +474,7 @@ you have just ordered may take a moment to appear.
|
|
|
447
474
|
## 5. Watch it run — the viewer
|
|
448
475
|
|
|
449
476
|
`cd unotest && npx @unotest/web viewer` opens a local UI (no cloud, no
|
|
450
|
-
account):
|
|
477
|
+
account); Ctrl-C in its terminal stops it:
|
|
451
478
|
|
|
452
479
|
- **Scenario tree** — scenarios, collections, helpers, and run history.
|
|
453
480
|
- **Run from the UI** — results stream live over WebSocket as steps execute.
|
|
@@ -468,7 +495,7 @@ reads back to repair a step when a selector drifts:
|
|
|
468
495
|
```js
|
|
469
496
|
function test_login() {
|
|
470
497
|
step("Log in as the demo user", () => {
|
|
471
|
-
goto('
|
|
498
|
+
goto('/login');
|
|
472
499
|
fill(getByLabel('Email'), 'demo@example.com');
|
|
473
500
|
click(getByRole('button', { name: 'Continue' }));
|
|
474
501
|
});
|
|
@@ -479,6 +506,9 @@ function test_login() {
|
|
|
479
506
|
}
|
|
480
507
|
```
|
|
481
508
|
|
|
509
|
+
`goto('/login')` opens that path of `APP_BASE_URL` from `unotest/.env`, the
|
|
510
|
+
address of your app.
|
|
511
|
+
|
|
482
512
|
The DSL uses the familiar modern browser-automation vocabulary, so it reads
|
|
483
513
|
the way you already expect:
|
|
484
514
|
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -129,9 +129,12 @@ declare const LinterRuleIdSchema: z.ZodEnum<["lint:deep-css", "lint:xpath", "lin
|
|
|
129
129
|
type LinterRuleId = z.infer<typeof LinterRuleIdSchema>;
|
|
130
130
|
declare const LinterSeveritySchema: z.ZodEnum<["off", "warn", "error"]>;
|
|
131
131
|
type LinterSeverity = z.infer<typeof LinterSeveritySchema>;
|
|
132
|
+
/** Removed ids whose check lives on under a new id. A removed id missing
|
|
133
|
+
* here has no successor: its entry just does nothing. */
|
|
134
|
+
declare const REMOVED_RULE_SUCCESSORS: ReadonlyMap<string, LinterRuleId>;
|
|
132
135
|
declare const LinterConfigSchema: z.ZodObject<{
|
|
133
136
|
enabled: z.ZodBoolean;
|
|
134
|
-
rules: z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:wait-exceeds-test-budget", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:top-level-statement", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:array-member-receiver", "validator:options", "validator:implicit-global", "validator:async-await", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:unknown-member", "validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"]>, z.ZodEnum<["off", "warn", "error"]
|
|
137
|
+
rules: z.ZodEffects<z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:wait-exceeds-test-budget", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:top-level-statement", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:array-member-receiver", "validator:options", "validator:implicit-global", "validator:async-await", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:unknown-member", "validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"]>, z.ZodEnum<["off", "warn", "error"]>>, Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>, Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>>;
|
|
135
138
|
}, "strict", z.ZodTypeAny, {
|
|
136
139
|
enabled: boolean;
|
|
137
140
|
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
@@ -639,7 +642,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
639
642
|
}>;
|
|
640
643
|
linter: z.ZodObject<{
|
|
641
644
|
enabled: z.ZodBoolean;
|
|
642
|
-
rules: z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:wait-exceeds-test-budget", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:top-level-statement", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:array-member-receiver", "validator:options", "validator:implicit-global", "validator:async-await", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:unknown-member", "validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"]>, z.ZodEnum<["off", "warn", "error"]
|
|
645
|
+
rules: z.ZodEffects<z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:wait-exceeds-test-budget", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:top-level-statement", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:array-member-receiver", "validator:options", "validator:implicit-global", "validator:async-await", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:unknown-member", "validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"]>, z.ZodEnum<["off", "warn", "error"]>>, Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>, Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>>;
|
|
643
646
|
}, "strict", z.ZodTypeAny, {
|
|
644
647
|
enabled: boolean;
|
|
645
648
|
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
@@ -1087,4 +1090,4 @@ type UnotestConfig = z.infer<typeof UnotestConfigSchema>;
|
|
|
1087
1090
|
type UnotestConfigInput = z.input<typeof UnotestConfigSchema>;
|
|
1088
1091
|
declare const DEFAULT_CONFIG: UnotestConfig;
|
|
1089
1092
|
|
|
1090
|
-
export { BROWSER_CHANNEL_WORDS, type Browser, type BrowserChannel, BrowserChannelSchema, BrowserSchema, DEFAULT_CONFIG, type DialogPolicy, DialogPolicySchema, type DisplayMode, DisplayModeSchema, type EnvConfig, EnvConfigSchema, type FailureBundleConfig, FailureBundleConfigSchema, type LinterConfig, LinterConfigSchema, type LinterRuleId, LinterRuleIdSchema, type LinterSeverity, LinterSeveritySchema, type McpConfig, McpConfigSchema, type QueueConfig, QueueConfigSchema, REMOVED_VALIDATOR_RULE_IDS, type RetryConfig, RetryConfigSchema, type RetryReason, RetryReasonSchema, SYSTEM_BROWSER_CHANNELS, type SandboxConfig, SandboxConfigSchema, type ScheduleConfig, ScheduleSchema, type UnotestConfig, type UnotestConfigInput, UnotestConfigSchema, type Viewport, ViewportSchema, type WebServerConfig, WebServerConfigSchema, WebServersConfigSchema, viewportDeviceConflict };
|
|
1093
|
+
export { BROWSER_CHANNEL_WORDS, type Browser, type BrowserChannel, BrowserChannelSchema, BrowserSchema, DEFAULT_CONFIG, type DialogPolicy, DialogPolicySchema, type DisplayMode, DisplayModeSchema, type EnvConfig, EnvConfigSchema, type FailureBundleConfig, FailureBundleConfigSchema, type LinterConfig, LinterConfigSchema, type LinterRuleId, LinterRuleIdSchema, type LinterSeverity, LinterSeveritySchema, type McpConfig, McpConfigSchema, type QueueConfig, QueueConfigSchema, REMOVED_RULE_SUCCESSORS, REMOVED_VALIDATOR_RULE_IDS, type RetryConfig, RetryConfigSchema, type RetryReason, RetryReasonSchema, SYSTEM_BROWSER_CHANNELS, type SandboxConfig, SandboxConfigSchema, type ScheduleConfig, ScheduleSchema, type UnotestConfig, type UnotestConfigInput, UnotestConfigSchema, type Viewport, ViewportSchema, type WebServerConfig, WebServerConfigSchema, WebServersConfigSchema, viewportDeviceConflict };
|
package/dist/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x163ea0=_0x2744;(function(_0x31a826,_0x564aee){var _0x5308df={_0x1e71f7:0x105,_0x39999b:0x12e,_0x2e18c9:0xb0},_0x404314=_0x2744,_0x143204=_0x31a826();while(!![]){try{var _0x811506=parseInt(_0x404314(0x12a))/0x1+-parseInt(_0x404314(0x10b))/0x2+-parseInt(_0x404314(0xd0))/0x3*(-parseInt(_0x404314(_0x5308df._0x1e71f7))/0x4)+-parseInt(_0x404314(0xcb))/0x5+-parseInt(_0x404314(_0x5308df._0x39999b))/0x6*(-parseInt(_0x404314(_0x5308df._0x2e18c9))/0x7)+-parseInt(_0x404314(0xad))/0x8+parseInt(_0x404314(0xf7))/0x9;if(_0x811506===_0x564aee)break;else _0x143204['push'](_0x143204['shift']());}catch(_0x1d1d62){_0x143204['push'](_0x143204['shift']());}}}(_0x2a32,0xe6e59));var __defProp=Object['defineProperty'],__name=(_0x27c182,_0x5af6fb)=>__defProp(_0x27c182,'name',{'value':_0x5af6fb,'configurable':!![]});function _0x2744(_0x18f6c7,_0x434143){_0x18f6c7=_0x18f6c7-0xa0;var _0x2a3284=_0x2a32();var _0x274471=_0x2a3284[_0x18f6c7];if(_0x2744['EEJwYW']===undefined){var _0xaa9036=function(_0x3db30e){var _0x8affed='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x3e4354='',_0x555ce3='';for(var _0x27c182=0x0,_0x5af6fb,_0x3ccddf,_0x1b58b5=0x0;_0x3ccddf=_0x3db30e['charAt'](_0x1b58b5++);~_0x3ccddf&&(_0x5af6fb=_0x27c182%0x4?_0x5af6fb*0x40+_0x3ccddf:_0x3ccddf,_0x27c182++%0x4)?_0x3e4354+=String['fromCharCode'](0xff&_0x5af6fb>>(-0x2*_0x27c182&0x6)):0x0){_0x3ccddf=_0x8affed['indexOf'](_0x3ccddf);}for(var _0x4bbfe4=0x0,_0x11bc4f=_0x3e4354['length'];_0x4bbfe4<_0x11bc4f;_0x4bbfe4++){_0x555ce3+='%'+('00'+_0x3e4354['charCodeAt'](_0x4bbfe4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x555ce3);};_0x2744['koqflg']=_0xaa9036,_0x2744['hDuBsp']={},_0x2744['EEJwYW']=!![];}var _0x397513=_0x2a3284[0x0],_0x7b5d5f=_0x18f6c7+_0x397513,_0x3f28c5=_0x2744['hDuBsp'][_0x7b5d5f];return!_0x3f28c5?(_0x274471=_0x2744['koqflg'](_0x274471),_0x2744['hDuBsp'][_0x7b5d5f]=_0x274471):_0x274471=_0x3f28c5,_0x274471;}import{z as _0x3e4354}from'zod';import{z}from'zod';import{levenshteinDistance}from'@unotest/core';var MAX_EDITS=0x2;function closestKey(_0x3ccddf,_0x1b58b5){var _0x490c6a={_0x205615:0xb4},_0x22f677=_0x2744;let _0x4bbfe4;for(const _0x11bc4f of _0x1b58b5){const _0x296ff1=levenshteinDistance(_0x3ccddf[_0x22f677(_0x490c6a._0x205615)](),_0x11bc4f[_0x22f677(0xb4)]());if(_0x296ff1>MAX_EDITS)continue;if(_0x4bbfe4===void 0x0||_0x296ff1<_0x4bbfe4[_0x22f677(0xe5)])_0x4bbfe4={'key':_0x11bc4f,'distance':_0x296ff1};}return _0x4bbfe4?.['key'];}__name(closestKey,_0x163ea0(0xcd));function unknownKeyMessage(_0x2adc02,_0x2d3375){var _0x288fb9={_0x22e601:0xbf},_0x2c8637={_0x297e3e:0xff,_0x50d01f:0xb8},_0x2b7481=_0x163ea0;return _0x2adc02[_0x2b7481(0xdc)](_0x53416b=>{var _0xc9739b=_0x2b7481;const _0x3d4cd5=closestKey(_0x53416b,_0x2d3375);return _0x3d4cd5===void 0x0?_0xc9739b(_0x2c8637._0x297e3e)+_0x53416b+'\x22\x20—\x20not\x20a\x20config\x20key;\x20check\x20your\x20@unotest/web\x20version\x20if\x20it\x20comes\x20from\x20a\x20newer\x20release':_0xc9739b(_0x2c8637._0x297e3e)+_0x53416b+_0xc9739b(_0x2c8637._0x50d01f)+_0x3d4cd5+'\x22?';})[_0x2b7481(_0x288fb9._0x22e601)](';\x20');}__name(unknownKeyMessage,_0x163ea0(0xd6));function strictObject(_0x86542e){var _0x355807={_0xc28e8a:0xbe,_0x2b8bdc:0xc1},_0x41afad=_0x163ea0;const _0x3adf1d=Object[_0x41afad(_0x355807._0xc28e8a)](_0x86542e);return z[_0x41afad(0xaa)](_0x86542e,{'errorMap':__name((_0x533266,_0x23d08f)=>_0x533266[_0x41afad(0x114)]===z['ZodIssueCode'][_0x41afad(0x11a)]?{'message':unknownKeyMessage(_0x533266[_0x41afad(0xbe)],_0x3adf1d)}:{'message':_0x23d08f['defaultError']},_0x41afad(_0x355807._0x2b8bdc))})[_0x41afad(0xf9)]();}__name(strictObject,_0x163ea0(0x116));import{BUNDLED_BROWSER_CHANNEL}from'@unotest/protocol';import{z as _0x555ce3}from'zod';import{UnotestError}from'@unotest/core';var LaunchConfigSchema=_0x555ce3['object']({'userDataDir':_0x555ce3[_0x163ea0(0x12d)]()[_0x163ea0(0x113)](0x1)[_0x163ea0(0x128)](),'profile':_0x555ce3[_0x163ea0(0x117)](_0x163ea0(0xea))[_0x163ea0(0x128)](),'args':_0x555ce3[_0x163ea0(0x104)](_0x555ce3['string']()[_0x163ea0(0x113)](0x1))[_0x163ea0(0x128)]()})[_0x163ea0(0xf9)](),PROFILES={'ios':{'browsers':['webkit'],'device':'iPhone\x2015','displayMode':_0x163ea0(0x103)}},PROFILE_NAMES=Object['keys'](PROFILES);function profileConflict(_0x9fda9c,_0x3fa521){var _0x59f7e2={_0x43ef2a:0xb5},_0x452d6a=_0x163ea0;return'profile\x20\x22'+_0x9fda9c+_0x452d6a(0x131)+_0x3fa521['map'](_0x4a4fc3=>'`'+_0x4a4fc3+'`')[_0x452d6a(0xbf)]('\x20and\x20')+'\x20itself\x20—\x20drop\x20'+(_0x3fa521[_0x452d6a(0xa7)]===0x1?'it':_0x452d6a(0xf3))+_0x452d6a(_0x59f7e2._0x43ef2a);}__name(profileConflict,_0x163ea0(0x115));var BrowserSchema=_0x3e4354['enum']([_0x163ea0(0xaf),_0x163ea0(0xfd),'webkit']),SYSTEM_BROWSER_CHANNELS=['chrome',_0x163ea0(0x106),_0x163ea0(0xa6),'chromium'],BROWSER_CHANNEL_WORDS=[...SYSTEM_BROWSER_CHANNELS,BUNDLED_BROWSER_CHANNEL],BrowserChannelSchema=_0x3e4354[_0x163ea0(0x133)]([_0x3e4354[_0x163ea0(0xfc)](SYSTEM_BROWSER_CHANNELS),_0x3e4354[_0x163ea0(0x117)](BUNDLED_BROWSER_CHANNEL)['transform'](()=>null),_0x3e4354['null']()])[_0x163ea0(0x128)](),DisplayModeSchema=_0x3e4354[_0x163ea0(0xfc)]([_0x163ea0(0xe7),_0x163ea0(0x103),_0x163ea0(0xc3),_0x163ea0(0x132)]),ViewportSchema=strictObject({'width':_0x3e4354[_0x163ea0(0x10c)]()[_0x163ea0(0x122)]()[_0x163ea0(0xe0)]()['optional'](),'height':_0x3e4354['number']()[_0x163ea0(0x122)]()[_0x163ea0(0xe0)]()[_0x163ea0(0x128)](),'deviceScaleFactor':_0x3e4354[_0x163ea0(0x10c)]()['positive']()[_0x163ea0(0x128)]()}),ConfigViewportSchema=ViewportSchema[_0x163ea0(0x119)]();function viewportDeviceConflict(_0x383f0b,_0x5ee5ad,_0x1a3ba6=_0x163ea0(0xab)){var _0x183b9b={_0x2c97d1:0x11d,_0x142ed9:0xb9},_0x3d527d=_0x163ea0;if(_0x383f0b!==null||_0x5ee5ad===void 0x0)return void 0x0;return _0x1a3ba6+_0x3d527d(_0x183b9b._0x2c97d1)+_0x5ee5ad+_0x3d527d(_0x183b9b._0x142ed9);}__name(viewportDeviceConflict,_0x163ea0(0xe2));var RetryReasonSchema=_0x3e4354[_0x163ea0(0xfc)]([_0x163ea0(0x120),_0x163ea0(0x130),'crash']),RetryConfigSchema=strictObject({'count':_0x3e4354[_0x163ea0(0x10c)]()['int']()[_0x163ea0(0x113)](0x0)[_0x163ea0(0xb1)](0xa),'on':_0x3e4354['array'](RetryReasonSchema)}),FailureBundleConfigSchema=strictObject({'tier1':_0x3e4354['literal'](!![])[_0x163ea0(0xc4)](!![]),'tier2':_0x3e4354[_0x163ea0(0xa0)](),'tier3':strictObject({'network':_0x3e4354[_0x163ea0(0xa0)](),'video':_0x3e4354['boolean']()}),'retention':strictObject({'runs':_0x3e4354[_0x163ea0(0x10c)]()[_0x163ea0(0x122)]()['positive'](),'days':_0x3e4354[_0x163ea0(0x10c)]()['int']()[_0x163ea0(0xe0)]()}),'storageDir':_0x3e4354['string']()[_0x163ea0(0x113)](0x1),'pageHtml':_0x3e4354[_0x163ea0(0xfc)]([_0x163ea0(0xcf),_0x163ea0(0x125)])}),DialogPolicySchema=_0x3e4354[_0x163ea0(0xfc)]([_0x163ea0(0xeb),_0x163ea0(0xed),_0x163ea0(0xe8)]),REMOVED_VALIDATOR_RULE_IDS=['validator:unsupported-statement','validator:unsupported-expression',_0x163ea0(0x107),_0x163ea0(0xdb),'validator:library-member','validator:implicit-declaration'],LinterRuleIdSchema=_0x3e4354[_0x163ea0(0xfc)]([_0x163ea0(0xf2),_0x163ea0(0xd3),_0x163ea0(0x11c),_0x163ea0(0x109),_0x163ea0(0xc2),_0x163ea0(0x110),_0x163ea0(0xd8),_0x163ea0(0x126),_0x163ea0(0xb3),_0x163ea0(0x10d),_0x163ea0(0xe1),_0x163ea0(0x129),_0x163ea0(0x102),'lint:flow-returns-value',_0x163ea0(0xf5),_0x163ea0(0xb7),_0x163ea0(0x12f),_0x163ea0(0xf8),_0x163ea0(0x100),_0x163ea0(0x12b),_0x163ea0(0x108),_0x163ea0(0x11f),_0x163ea0(0xef),_0x163ea0(0xe4),_0x163ea0(0xd7),_0x163ea0(0xe9),_0x163ea0(0xba),_0x163ea0(0x124),'validator:arg-kind',_0x163ea0(0xbb),'validator:step-shape',_0x163ea0(0xcc),_0x163ea0(0xd9),_0x163ea0(0xc8),_0x163ea0(0xa3),_0x163ea0(0x112),_0x163ea0(0x10f),_0x163ea0(0x11b),'validator:semantic-loss','validator:list-arg','validator:wrapped-format',_0x163ea0(0xee),_0x163ea0(0x10a),'validator:teardown-name-conflict',_0x163ea0(0xa2),_0x163ea0(0xec),_0x163ea0(0xc6),_0x163ea0(0x10e),_0x163ea0(0xf0),_0x163ea0(0xdd),'validator:array-member-receiver','validator:options',_0x163ea0(0xe6),_0x163ea0(0xe3),_0x163ea0(0xd4),_0x163ea0(0x123),_0x163ea0(0xbd),_0x163ea0(0xfa),'validator:template-escape-changed','validator:unknown-member',...REMOVED_VALIDATOR_RULE_IDS]),LinterSeveritySchema=_0x3e4354[_0x163ea0(0xfc)]([_0x163ea0(0xf4),_0x163ea0(0xd5),'error']),LinterConfigSchema=strictObject({'enabled':_0x3e4354[_0x163ea0(0xa0)](),'rules':_0x3e4354[_0x163ea0(0x12c)](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=strictObject({'enabled':_0x3e4354[_0x163ea0(0xa0)]()['default'](!![]),'concurrency':_0x3e4354['number']()['int']()[_0x163ea0(0xe0)]()['default'](0x1)}),ScheduleSchema=strictObject({'collection':_0x3e4354[_0x163ea0(0x12d)]()[_0x163ea0(0x113)](0x1),'cron':_0x3e4354['string']()[_0x163ea0(0x113)](0x1),'env':_0x3e4354[_0x163ea0(0x12d)]()['min'](0x1)[_0x163ea0(0x128)](),'prepare':_0x3e4354['string']()[_0x163ea0(0x113)](0x1)[_0x163ea0(0x128)]()}),McpConfigSchema=strictObject({'transport':_0x3e4354[_0x163ea0(0x117)]('stdio')}),SandboxConfigSchema=strictObject({'shellCwd':_0x3e4354[_0x163ea0(0x12d)]()[_0x163ea0(0x128)](),'shellTimeoutMs':_0x3e4354['number']()[_0x163ea0(0x122)]()[_0x163ea0(0xe0)]()[_0x163ea0(0x128)](),'exportSecrets':_0x3e4354[_0x163ea0(0x104)](_0x3e4354[_0x163ea0(0x12d)]())[_0x163ea0(0x128)](),'database':_0x3e4354[_0x163ea0(0x12d)]()[_0x163ea0(0x128)](),'apiBaseUrl':_0x3e4354['string']()[_0x163ea0(0x11e)]()[_0x163ea0(0x128)](),'uploadDir':_0x3e4354['string']()[_0x163ea0(0x128)](),'readRoots':_0x3e4354[_0x163ea0(0x104)](_0x3e4354[_0x163ea0(0x12d)]()['min'](0x1))['optional']()}),WebServerConfigSchema=strictObject({'command':_0x3e4354['string']()[_0x163ea0(0x113)](0x1),'url':_0x3e4354[_0x163ea0(0x12d)]()[_0x163ea0(0x11e)](),'reuseExistingServer':_0x3e4354[_0x163ea0(0xa0)]()[_0x163ea0(0xc4)](!![]),'timeoutMs':_0x3e4354[_0x163ea0(0x10c)]()[_0x163ea0(0x122)]()[_0x163ea0(0xe0)]()[_0x163ea0(0xc4)](0xea60)}),WebServersConfigSchema=_0x3e4354[_0x163ea0(0x133)]([WebServerConfigSchema,_0x3e4354[_0x163ea0(0x104)](WebServerConfigSchema)['min'](0x1)])[_0x163ea0(0xa8)](_0x1bd62b=>Array[_0x163ea0(0xa5)](_0x1bd62b)?_0x1bd62b:[_0x1bd62b])['superRefine']((_0x542e6b,_0x1a9c73)=>{var _0xecef78={_0x339484:0xb6,_0x5a52cc:0x11e,_0x152101:0x111,_0xb00e1c:0xc5},_0x2b3da7=_0x163ea0;const _0x3c83fe=new Set();_0x542e6b[_0x2b3da7(0xac)]((_0x53eb9,_0x140ad3)=>{var _0x49d8ba=_0x2b3da7;_0x3c83fe[_0x49d8ba(0xdf)](_0x53eb9['url'])&&_0x1a9c73[_0x49d8ba(0xde)]({'code':_0x3e4354['ZodIssueCode'][_0x49d8ba(_0xecef78._0x339484)],'path':[_0x140ad3,_0x49d8ba(_0xecef78._0x5a52cc)],'message':_0x49d8ba(0xce)+_0x140ad3+_0x49d8ba(_0xecef78._0x152101)+_0x53eb9[_0x49d8ba(0x11e)]+_0x49d8ba(_0xecef78._0xb00e1c)}),_0x3c83fe[_0x49d8ba(0xa4)](_0x53eb9['url']);});}),EnvConfigSchema=strictObject({'shared':_0x3e4354[_0x163ea0(0x104)](_0x3e4354[_0x163ea0(0x12d)]())[_0x163ea0(0xc4)]([])}),UnotestConfigSchema=strictObject({'baseUrl':_0x3e4354[_0x163ea0(0x12d)]()[_0x163ea0(0x11e)]()[_0x163ea0(0x128)](),'webServer':WebServersConfigSchema[_0x163ea0(0x128)](),'generate':_0x3e4354[_0x163ea0(0x12d)]()[_0x163ea0(0x113)](0x1)['optional'](),'browsers':_0x3e4354[_0x163ea0(0x104)](BrowserSchema)[_0x163ea0(0x113)](0x1),'channel':BrowserChannelSchema,'viewport':ConfigViewportSchema[_0x163ea0(0x128)](),'device':_0x3e4354[_0x163ea0(0x12d)]()['min'](0x1)[_0x163ea0(0x128)](),'profile':_0x3e4354[_0x163ea0(0xfc)](PROFILE_NAMES)[_0x163ea0(0x128)](),'displayMode':DisplayModeSchema[_0x163ea0(0x128)](),'timezone':_0x3e4354[_0x163ea0(0x12d)]()[_0x163ea0(0x121)](isTimeZone,_0x5d6b8c=>({'message':_0x163ea0(0xc7)+_0x5d6b8c+_0x163ea0(0x101)}))[_0x163ea0(0x128)](),'locale':_0x3e4354[_0x163ea0(0x12d)]()[_0x163ea0(0x121)](isLocale,_0x427b3f=>({'message':_0x163ea0(0xa9)+_0x427b3f+_0x163ea0(0xda)}))[_0x163ea0(0x128)](),'maxContexts':_0x3e4354[_0x163ea0(0x10c)]()['int']()[_0x163ea0(0xe0)]()['optional'](),'launch':LaunchConfigSchema[_0x163ea0(0x128)](),'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':_0x3e4354[_0x163ea0(0x12d)]()[_0x163ea0(0x128)](),'testDir':_0x3e4354[_0x163ea0(0x12d)]()[_0x163ea0(0x113)](0x1),'helpersDir':_0x3e4354['string']()['min'](0x1),'defaultTimeoutMs':_0x3e4354[_0x163ea0(0x10c)]()[_0x163ea0(0x122)]()['positive'](),'defaultNavigationTimeoutMs':_0x3e4354[_0x163ea0(0x10c)]()[_0x163ea0(0x122)]()[_0x163ea0(0xe0)](),'teardownTimeoutMs':_0x3e4354[_0x163ea0(0x10c)]()[_0x163ea0(0x122)]()[_0x163ea0(0xe0)]()[_0x163ea0(0x128)](),'testTimeoutMs':_0x3e4354['number']()[_0x163ea0(0x122)]()[_0x163ea0(0xe0)]()[_0x163ea0(0x128)](),'env':EnvConfigSchema,'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':_0x3e4354[_0x163ea0(0x104)](ScheduleSchema)[_0x163ea0(0xc4)]([]),'sandbox':SandboxConfigSchema})[_0x163ea0(0xbc)]((_0x786f62,_0x3996e3)=>{var _0x382323={_0x461e4c:0xde,_0x1e62c6:0x118,_0x45b57a:0x127,_0x44a4f3:0x127,_0x4ddfb3:0xa7},_0x18b4ca=_0x163ea0;const _0x373624=viewportDeviceConflict(_0x786f62['viewport'],_0x786f62['device']);_0x373624!==void 0x0&&_0x3996e3[_0x18b4ca(_0x382323._0x461e4c)]({'code':_0x3e4354[_0x18b4ca(0xf1)][_0x18b4ca(0xb6)],'path':['viewport'],'message':_0x373624});if(_0x786f62[_0x18b4ca(_0x382323._0x1e62c6)]!==void 0x0){const _0x1ce446=PROFILES[_0x786f62[_0x18b4ca(_0x382323._0x1e62c6)]],_0x32342f=[..._0x786f62[_0x18b4ca(_0x382323._0x45b57a)][_0x18b4ca(0xbf)]()!==_0x1ce446[_0x18b4ca(_0x382323._0x44a4f3)][_0x18b4ca(0xbf)]()?['browsers']:[],..._0x786f62[_0x18b4ca(0xb2)]!==_0x1ce446['device']?[_0x18b4ca(0xb2)]:[]];_0x32342f[_0x18b4ca(_0x382323._0x4ddfb3)]>0x0&&_0x3996e3[_0x18b4ca(0xde)]({'code':_0x3e4354['ZodIssueCode'][_0x18b4ca(0xb6)],'path':[_0x18b4ca(0x118)],'message':profileConflict(_0x786f62[_0x18b4ca(_0x382323._0x1e62c6)],_0x32342f)});}});function isTimeZone(_0x547ba8){var _0xff16f3={_0x422040:0xfe,_0xf913e0:0xca,_0x36c26e:0xa7},_0x345966=_0x163ea0;try{return new Intl[(_0x345966(_0xff16f3._0x422040))](_0x345966(_0xff16f3._0xf913e0),{'timeZone':_0x547ba8}),_0x547ba8[_0x345966(_0xff16f3._0x36c26e)]>0x0;}catch{return![];}}__name(isTimeZone,_0x163ea0(0xc9));function _0x2a32(){var _0xf91e08=['iIdIGjqGzxHWzwn0zwqGyw4GsufoqsbUyw1Lihn1y2GGyxmGiKv1CM9Wzs9nywrYAwqI','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','C3rHBMrHBg9Uzq','yxjYyxK','mJe1mJK4ohDTzNP6sG','BxnLzgDL','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0CMLUzY1Tzw1Izxi','BgLUDdPZA2LWlw91DhnPzguTDgvZDa','BgLUDdPWyxvZzs1LEhbSAwnPDa','DMfSAwrHDg9YoNrLyxjKB3DUlxnOyxbL','mZy2nJK0mgHZt3LvBa','BNvTyMvY','BgLUDdPYzwDLEc1PBNzHBgLK','DMfSAwrHDg9YoMnOywLUlxjLy2vPDMvY','DMfSAwrHDg9YoNrVCc1SzxzLBc1ZDgf0zw1LBNq','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','xs51CMWG','DMfSAwrHDg9YoNzHCI1ZAgfWzq','BwLU','y29Kzq','ChjVzMLSzunVBMzSAwn0','C3rYAwn0t2jQzwn0','BgL0zxjHBa','ChjVzMLSzq','BNvSBgfIBgu','Dw5YzwnVz25PEMvKx2TLExm','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','igTLzxbZihrOzsbYzwfSigjYB3DZzxiGD2LUzg93lcbHBMqGzgv2AwnLici','DxjS','BgLUDdPZzxqTDgvZDc10Aw1LB3v0lw91DhnPzguTDgvZDa','DhjHBNnPzw50','CMvMAw5L','Aw50','DMfSAwrHDg9YoNbHz2uTy29Kzs1JBg9ZDxjL','DMfSAwrHDg9YoMfYAxr5','zNvSBa','BgLUDdPTDxn0ywnOzs1PBI1KC2W','yNjVD3nLCNm','B3b0Aw9UywW','BgLUDdPHCgKTy2fSBc1MAwXLlwjVzhK','mtq3nJGZnfvqwLj5tW','BgLUDdPZAgfKB3DZlwrZBc1MDw5JDgLVBG','CMvJB3jK','C3rYAw5N','mtC1ota1meLRDgjfCq','BgLUDdPLEhrLCM5HBc12yxjPywjSzs1UBY12ywX1zq','BMv0D29YAW','iIbZzxrZia','zNvSBhnJCMvLBG','Dw5PB24','yM9VBgvHBG','z2v0q2fUB25Py2fStg9JywXLCW','DMfSAwrHDg9YoNDHAxqTDw50AwWTC2HHCgu','DMfSAwrHDg9YoMLMlxnOyxbL','ywrK','AxnbCNjHEq','y2HYB21LlwjLDge','BgvUz3rO','DhjHBNnMB3jT','Aw52ywXPzcbSB2nHBguGiG','B2jQzwn0','DMLLD3bVCNq6ig51BgW','zM9YrwfJAa','mJqZmZKWnhrswfrbCq','Dw5VDgvZDc9LmMu','y2HYB21PDw0','mtrOA0Lbv28','Bwf4','zgv2AwnL','BgLUDdPNB3rVlwnVBMnHDa','Dg9mB3DLCKnHC2u','igzYB20GDgHLignVBMzPzYWGB3iGzhjVCcb0AguGChjVzMLSzs4','y3vZDg9T','BgLUDdPLEhrLCM5HBc12yxjPywjSzs11BMrLy2XHCMvK','iIdIGjqGzgLKihLVDsbTzwfUici','iIbZzxrZigL0CYbVD24GC2L6zsbHBMqGC2nHBguG4OcuigrYB3aGB25Lig9MihrOzw0U','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','C3vWzxjszwzPBMu','DMfSAwrHDg9YoNbHz2uTy29Kzs1ZEw50yxG','A2v5CW','AM9PBG','Dw5VDgvZDc9LmMuVx2HLBhbLCNm','zxjYB3jnyxa','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','BwLUAw1HBc11Aq','zgvMyxvSDa','igLZigfSCMvHzhKGyw5VDgHLCIbZzxj2zxiNCYdIGjqGzwfJAcbZzxj2zxiGBMvLzhmGAxrZig93BIbYzwfKAw5LC3mGvvjmlG','DMfSAwrHDg9YoMXVy2f0B3iTAw5KzxGTywnJzxnZ','Dw5RBM93BIb0Aw1LihPVBMuGiG','DMfSAwrHDg9YoMzVCI1ZAgfWzq','AxnuAw1LwM9Uzq','zw4Tvvm','otyWmdqWt1nLvxvM','DMfSAwrHDg9YoM1LDgeTC2HHCgu','y2XVC2vZDeTLEq','D2vIu2vYDMvYwW','CMvKywn0zwq','m0Psr0DxBW','zxjYB3i','C3rKAw8','BgLUDdP4Cgf0Aa','DMfSAwrHDg9YoMv2ywX1yxrLlwLUDgvYCg9SyxrPB24','D2fYBG','Dw5RBM93BKTLEu1LC3nHz2u','BgLUDdPYB2XLlxvUA25VD24TB3b0Aw9U','BgLUDdPZy2vUyxjPBY1PBI1YB290','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','iIdIGjqGzxHWzwn0zwqGysbcq1aGndCGDgfNihn1y2GGyxmGiMvZluvtiG','DMfSAwrHDg9YoM91Dc1VzI1Syw5NDwfNzq','BwfW','DMfSAwrHDg9YoNn0CMLUzY1Tzw1IzxiTCMvJzwL2zxi','ywrKsxnZDwu','AgfZ','Cg9ZAxrPDMu','BgLUDdPLy2HVlwfZC2vYDa','DMLLD3bVCNrezxzPy2vdB25MBgLJDa','DMfSAwrHDg9YoMfZEw5Jlwf3ywL0','BgLUDdPMAwX0zxiTDw5RBM93BI1VChrPB24','zgLZDgfUy2u','DMfSAwrHDg9YoMLTCgXPy2L0lwDSB2jHBa','yNjVD3nLCG','BwfUDwfS','BgLUDdP0ExbLzc1ZDgvWlwf2ywLSywjSzq','CgvYlxrLC3q','ywnJzxb0','DMfSAwrHDg9YoMfZC2vYDc1UzxzLCI1ZAgfWzq','zgLZBwLZCW','DMfSAwrHDg9YoMnVBNn0lwfZC2LNBG','BgLUDdP3ywL0lwv4y2vLzhmTDgvZDc1IDwrNzxq','DMfSAwrHDg9YoNrVCc1SzxzLBc1JB25ZDa','wM9KsxnZDwvdB2rL','BgLUDdPKzwvWlwnZCW','DgHLBq','B2zM','BgLUDdPSzwDHy3KTBgf5B3v0','lNvUB3rLC3qVzMfPBhvYzxm','nJa2nJm0mLDAv0nsvG','BgLUDdPLBNyTAg9ZDc1MCM9TlwjHC2u','C3rYAwn0','DMfSAwrHDg9YoNbHz2uTy29Kzs1ZDhjPBMC','AxnmB2nHBgu','zw51Bq','zMLYzwzVEa','rgf0zvrPBwvgB3jTyxq','Dw5RBM93BIbRzxKGiG','BgLUDdPVBMuTDgvZDc1WzxiTzMLSzq'];_0x2a32=function(){return _0xf91e08;};return _0x2a32();}function isLocale(_0x16c13b){var _0x101955={_0x15450b:0xa1},_0x5b71e9=_0x163ea0;try{return Intl[_0x5b71e9(_0x101955._0x15450b)](_0x16c13b)['length']===0x1;}catch{return![];}}__name(isLocale,_0x163ea0(0xfb));var DEFAULT_CONFIG={'browsers':[_0x163ea0(0xaf)],'retry':{'count':0x0,'on':[_0x163ea0(0x120)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x163ea0(0xf6),'pageHtml':_0x163ea0(0xcf)},'dialogPolicy':_0x163ea0(0xeb),'testDir':_0x163ea0(0xae),'helpersDir':_0x163ea0(0xc0),'defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x163ea0(0xd5),'lint:xpath':'warn','lint:obfuscated-class':_0x163ea0(0xd5),'lint:pause-explicit':_0x163ea0(0xd5),'lint:disambig-by-index':_0x163ea0(0xf4),'lint:evaluate-discouraged':_0x163ea0(0xd5),'lint:scenario-in-root':_0x163ea0(0xd1),'lint:mustache-in-dsl':_0x163ea0(0xd1),'lint:goto-concat':_0x163ea0(0xd5),'lint:regex-invalid':'error','lint:echo-assert':'warn','lint:lint-ok-missing-reason':'warn','lint:flow-returns-value':'warn','lint:legacy-layout':_0x163ea0(0xd5),'lint:external-variable-undeclared':_0x163ea0(0xd1),'lint:external-variable-no-value':_0x163ea0(0xd1),'lint:env-host-from-base':_0x163ea0(0xd1),'lint:one-test-per-file':_0x163ea0(0xd5),'lint:shadows-dsl-function':'warn','lint:skip-outside-test':_0x163ea0(0xd1),'lint:set-test-timeout-outside-test':_0x163ea0(0xd1),'lint:wait-exceeds-test-budget':_0x163ea0(0xd5),'lint:filter-unknown-option':'error','lint:role-unknown-option':'error','validator:unknown-function':_0x163ea0(0xd1)}},'env':{'shared':[]},'mcp':{'transport':_0x163ea0(0xd2)},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};export{BROWSER_CHANNEL_WORDS,BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,DisplayModeSchema,EnvConfigSchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,QueueConfigSchema,REMOVED_VALIDATOR_RULE_IDS,RetryConfigSchema,RetryReasonSchema,SYSTEM_BROWSER_CHANNELS,SandboxConfigSchema,ScheduleSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema,WebServersConfigSchema,viewportDeviceConflict};
|
|
1
|
+
var _0x2e0409=_0x27a3;(function(_0x170889,_0xc9f598){var _0xef72e5={_0x34014a:0x241,_0x442b85:0x22b,_0xc11f3:0x23f},_0x554fff=_0x27a3,_0x13d010=_0x170889();while(!![]){try{var _0xd8047a=parseInt(_0x554fff(_0xef72e5._0x34014a))/0x1+parseInt(_0x554fff(0x208))/0x2+-parseInt(_0x554fff(0x25f))/0x3*(parseInt(_0x554fff(0x1e1))/0x4)+-parseInt(_0x554fff(_0xef72e5._0x442b85))/0x5+parseInt(_0x554fff(0x26d))/0x6+-parseInt(_0x554fff(0x203))/0x7*(-parseInt(_0x554fff(0x22f))/0x8)+parseInt(_0x554fff(_0xef72e5._0xc11f3))/0x9*(-parseInt(_0x554fff(0x237))/0xa);if(_0xd8047a===_0xc9f598)break;else _0x13d010['push'](_0x13d010['shift']());}catch(_0x4a22ec){_0x13d010['push'](_0x13d010['shift']());}}}(_0xe625,0xac504));var __defProp=Object[_0x2e0409(0x20c)],__name=(_0x2171f6,_0x53fa72)=>__defProp(_0x2171f6,_0x2e0409(0x273),{'value':_0x53fa72,'configurable':!![]});function _0xe625(){var _0x24e762=['yxjYyxK','BMfTzq','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','BgLUDdP4Cgf0Aa','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','BgLUDdPMBg93lxjLDhvYBNmTDMfSDwu','BgLUDdPLy2HVlwfZC2vYDa','oda3ndbtsgPiAwC','y2HYB21PDw0','Dw5YzwnVz25PEMvKx2TLExm','DMfSAwrHDg9YoNrVCc1SzxzLBc1JB25ZDa','y29Kzq','zMLYzwzVEa','BgLUDdPWyxvZzs1LEhbSAwnPDa','zNvSBa','DMfSAwrHDg9YoMLTCgXPy2L0lwrLy2XHCMf0Aw9U','D2vIu2vYDMvYwW','y3jHC2G','Aw50','DhjHBNnMB3jT','BgLUDdPZzxqTDgvZDc10Aw1LB3v0lw91DhnPzguTDgvZDa','B2jQzwn0','DMfSAwrHDg9YoNrLBxbSyxrLlwvZy2fWzs1JAgfUz2vK','BwfW','DMfSAwrHDg9YoMLTCgXPy2L0lwDSB2jHBa','DxjS','BNvTyMvY','DMfSAwrHDg9YoNbHz2uTy29Kzs1ZEw50yxG','DMfSAwrHDg9YoM1LDgeTC2HHCgu','DMfSAwrHDg9YoNbHz2uTy29Kzs1ZDhjPBMC','BgLUDdPKzwvWlwnZCW','yM9VBgvHBG','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','BgL0zxjHBa','DMfSAwrHDg9YoMfYAxr5','y2XVC2vZDeTLEq','BgLUDdPHCgKTy2fSBc1MAwXLlwjVzhK','BgLUDdPTDxn0ywnOzs1PBI1KC2W','Dg9mB3DLCKnHC2u','DMfSAwrHDg9YoM9WDgLVBNm','zw4Tvvm','mtqZnZm4yuTdvvbX','Dw5PB24','BgLUDdPVBMuTDgvZDc1WzxiTzMLSzq','AvbOB25Lide1','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0CMLUzY1Tzw1Izxi','nZeWnZHhAuv2zKe','igzYB20GDgHLignVBMzPzYWGB3iGzhjVCcb0AguGChjVzMLSzs4','BNvSBgfIBgu','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','zgvMAw5LuhjVCgvYDhK','rgf0zvrPBwvgB3jTyxq','iIbZzxrZigL0CYbVD24GC2L6zsbHBMqGC2nHBguG4OcuigrYB3aGB25Lig9MihrOzw0U','DMfSAwrHDg9YoNrLyxjKB3DUlw5HBwuTy29UzMXPy3q','BwLUAw1HBc11Aq','DMfSAwrHDg9YoMnVBNn0lwfZC2LNBG','D2fYBG','AM9PBG','C3rYAw5N','BgLUDdP0ExbLzc1ZDgvWlwf2ywLSywjSzq','zgLZBwLZCW','CMvJB3jK','zM9YrwfJAa','DMfSAwrHDg9YoMfYzY1RAw5K','C3rKAw8','C3vWzxjszwzPBMu','ChjVzMLSzsaI','BgLUDdPYB2XLlxvUA25VD24TB3b0Aw9U','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','BwfUDwfS','ChjVzMLSzq','zxjYB3jnyxa','DMfSAwrHDg9YoMXVy2f0B3iTAw5KzxGTywnJzxnZ','y3vZDg9T','DMfSAwrHDg9YoMXPyNjHCNKTBwvTyMvY','DMfSAwrHDg9YoMfZEw5Jlwf3ywL0','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','CMvMAw5L','zxjYB3i','BgLUDdPZy2vUyxjPBY1PBI1YB290','z2v0q2fUB25Py2fStg9JywXLCW','mtaXnZaWmhHUqNzeAa','igLZigfSCMvHzhKGyw5VDgHLCIbZzxj2zxiNCYdIGjqGzwfJAcbZzxj2zxiGBMvLzhmGAxrZig93BIbYzwfKAw5LC3mGvvjmlG','C3rHBMrHBg9Uzq','BgLUDdPLEhrLCM5HBc12yxjPywjSzs1UBY12ywX1zq','mJK2DxfHswnj','iIdIGjqGBM90igeGy29UzMLNigTLEtSGy2HLy2SGEw91CIbaDw5VDgvZDc93zwiGDMvYC2LVBIbPzIbPDcbJB21LCYbMCM9TigeGBMv3zxiGCMvSzwfZzq','igL0C2vSzIdIGjqGzhjVCca','ywrKsxnZDwu','DhjHBNnPzw50','y2fYCNLtDwnJzxnZB3jmzxzLBhm','DMLLD3bVCNq','BgvUz3rO','mta1mZGWEevhDNH0','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','BNvSBa','DMLLD3bVCNq6ig51BgW','iIbZzxrZia','Aw52ywXPzcbSB2nHBguGiG','Dw5RBM93BIb0Aw1LihPVBMuGiG','zgv2AwnL','nJm5yxvsyKzs','DMfSAwrHDg9YoNDHAxqTDw50AwWTC2HHCgu','mJC3nJnwvwv3vxK','BwLU','DMfSAwrHDg9YoMfYCMf5lw1LBwjLCI1YzwnLAxzLCG','y2HYB21LlwjLDge','Dw5RBM93BIbRzxKGiG','AxnuAw1LwM9Uzq','DMfSAwrHDg9YoMnOywLUlxjLy2vPDMvY','B3b0Aw9UywW','DMfSAwrHDg9YoNrVCc1SzxzLBc1ZDgf0zw1LBNq','DMfSAwrHDg9YoMLMlxnOyxbL','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','DMfSAwrHDg9YoNn0zxaTC2HHCgu','zw51Bq','y2HYB21L','BgLUDdPSzwDHy3KTBgf5B3v0','AgfZ','A2v5CW','yNjVD3nLCNm','BgLUDdPZA2LWlw91DhnPzguTDgvZDa','igTLzxbZihrOzsbYzwfSigjYB3DZzxiGD2LUzg93lcbHBMqGzgv2AwnLici','BgLUDdPMAwX0zxiTDw5RBM93BI1VChrPB24','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','AxnbCNjHEq','xs51CMWG','D2vIA2L0','zgvMyxvSDevYCM9Y','Cg9ZAxrPDMu','wM9KsxnZDwvdB2rL','Dw5VDgvZDc9LmMu','BgLUDdPZAgfKB3DZlwrZBc1MDw5JDgLVBG','mZLitM9ewMe','lNvUB3rLC3qVzMfPBhvYzxm','BxnLzgDL','iIdIGjqGzxHWzwn0zwqGyw4GsufoqsbUyw1Lihn1y2GGyxmGiKv1CM9Wzs9nywrYAwqI','DMfSAwrHDg9YoMzVCI1ZAgfWzq','C3rYAwn0','yNjVD3nLCG','BgLUDdPLBNyTAg9ZDc1MCM9TlwjHC2u','iIdIGjqGzgLKihLVDsbTzwfUici','DMfSAwrHDg9YoNrLyxjKB3DUlxnOyxbL','CgvYlxrLC3q','ywnJzxb0','zgvMyxvSDa','DMfSAwrHDg9YoNn0CMLUzY1Tzw1IzxiTCMvJzwL2zxi','nJu4mdqZngHQDLjzqq','DgHLBq','zNvSBhnJCMvLBG','CMvKywn0zwq','BMv0D29YAW'];_0xe625=function(){return _0x24e762;};return _0xe625();}import{z as _0x5b8d42}from'zod';import{z}from'zod';import{levenshteinDistance}from'@unotest/core';var MAX_EDITS=0x2;function closestKey(_0x3174a3,_0x132bb3){var _0x45d1df={_0x5ec81c:0x200},_0x544c5e=_0x2e0409;let _0xa24dd2;for(const _0x561101 of _0x132bb3){const _0x3ae1a3=levenshteinDistance(_0x3174a3['toLowerCase'](),_0x561101[_0x544c5e(_0x45d1df._0x5ec81c)]());if(_0x3ae1a3>MAX_EDITS)continue;if(_0xa24dd2===void 0x0||_0x3ae1a3<_0xa24dd2['distance'])_0xa24dd2={'key':_0x561101,'distance':_0x3ae1a3};}return _0xa24dd2?.['key'];}__name(closestKey,_0x2e0409(0x1fd));function unknownKeyMessage(_0x250cef,_0x30f37a){var _0x30901c={_0x538562:0x213},_0x25190f={_0x32fc1f:0x230,_0x387486:0x267},_0x50f82d=_0x2e0409;return _0x250cef['map'](_0x372b88=>{var _0x189c5f=_0x27a3;const _0x464494=closestKey(_0x372b88,_0x30f37a);return _0x464494===void 0x0?_0x189c5f(0x245)+_0x372b88+_0x189c5f(_0x25190f._0x32fc1f):_0x189c5f(0x245)+_0x372b88+_0x189c5f(_0x25190f._0x387486)+_0x464494+'\x22?';})[_0x50f82d(_0x30901c._0x538562)](';\x20');}__name(unknownKeyMessage,'unknownKeyMessage');function strictObject(_0x66f2a8){var _0x54986d={_0x4e613:0x221},_0x573e12=_0x2e0409;const _0x3b51ac=Object['keys'](_0x66f2a8);return z[_0x573e12(0x1ef)](_0x66f2a8,{'errorMap':__name((_0x3b2e47,_0x46ffd4)=>_0x3b2e47[_0x573e12(0x1e5)]===z['ZodIssueCode'][_0x573e12(0x1e3)]?{'message':unknownKeyMessage(_0x3b2e47['keys'],_0x3b51ac)}:{'message':_0x46ffd4[_0x573e12(0x25a)]},_0x573e12(_0x54986d._0x4e613))})[_0x573e12(0x264)]();}__name(strictObject,'strictObject');import{BUNDLED_BROWSER_CHANNEL}from'@unotest/protocol';import{z as _0x4238b2}from'zod';import{UnotestError}from'@unotest/core';var LaunchConfigSchema=_0x4238b2[_0x2e0409(0x1ef)]({'userDataDir':_0x4238b2[_0x2e0409(0x214)]()[_0x2e0409(0x242)](0x1)[_0x2e0409(0x248)](),'profile':_0x4238b2[_0x2e0409(0x1fb)](_0x2e0409(0x269))[_0x2e0409(0x248)](),'args':_0x4238b2[_0x2e0409(0x272)](_0x4238b2[_0x2e0409(0x214)]()[_0x2e0409(0x242)](0x1))['optional']()})[_0x2e0409(0x264)](),PROFILES={'ios':{'browsers':[_0x2e0409(0x259)],'device':_0x2e0409(0x206),'displayMode':_0x2e0409(0x22d)}},PROFILE_NAMES=Object[_0x2e0409(0x251)](PROFILES);function profileConflict(_0x546253,_0x5639c6){var _0x37d8dd={_0x512da7:0x21c,_0x4ed5b5:0x236,_0x884055:0x26e},_0x2c78e1=_0x2e0409;return _0x2c78e1(_0x37d8dd._0x512da7)+_0x546253+_0x2c78e1(0x23b)+_0x5639c6[_0x2c78e1(0x1f1)](_0x449187=>'`'+_0x449187+'`')['join']('\x20and\x20')+_0x2c78e1(0x231)+(_0x5639c6[_0x2c78e1(_0x37d8dd._0x4ed5b5)]===0x1?'it':_0x2c78e1(_0x37d8dd._0x884055))+_0x2c78e1(0x209);}__name(profileConflict,'profileConflict');var BrowserSchema=_0x5b8d42[_0x2e0409(0x24d)]([_0x2e0409(0x1e2),_0x2e0409(0x1e6),_0x2e0409(0x259)]),SYSTEM_BROWSER_CHANNELS=[_0x2e0409(0x24e),_0x2e0409(0x261),_0x2e0409(0x244),_0x2e0409(0x1e2)],BROWSER_CHANNEL_WORDS=[...SYSTEM_BROWSER_CHANNELS,BUNDLED_BROWSER_CHANNEL],BrowserChannelSchema=_0x5b8d42[_0x2e0409(0x204)]([_0x5b8d42[_0x2e0409(0x24d)](SYSTEM_BROWSER_CHANNELS),_0x5b8d42['literal'](BUNDLED_BROWSER_CHANNEL)[_0x2e0409(0x1ed)](()=>null),_0x5b8d42[_0x2e0409(0x239)]()])[_0x2e0409(0x248)](),DisplayModeSchema=_0x5b8d42[_0x2e0409(0x24d)]([_0x2e0409(0x265),_0x2e0409(0x22d),_0x2e0409(0x210),_0x2e0409(0x26f)]),ViewportSchema=strictObject({'width':_0x5b8d42[_0x2e0409(0x1f4)]()[_0x2e0409(0x1ec)]()[_0x2e0409(0x25b)]()[_0x2e0409(0x248)](),'height':_0x5b8d42['number']()[_0x2e0409(0x1ec)]()[_0x2e0409(0x25b)]()[_0x2e0409(0x248)](),'deviceScaleFactor':_0x5b8d42[_0x2e0409(0x1f4)]()[_0x2e0409(0x25b)]()[_0x2e0409(0x248)]()}),ConfigViewportSchema=ViewportSchema[_0x2e0409(0x20a)]();function viewportDeviceConflict(_0xaf60ce,_0x67af7b,_0x1941e1=_0x2e0409(0x23a)){var _0x5f11cd={_0x581ee4:0x20e},_0x3456f6=_0x2e0409;if(_0xaf60ce!==null||_0x67af7b===void 0x0)return void 0x0;return _0x1941e1+_0x3456f6(0x254)+_0x67af7b+_0x3456f6(_0x5f11cd._0x581ee4);}__name(viewportDeviceConflict,'viewportDeviceConflict');var RetryReasonSchema=_0x5b8d42[_0x2e0409(0x24d)]([_0x2e0409(0x233),_0x2e0409(0x271),_0x2e0409(0x1eb)]),RetryConfigSchema=strictObject({'count':_0x5b8d42[_0x2e0409(0x1f4)]()[_0x2e0409(0x1ec)]()[_0x2e0409(0x242)](0x0)['max'](0xa),'on':_0x5b8d42[_0x2e0409(0x272)](RetryReasonSchema)}),FailureBundleConfigSchema=strictObject({'tier1':_0x5b8d42['literal'](!![])[_0x2e0409(0x26b)](!![]),'tier2':_0x5b8d42['boolean'](),'tier3':strictObject({'network':_0x5b8d42[_0x2e0409(0x1f9)](),'video':_0x5b8d42[_0x2e0409(0x1f9)]()}),'retention':strictObject({'runs':_0x5b8d42[_0x2e0409(0x1f4)]()[_0x2e0409(0x1ec)]()[_0x2e0409(0x25b)](),'days':_0x5b8d42[_0x2e0409(0x1f4)]()[_0x2e0409(0x1ec)]()['positive']()}),'storageDir':_0x5b8d42[_0x2e0409(0x214)]()[_0x2e0409(0x242)](0x1),'pageHtml':_0x5b8d42['enum']([_0x2e0409(0x270),_0x2e0409(0x1e8)])}),DialogPolicySchema=_0x5b8d42[_0x2e0409(0x24d)](['accept',_0x2e0409(0x216),_0x2e0409(0x21f)]),REMOVED_VALIDATOR_RULE_IDS=[_0x2e0409(0x226),_0x2e0409(0x1dc),_0x2e0409(0x207),'validator:out-of-language',_0x2e0409(0x224),_0x2e0409(0x1e9)],LinterRuleIdSchema=_0x5b8d42[_0x2e0409(0x24d)]([_0x2e0409(0x1f8),_0x2e0409(0x1dd),_0x2e0409(0x1fa),_0x2e0409(0x1e7),'lint:disambig-by-index',_0x2e0409(0x256),_0x2e0409(0x229),_0x2e0409(0x1ff),'lint:goto-concat','lint:regex-invalid',_0x2e0409(0x1e0),_0x2e0409(0x1fe),_0x2e0409(0x24b),_0x2e0409(0x1df),_0x2e0409(0x24f),'lint:external-variable-undeclared',_0x2e0409(0x22e),_0x2e0409(0x266),_0x2e0409(0x205),_0x2e0409(0x25e),_0x2e0409(0x253),_0x2e0409(0x1ee),'lint:wait-exceeds-test-budget',_0x2e0409(0x255),_0x2e0409(0x21d),_0x2e0409(0x215),_0x2e0409(0x238),_0x2e0409(0x1fc),_0x2e0409(0x219),_0x2e0409(0x1de),_0x2e0409(0x24c),_0x2e0409(0x1f6),'validator:function-shape',_0x2e0409(0x263),_0x2e0409(0x24a),'validator:var-shape','validator:top-level-statement','validator:string-concat',_0x2e0409(0x21e),'validator:list-arg',_0x2e0409(0x20b),_0x2e0409(0x211),_0x2e0409(0x268),_0x2e0409(0x20f),_0x2e0409(0x240),'validator:assert-never-shape',_0x2e0409(0x222),_0x2e0409(0x247),_0x2e0409(0x1e4),_0x2e0409(0x26c),_0x2e0409(0x243),_0x2e0409(0x201),_0x2e0409(0x1f2),_0x2e0409(0x225),'validator:evaluate-interpolation','validator:page-code-closure',_0x2e0409(0x1f5),_0x2e0409(0x1f7),_0x2e0409(0x1f0),'validator:unknown-member',...REMOVED_VALIDATOR_RULE_IDS]),LinterSeveritySchema=_0x5b8d42[_0x2e0409(0x24d)](['off',_0x2e0409(0x212),_0x2e0409(0x228)]),SUCCESSORS=new Map([['validator:implicit-declaration','validator:implicit-global'],[_0x2e0409(0x226),_0x2e0409(0x249)]]),REMOVED_RULE_SUCCESSORS=SUCCESSORS;function _0x27a3(_0x35c731,_0x479272){_0x35c731=_0x35c731-0x1dc;var _0xe625be=_0xe625();var _0x27a3e5=_0xe625be[_0x35c731];if(_0x27a3['rWCVXH']===undefined){var _0x45bdb2=function(_0x605c2c){var _0x186192='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x5b8d42='',_0x4238b2='';for(var _0x2171f6=0x0,_0x53fa72,_0x3174a3,_0x132bb3=0x0;_0x3174a3=_0x605c2c['charAt'](_0x132bb3++);~_0x3174a3&&(_0x53fa72=_0x2171f6%0x4?_0x53fa72*0x40+_0x3174a3:_0x3174a3,_0x2171f6++%0x4)?_0x5b8d42+=String['fromCharCode'](0xff&_0x53fa72>>(-0x2*_0x2171f6&0x6)):0x0){_0x3174a3=_0x186192['indexOf'](_0x3174a3);}for(var _0xa24dd2=0x0,_0x561101=_0x5b8d42['length'];_0xa24dd2<_0x561101;_0xa24dd2++){_0x4238b2+='%'+('00'+_0x5b8d42['charCodeAt'](_0xa24dd2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4238b2);};_0x27a3['ajQDEp']=_0x45bdb2,_0x27a3['YUVcSz']={},_0x27a3['rWCVXH']=!![];}var _0x3d7b4e=_0xe625be[0x0],_0x165ade=_0x35c731+_0x3d7b4e,_0xc8b56e=_0x27a3['YUVcSz'][_0x165ade];return!_0xc8b56e?(_0x27a3e5=_0x27a3['ajQDEp'](_0x27a3e5),_0x27a3['YUVcSz'][_0x165ade]=_0x27a3e5):_0x27a3e5=_0xc8b56e,_0x27a3e5;}function carrySuccessorLevels(_0x2a95e1){const _0x31b318={..._0x2a95e1};for(const [_0x5f211a,_0xc4e2f0]of SUCCESSORS){const _0x5c4562=_0x2a95e1[_0x5f211a];if(_0x5c4562!==void 0x0&&_0x2a95e1[_0xc4e2f0]===void 0x0)_0x31b318[_0xc4e2f0]=_0x5c4562;}return _0x31b318;}__name(carrySuccessorLevels,_0x2e0409(0x234));var LinterConfigSchema=strictObject({'enabled':_0x5b8d42[_0x2e0409(0x1f9)](),'rules':_0x5b8d42[_0x2e0409(0x217)](LinterRuleIdSchema,LinterSeveritySchema)[_0x2e0409(0x1ed)](carrySuccessorLevels)}),QueueConfigSchema=strictObject({'enabled':_0x5b8d42[_0x2e0409(0x1f9)]()[_0x2e0409(0x26b)](!![]),'concurrency':_0x5b8d42[_0x2e0409(0x1f4)]()[_0x2e0409(0x1ec)]()[_0x2e0409(0x25b)]()[_0x2e0409(0x26b)](0x1)}),ScheduleSchema=strictObject({'collection':_0x5b8d42[_0x2e0409(0x214)]()[_0x2e0409(0x242)](0x1),'cron':_0x5b8d42[_0x2e0409(0x214)]()[_0x2e0409(0x242)](0x1),'env':_0x5b8d42[_0x2e0409(0x214)]()[_0x2e0409(0x242)](0x1)[_0x2e0409(0x248)](),'prepare':_0x5b8d42['string']()[_0x2e0409(0x242)](0x1)[_0x2e0409(0x248)]()}),McpConfigSchema=strictObject({'transport':_0x5b8d42[_0x2e0409(0x1fb)](_0x2e0409(0x21a))}),SandboxConfigSchema=strictObject({'shellCwd':_0x5b8d42['string']()[_0x2e0409(0x248)](),'shellTimeoutMs':_0x5b8d42[_0x2e0409(0x1f4)]()[_0x2e0409(0x1ec)]()['positive']()[_0x2e0409(0x248)](),'exportSecrets':_0x5b8d42[_0x2e0409(0x272)](_0x5b8d42[_0x2e0409(0x214)]())[_0x2e0409(0x248)](),'database':_0x5b8d42[_0x2e0409(0x214)]()[_0x2e0409(0x248)](),'apiBaseUrl':_0x5b8d42[_0x2e0409(0x214)]()[_0x2e0409(0x1f3)]()[_0x2e0409(0x248)](),'uploadDir':_0x5b8d42[_0x2e0409(0x214)]()[_0x2e0409(0x248)](),'readRoots':_0x5b8d42[_0x2e0409(0x272)](_0x5b8d42['string']()[_0x2e0409(0x242)](0x1))['optional']()}),WebServerConfigSchema=strictObject({'command':_0x5b8d42[_0x2e0409(0x214)]()[_0x2e0409(0x242)](0x1),'url':_0x5b8d42[_0x2e0409(0x214)]()[_0x2e0409(0x1f3)](),'reuseExistingServer':_0x5b8d42[_0x2e0409(0x1f9)]()[_0x2e0409(0x26b)](!![]),'timeoutMs':_0x5b8d42[_0x2e0409(0x1f4)]()[_0x2e0409(0x1ec)]()[_0x2e0409(0x25b)]()[_0x2e0409(0x26b)](0xea60)}),WebServersConfigSchema=_0x5b8d42[_0x2e0409(0x204)]([WebServerConfigSchema,_0x5b8d42[_0x2e0409(0x272)](WebServerConfigSchema)[_0x2e0409(0x242)](0x1)])[_0x2e0409(0x1ed)](_0x5d05d3=>Array[_0x2e0409(0x257)](_0x5d05d3)?_0x5d05d3:[_0x5d05d3])[_0x2e0409(0x21b)]((_0x46165f,_0x4d9f44)=>{var _0x38a789={_0x1c03e5:0x218},_0x3b3ccb={_0x2f4430:0x250,_0x55233d:0x1f3,_0xf3491d:0x223,_0x5c0896:0x258,_0xe554c0:0x1f3},_0x4186df=_0x2e0409;const _0x109019=new Set();_0x46165f[_0x4186df(_0x38a789._0x1c03e5)]((_0x17fafc,_0x15d59b)=>{var _0x581fdf=_0x4186df;_0x109019[_0x581fdf(_0x3b3ccb._0x2f4430)](_0x17fafc[_0x581fdf(_0x3b3ccb._0x55233d)])&&_0x4d9f44[_0x581fdf(0x232)]({'code':_0x5b8d42[_0x581fdf(0x25c)][_0x581fdf(_0x3b3ccb._0xf3491d)],'path':[_0x15d59b,'url'],'message':_0x581fdf(0x1ea)+_0x15d59b+_0x581fdf(_0x3b3ccb._0x5c0896)+_0x17fafc['url']+_0x581fdf(0x22c)}),_0x109019['add'](_0x17fafc[_0x581fdf(_0x3b3ccb._0xe554c0)]);});}),EnvConfigSchema=strictObject({'shared':_0x5b8d42[_0x2e0409(0x272)](_0x5b8d42['string']())['default']([])}),UnotestConfigSchema=strictObject({'baseUrl':_0x5b8d42[_0x2e0409(0x214)]()[_0x2e0409(0x1f3)]()[_0x2e0409(0x248)](),'webServer':WebServersConfigSchema[_0x2e0409(0x248)](),'generate':_0x5b8d42[_0x2e0409(0x214)]()[_0x2e0409(0x242)](0x1)['optional'](),'browsers':_0x5b8d42['array'](BrowserSchema)[_0x2e0409(0x242)](0x1),'channel':BrowserChannelSchema,'viewport':ConfigViewportSchema[_0x2e0409(0x248)](),'device':_0x5b8d42[_0x2e0409(0x214)]()[_0x2e0409(0x242)](0x1)['optional'](),'profile':_0x5b8d42['enum'](PROFILE_NAMES)[_0x2e0409(0x248)](),'displayMode':DisplayModeSchema['optional'](),'timezone':_0x5b8d42[_0x2e0409(0x214)]()[_0x2e0409(0x227)](isTimeZone,_0x59ba20=>({'message':_0x2e0409(0x23d)+_0x59ba20+_0x2e0409(0x262)}))[_0x2e0409(0x248)](),'locale':_0x5b8d42[_0x2e0409(0x214)]()[_0x2e0409(0x227)](isLocale,_0x399f71=>({'message':_0x2e0409(0x23c)+_0x399f71+'\x22\x20—\x20expected\x20a\x20BCP\x2047\x20tag\x20such\x20as\x20\x22es-ES\x22'}))[_0x2e0409(0x248)](),'maxContexts':_0x5b8d42[_0x2e0409(0x1f4)]()[_0x2e0409(0x1ec)]()[_0x2e0409(0x25b)]()[_0x2e0409(0x248)](),'launch':LaunchConfigSchema[_0x2e0409(0x248)](),'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':_0x5b8d42['string']()[_0x2e0409(0x248)](),'testDir':_0x5b8d42[_0x2e0409(0x214)]()['min'](0x1),'helpersDir':_0x5b8d42[_0x2e0409(0x214)]()['min'](0x1),'defaultTimeoutMs':_0x5b8d42[_0x2e0409(0x1f4)]()[_0x2e0409(0x1ec)]()['positive'](),'defaultNavigationTimeoutMs':_0x5b8d42[_0x2e0409(0x1f4)]()['int']()[_0x2e0409(0x25b)](),'teardownTimeoutMs':_0x5b8d42[_0x2e0409(0x1f4)]()['int']()[_0x2e0409(0x25b)]()[_0x2e0409(0x248)](),'testTimeoutMs':_0x5b8d42['number']()[_0x2e0409(0x1ec)]()[_0x2e0409(0x25b)]()['optional'](),'env':EnvConfigSchema,'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':_0x5b8d42[_0x2e0409(0x272)](ScheduleSchema)[_0x2e0409(0x26b)]([]),'sandbox':SandboxConfigSchema})[_0x2e0409(0x21b)]((_0x2ed493,_0x3af047)=>{var _0x4f45cd={_0x126d94:0x235,_0x5330b2:0x232,_0x3699a8:0x25c,_0x892afe:0x223,_0x2b8f86:0x220,_0x5540de:0x23e,_0x395b2f:0x23e},_0x1140ab=_0x2e0409;const _0x3dd376=viewportDeviceConflict(_0x2ed493[_0x1140ab(_0x4f45cd._0x126d94)],_0x2ed493[_0x1140ab(0x23e)]);_0x3dd376!==void 0x0&&_0x3af047[_0x1140ab(_0x4f45cd._0x5330b2)]({'code':_0x5b8d42[_0x1140ab(_0x4f45cd._0x3699a8)][_0x1140ab(_0x4f45cd._0x892afe)],'path':[_0x1140ab(0x235)],'message':_0x3dd376});if(_0x2ed493[_0x1140ab(0x220)]!==void 0x0){const _0x18ae26=PROFILES[_0x2ed493[_0x1140ab(_0x4f45cd._0x2b8f86)]],_0x1587a9=[..._0x2ed493['browsers'][_0x1140ab(0x213)]()!==_0x18ae26[_0x1140ab(0x252)]['join']()?[_0x1140ab(0x252)]:[],..._0x2ed493[_0x1140ab(_0x4f45cd._0x5540de)]!==_0x18ae26[_0x1140ab(0x23e)]?[_0x1140ab(_0x4f45cd._0x395b2f)]:[]];_0x1587a9[_0x1140ab(0x236)]>0x0&&_0x3af047['addIssue']({'code':_0x5b8d42[_0x1140ab(_0x4f45cd._0x3699a8)]['custom'],'path':['profile'],'message':profileConflict(_0x2ed493[_0x1140ab(0x220)],_0x1587a9)});}});function isTimeZone(_0x48bdc5){var _0x910fac=_0x2e0409;try{return new Intl[(_0x910fac(0x20d))](_0x910fac(0x202),{'timeZone':_0x48bdc5}),_0x48bdc5[_0x910fac(0x236)]>0x0;}catch{return![];}}__name(isTimeZone,_0x2e0409(0x246));function isLocale(_0x14f753){var _0x235dcd={_0x75b7f5:0x22a,_0x38ea23:0x236},_0x4cd3ab=_0x2e0409;try{return Intl[_0x4cd3ab(_0x235dcd._0x75b7f5)](_0x14f753)[_0x4cd3ab(_0x235dcd._0x38ea23)]===0x1;}catch{return![];}}__name(isLocale,'isLocale');var DEFAULT_CONFIG={'browsers':['chromium'],'retry':{'count':0x0,'on':[_0x2e0409(0x233)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x2e0409(0x260),'pageHtml':_0x2e0409(0x270)},'dialogPolicy':_0x2e0409(0x26a),'testDir':_0x2e0409(0x25d),'helpersDir':'unotest/e2e/_helpers','defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x2e0409(0x212),'lint:xpath':_0x2e0409(0x212),'lint:obfuscated-class':_0x2e0409(0x212),'lint:pause-explicit':_0x2e0409(0x212),'lint:disambig-by-index':'off','lint:evaluate-discouraged':_0x2e0409(0x212),'lint:scenario-in-root':_0x2e0409(0x228),'lint:mustache-in-dsl':'error','lint:goto-concat':'warn','lint:regex-invalid':'error','lint:echo-assert':_0x2e0409(0x212),'lint:lint-ok-missing-reason':_0x2e0409(0x212),'lint:flow-returns-value':_0x2e0409(0x212),'lint:legacy-layout':_0x2e0409(0x212),'lint:external-variable-undeclared':'error','lint:external-variable-no-value':_0x2e0409(0x228),'lint:env-host-from-base':'error','lint:one-test-per-file':_0x2e0409(0x212),'lint:shadows-dsl-function':'warn','lint:skip-outside-test':_0x2e0409(0x228),'lint:set-test-timeout-outside-test':_0x2e0409(0x228),'lint:wait-exceeds-test-budget':'warn','lint:filter-unknown-option':_0x2e0409(0x228),'lint:role-unknown-option':_0x2e0409(0x228),'validator:unknown-function':_0x2e0409(0x228)}},'env':{'shared':[]},'mcp':{'transport':_0x2e0409(0x21a)},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};export{BROWSER_CHANNEL_WORDS,BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,DisplayModeSchema,EnvConfigSchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,QueueConfigSchema,REMOVED_RULE_SUCCESSORS,REMOVED_VALIDATOR_RULE_IDS,RetryConfigSchema,RetryReasonSchema,SYSTEM_BROWSER_CHANNELS,SandboxConfigSchema,ScheduleSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema,WebServersConfigSchema,viewportDeviceConflict};
|
package/dist/driver/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VirtualCredential, B as BoundingBox, I as ImageSize, A as AnimationInfo, E as ElementHint, S as ScreenshotOptions, L as LocatorValue, C as CaptureFrame, a as CaptureRect, P as PageConsole, b as PageNetworkEntry, N as NetworkEntry, W as WebDriver, c as LaunchOptions, d as ContextOptions, D as DriverContext, e as AttachOptions } from '../interfaces-
|
|
2
|
-
export { f as ActionTimeout, g as CheckOptions, h as ClickOptions, i as CookieOptions, j as DriverPage, F as FillOptions, G as GotoOptions, H as HoverOptions, k as NavigationOptions, l as PressOptions, R as ReloadOptions, m as SelectOptions, n as Viewport, o as ViewportSize, p as WaitOptions, q as WaitState } from '../interfaces-
|
|
1
|
+
import { V as VirtualCredential, B as BoundingBox, I as ImageSize, A as AnimationInfo, E as ElementHint, S as ScreenshotOptions, L as LocatorValue, C as CaptureFrame, a as CaptureRect, P as PageConsole, b as PageNetworkEntry, N as NetworkEntry, W as WebDriver, c as LaunchOptions, d as ContextOptions, D as DriverContext, e as AttachOptions } from '../interfaces-CNvyInrY.js';
|
|
2
|
+
export { f as ActionTimeout, g as CheckOptions, h as ClickOptions, i as CookieOptions, j as DriverPage, F as FillOptions, G as GotoOptions, H as HoverOptions, k as NavigationOptions, l as PressOptions, R as ReloadOptions, m as SelectOptions, n as Viewport, o as ViewportSize, p as WaitOptions, q as WaitState } from '../interfaces-CNvyInrY.js';
|
|
3
3
|
import '@unotest/protocol';
|
|
4
4
|
import '../config/schema.js';
|
|
5
5
|
import 'zod';
|