@unotest/web 0.50.0 → 0.52.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 +189 -3
- package/README.md +25 -0
- package/bin/unotest-web.js +2 -1
- package/dist/config/schema.d.ts +45 -18
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.d.ts +11 -2
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +389 -44
- package/dist/dsl/index.js +1 -1
- package/dist/dsl/v8/scenario-worker.d.ts +2 -0
- package/dist/dsl/v8/scenario-worker.js +1 -0
- package/dist/dsl/web-dsl-language-service.d.ts +6 -1
- package/dist/dsl/web-dsl-language-service.js +1 -1
- package/dist/inspection/page-inject.d.ts +34 -7
- package/dist/inspection/page-inject.js +69 -4
- package/dist/{interfaces--zgFOUB6.d.ts → interfaces-BSGmF_Tv.d.ts} +92 -3
- package/dist/{linter-Ci17V2Sr.d.ts → linter-CYRlmOLy.d.ts} +19 -0
- package/dist/mcp/server.js +1 -1
- package/dist/runner/cli.d.ts +1 -1
- package/dist/runner/cli.js +1 -1
- package/dist/runner/init/chrome-probe.js +1 -1
- package/dist/runner/init.js +1 -1
- package/dist/runner/install-chromium.js +1 -1
- package/dist/runner/prepare-fix.js +1 -1
- package/dist/runner/scaffold-workspace.js +1 -1
- package/dist/runner/serve-fixture.js +1 -1
- package/dist/runner/web-runner-adapter.js +1 -1
- package/guides/agent-integration.md +25 -2
- package/guides/dsl-reference.md +958 -228
- package/llms.txt +223 -0
- package/package.json +17 -8
- package/types/unotest-dsl.d.ts +328 -101
- package/types/unotest-lib.d.ts +93 -27
package/dist/config/schema.d.ts
CHANGED
|
@@ -19,6 +19,10 @@ declare const SYSTEM_BROWSER_CHANNELS: readonly ["chrome", "msedge", "chrome-bet
|
|
|
19
19
|
declare const BROWSER_CHANNEL_WORDS: readonly ["chrome", "msedge", "chrome-beta", "chromium", "bundled"];
|
|
20
20
|
declare const BrowserChannelSchema: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["chrome", "msedge", "chrome-beta", "chromium"]>, z.ZodEffects<z.ZodLiteral<"bundled">, null, "bundled">, z.ZodNull]>>;
|
|
21
21
|
type BrowserChannel = z.infer<typeof BrowserChannelSchema>;
|
|
22
|
+
/** How the app was launched, as `(display-mode: …)` names it: `standalone`
|
|
23
|
+
* for one added to the home screen. */
|
|
24
|
+
declare const DisplayModeSchema: z.ZodEnum<["browser", "standalone", "minimal-ui", "fullscreen"]>;
|
|
25
|
+
type DisplayMode = z.infer<typeof DisplayModeSchema>;
|
|
22
26
|
declare const ViewportSchema: z.ZodObject<{
|
|
23
27
|
width: z.ZodOptional<z.ZodNumber>;
|
|
24
28
|
height: z.ZodOptional<z.ZodNumber>;
|
|
@@ -116,19 +120,24 @@ declare const FailureBundleConfigSchema: z.ZodObject<{
|
|
|
116
120
|
type FailureBundleConfig = z.infer<typeof FailureBundleConfigSchema>;
|
|
117
121
|
declare const DialogPolicySchema: z.ZodEnum<["accept", "dismiss", "manual"]>;
|
|
118
122
|
type DialogPolicy = z.infer<typeof DialogPolicySchema>;
|
|
119
|
-
|
|
123
|
+
/** Validator rules a scenario that runs as JavaScript made moot. They
|
|
124
|
+
* report nothing; the ids stay in the enum so a config naming one still
|
|
125
|
+
* loads, and `lint` warns that the entry does nothing. Gone in the next
|
|
126
|
+
* major. */
|
|
127
|
+
declare const REMOVED_VALIDATOR_RULE_IDS: readonly ["validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"];
|
|
128
|
+
declare const LinterRuleIdSchema: z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:top-level-statement", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:array-member-receiver", "validator:options", "validator:implicit-global", "validator:async-await", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:unknown-member", "validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"]>;
|
|
120
129
|
type LinterRuleId = z.infer<typeof LinterRuleIdSchema>;
|
|
121
130
|
declare const LinterSeveritySchema: z.ZodEnum<["off", "warn", "error"]>;
|
|
122
131
|
type LinterSeverity = z.infer<typeof LinterSeveritySchema>;
|
|
123
132
|
declare const LinterConfigSchema: z.ZodObject<{
|
|
124
133
|
enabled: z.ZodBoolean;
|
|
125
|
-
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:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:filter-unknown-option", "lint:role-unknown-option", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:
|
|
134
|
+
rules: z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:top-level-statement", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:array-member-receiver", "validator:options", "validator:implicit-global", "validator:async-await", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:unknown-member", "validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"]>, z.ZodEnum<["off", "warn", "error"]>>;
|
|
126
135
|
}, "strict", z.ZodTypeAny, {
|
|
127
136
|
enabled: boolean;
|
|
128
|
-
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:
|
|
137
|
+
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
129
138
|
}, {
|
|
130
139
|
enabled: boolean;
|
|
131
|
-
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:
|
|
140
|
+
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
132
141
|
}>;
|
|
133
142
|
type LinterConfig = z.infer<typeof LinterConfigSchema>;
|
|
134
143
|
declare const QueueConfigSchema: z.ZodObject<{
|
|
@@ -479,6 +488,16 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
479
488
|
* driver when a context opens — the list is Playwright's, and this
|
|
480
489
|
* schema is imported where Playwright is not installed. */
|
|
481
490
|
device: z.ZodOptional<z.ZodString>;
|
|
491
|
+
/** Browser, device and launch mode in one line (`"ios"`: WebKit, an
|
|
492
|
+
* iPhone preset, standalone). Written out by the loader before the
|
|
493
|
+
* defaults (`config/profile.ts`); `browsers` or `device` next to it is
|
|
494
|
+
* refused. */
|
|
495
|
+
profile: z.ZodOptional<z.ZodEnum<["ios", ..."ios"[]]>>;
|
|
496
|
+
/** What the page's scripts see as the launch mode: `matchMedia` on
|
|
497
|
+
* `(display-mode: …)` and, in WebKit, `navigator.standalone`. CSS
|
|
498
|
+
* `@media (display-mode)` is not emulated by any engine. Unset → the
|
|
499
|
+
* browser's own (`browser`). */
|
|
500
|
+
displayMode: z.ZodOptional<z.ZodEnum<["browser", "standalone", "minimal-ui", "fullscreen"]>>;
|
|
482
501
|
/** IANA time zone of every page (`"Europe/Madrid"`): `Date#toString`,
|
|
483
502
|
* `Intl` and `getTimezoneOffset` answer in it. Unset → the machine's.
|
|
484
503
|
* `UNOTEST_TIMEZONE` overrides it. */
|
|
@@ -499,12 +518,12 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
499
518
|
profile: z.ZodOptional<z.ZodLiteral<"per-test">>;
|
|
500
519
|
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
501
520
|
}, "strict", z.ZodTypeAny, {
|
|
502
|
-
userDataDir?: string | undefined;
|
|
503
521
|
profile?: "per-test" | undefined;
|
|
522
|
+
userDataDir?: string | undefined;
|
|
504
523
|
args?: string[] | undefined;
|
|
505
524
|
}, {
|
|
506
|
-
userDataDir?: string | undefined;
|
|
507
525
|
profile?: "per-test" | undefined;
|
|
526
|
+
userDataDir?: string | undefined;
|
|
508
527
|
args?: string[] | undefined;
|
|
509
528
|
}>>;
|
|
510
529
|
retry: z.ZodObject<{
|
|
@@ -620,13 +639,13 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
620
639
|
}>;
|
|
621
640
|
linter: z.ZodObject<{
|
|
622
641
|
enabled: z.ZodBoolean;
|
|
623
|
-
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:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:filter-unknown-option", "lint:role-unknown-option", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:
|
|
642
|
+
rules: z.ZodRecord<z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint:filter-unknown-option", "lint:role-unknown-option", "lint:typed-step-available", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:top-level-statement", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:array-member-receiver", "validator:options", "validator:implicit-global", "validator:async-await", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:unknown-member", "validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"]>, z.ZodEnum<["off", "warn", "error"]>>;
|
|
624
643
|
}, "strict", z.ZodTypeAny, {
|
|
625
644
|
enabled: boolean;
|
|
626
|
-
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:
|
|
645
|
+
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
627
646
|
}, {
|
|
628
647
|
enabled: boolean;
|
|
629
|
-
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:
|
|
648
|
+
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
630
649
|
}>;
|
|
631
650
|
mcp: z.ZodObject<{
|
|
632
651
|
transport: z.ZodLiteral<"stdio">;
|
|
@@ -755,7 +774,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
755
774
|
defaultNavigationTimeoutMs: number;
|
|
756
775
|
linter: {
|
|
757
776
|
enabled: boolean;
|
|
758
|
-
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:
|
|
777
|
+
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
759
778
|
};
|
|
760
779
|
mcp: {
|
|
761
780
|
transport: "stdio";
|
|
@@ -794,12 +813,14 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
794
813
|
deviceScaleFactor?: number | undefined;
|
|
795
814
|
} | null | undefined;
|
|
796
815
|
device?: string | undefined;
|
|
816
|
+
profile?: "ios" | undefined;
|
|
817
|
+
displayMode?: "browser" | "standalone" | "minimal-ui" | "fullscreen" | undefined;
|
|
797
818
|
timezone?: string | undefined;
|
|
798
819
|
locale?: string | undefined;
|
|
799
820
|
maxContexts?: number | undefined;
|
|
800
821
|
launch?: {
|
|
801
|
-
userDataDir?: string | undefined;
|
|
802
822
|
profile?: "per-test" | undefined;
|
|
823
|
+
userDataDir?: string | undefined;
|
|
803
824
|
args?: string[] | undefined;
|
|
804
825
|
} | undefined;
|
|
805
826
|
storageState?: string | undefined;
|
|
@@ -835,7 +856,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
835
856
|
defaultNavigationTimeoutMs: number;
|
|
836
857
|
linter: {
|
|
837
858
|
enabled: boolean;
|
|
838
|
-
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:
|
|
859
|
+
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
839
860
|
};
|
|
840
861
|
mcp: {
|
|
841
862
|
transport: "stdio";
|
|
@@ -873,12 +894,14 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
873
894
|
deviceScaleFactor?: number | undefined;
|
|
874
895
|
} | null | undefined;
|
|
875
896
|
device?: string | undefined;
|
|
897
|
+
profile?: "ios" | undefined;
|
|
898
|
+
displayMode?: "browser" | "standalone" | "minimal-ui" | "fullscreen" | undefined;
|
|
876
899
|
timezone?: string | undefined;
|
|
877
900
|
locale?: string | undefined;
|
|
878
901
|
maxContexts?: number | undefined;
|
|
879
902
|
launch?: {
|
|
880
|
-
userDataDir?: string | undefined;
|
|
881
903
|
profile?: "per-test" | undefined;
|
|
904
|
+
userDataDir?: string | undefined;
|
|
882
905
|
args?: string[] | undefined;
|
|
883
906
|
} | undefined;
|
|
884
907
|
storageState?: string | undefined;
|
|
@@ -920,7 +943,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
920
943
|
defaultNavigationTimeoutMs: number;
|
|
921
944
|
linter: {
|
|
922
945
|
enabled: boolean;
|
|
923
|
-
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:
|
|
946
|
+
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
924
947
|
};
|
|
925
948
|
mcp: {
|
|
926
949
|
transport: "stdio";
|
|
@@ -959,12 +982,14 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
959
982
|
deviceScaleFactor?: number | undefined;
|
|
960
983
|
} | null | undefined;
|
|
961
984
|
device?: string | undefined;
|
|
985
|
+
profile?: "ios" | undefined;
|
|
986
|
+
displayMode?: "browser" | "standalone" | "minimal-ui" | "fullscreen" | undefined;
|
|
962
987
|
timezone?: string | undefined;
|
|
963
988
|
locale?: string | undefined;
|
|
964
989
|
maxContexts?: number | undefined;
|
|
965
990
|
launch?: {
|
|
966
|
-
userDataDir?: string | undefined;
|
|
967
991
|
profile?: "per-test" | undefined;
|
|
992
|
+
userDataDir?: string | undefined;
|
|
968
993
|
args?: string[] | undefined;
|
|
969
994
|
} | undefined;
|
|
970
995
|
storageState?: string | undefined;
|
|
@@ -1000,7 +1025,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1000
1025
|
defaultNavigationTimeoutMs: number;
|
|
1001
1026
|
linter: {
|
|
1002
1027
|
enabled: boolean;
|
|
1003
|
-
rules: Partial<Record<"lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:
|
|
1028
|
+
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
1004
1029
|
};
|
|
1005
1030
|
mcp: {
|
|
1006
1031
|
transport: "stdio";
|
|
@@ -1038,12 +1063,14 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1038
1063
|
deviceScaleFactor?: number | undefined;
|
|
1039
1064
|
} | null | undefined;
|
|
1040
1065
|
device?: string | undefined;
|
|
1066
|
+
profile?: "ios" | undefined;
|
|
1067
|
+
displayMode?: "browser" | "standalone" | "minimal-ui" | "fullscreen" | undefined;
|
|
1041
1068
|
timezone?: string | undefined;
|
|
1042
1069
|
locale?: string | undefined;
|
|
1043
1070
|
maxContexts?: number | undefined;
|
|
1044
1071
|
launch?: {
|
|
1045
|
-
userDataDir?: string | undefined;
|
|
1046
1072
|
profile?: "per-test" | undefined;
|
|
1073
|
+
userDataDir?: string | undefined;
|
|
1047
1074
|
args?: string[] | undefined;
|
|
1048
1075
|
} | undefined;
|
|
1049
1076
|
storageState?: string | undefined;
|
|
@@ -1060,4 +1087,4 @@ type UnotestConfig = z.infer<typeof UnotestConfigSchema>;
|
|
|
1060
1087
|
type UnotestConfigInput = z.input<typeof UnotestConfigSchema>;
|
|
1061
1088
|
declare const DEFAULT_CONFIG: UnotestConfig;
|
|
1062
1089
|
|
|
1063
|
-
export { BROWSER_CHANNEL_WORDS, type Browser, type BrowserChannel, BrowserChannelSchema, BrowserSchema, DEFAULT_CONFIG, type DialogPolicy, DialogPolicySchema, type EnvConfig, EnvConfigSchema, type FailureBundleConfig, FailureBundleConfigSchema, type LinterConfig, LinterConfigSchema, type LinterRuleId, LinterRuleIdSchema, type LinterSeverity, LinterSeveritySchema, type McpConfig, McpConfigSchema, type QueueConfig, QueueConfigSchema, type RetryConfig, RetryConfigSchema, type RetryReason, RetryReasonSchema, SYSTEM_BROWSER_CHANNELS, type SandboxConfig, SandboxConfigSchema, type ScheduleConfig, ScheduleSchema, type UnotestConfig, type UnotestConfigInput, UnotestConfigSchema, type Viewport, ViewportSchema, type WebServerConfig, WebServerConfigSchema, WebServersConfigSchema, viewportDeviceConflict };
|
|
1090
|
+
export { BROWSER_CHANNEL_WORDS, type Browser, type BrowserChannel, BrowserChannelSchema, BrowserSchema, DEFAULT_CONFIG, type DialogPolicy, DialogPolicySchema, type DisplayMode, DisplayModeSchema, type EnvConfig, EnvConfigSchema, type FailureBundleConfig, FailureBundleConfigSchema, type LinterConfig, LinterConfigSchema, type LinterRuleId, LinterRuleIdSchema, type LinterSeverity, LinterSeveritySchema, type McpConfig, McpConfigSchema, type QueueConfig, QueueConfigSchema, REMOVED_VALIDATOR_RULE_IDS, type RetryConfig, RetryConfigSchema, type RetryReason, RetryReasonSchema, SYSTEM_BROWSER_CHANNELS, type SandboxConfig, SandboxConfigSchema, type ScheduleConfig, ScheduleSchema, type UnotestConfig, type UnotestConfigInput, UnotestConfigSchema, type Viewport, ViewportSchema, type WebServerConfig, WebServerConfigSchema, WebServersConfigSchema, viewportDeviceConflict };
|
package/dist/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x5981dd=_0x3b84;(function(_0x57a24b,_0xcfab27){var _0x2f2c66={_0x274654:0x193,_0x70478c:0x177},_0x134144=_0x3b84,_0x5d1c33=_0x57a24b();while(!![]){try{var _0x359fb3=-parseInt(_0x134144(0x1d7))/0x1*(parseInt(_0x134144(0x191))/0x2)+-parseInt(_0x134144(0x168))/0x3*(parseInt(_0x134144(0x1d1))/0x4)+parseInt(_0x134144(0x1d0))/0x5*(parseInt(_0x134144(0x18b))/0x6)+parseInt(_0x134144(0x1be))/0x7+parseInt(_0x134144(0x17d))/0x8*(-parseInt(_0x134144(_0x2f2c66._0x274654))/0x9)+parseInt(_0x134144(0x1a0))/0xa*(-parseInt(_0x134144(0x16d))/0xb)+parseInt(_0x134144(_0x2f2c66._0x70478c))/0xc;if(_0x359fb3===_0xcfab27)break;else _0x5d1c33['push'](_0x5d1c33['shift']());}catch(_0x35f16d){_0x5d1c33['push'](_0x5d1c33['shift']());}}}(_0x5367,0x9787c));var __defProp=Object['defineProperty'],__name=(_0x2f80f7,_0x19a3ef)=>__defProp(_0x2f80f7,'name',{'value':_0x19a3ef,'configurable':!![]});function _0x3b84(_0x2faf0c,_0x43a848){_0x2faf0c=_0x2faf0c-0x159;var _0x536753=_0x5367();var _0x3b843f=_0x536753[_0x2faf0c];if(_0x3b84['igEvFj']===undefined){var _0x82461a=function(_0x21a0f7){var _0x28c504='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x5ac861='',_0x589db4='';for(var _0x2f80f7=0x0,_0x19a3ef,_0x46ff4a,_0x56b647=0x0;_0x46ff4a=_0x21a0f7['charAt'](_0x56b647++);~_0x46ff4a&&(_0x19a3ef=_0x2f80f7%0x4?_0x19a3ef*0x40+_0x46ff4a:_0x46ff4a,_0x2f80f7++%0x4)?_0x5ac861+=String['fromCharCode'](0xff&_0x19a3ef>>(-0x2*_0x2f80f7&0x6)):0x0){_0x46ff4a=_0x28c504['indexOf'](_0x46ff4a);}for(var _0x3a7c65=0x0,_0x46a958=_0x5ac861['length'];_0x3a7c65<_0x46a958;_0x3a7c65++){_0x589db4+='%'+('00'+_0x5ac861['charCodeAt'](_0x3a7c65)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x589db4);};_0x3b84['HySJQY']=_0x82461a,_0x3b84['dnCRzU']={},_0x3b84['igEvFj']=!![];}var _0x16c4d6=_0x536753[0x0],_0x709c2b=_0x2faf0c+_0x16c4d6,_0x300402=_0x3b84['dnCRzU'][_0x709c2b];return!_0x300402?(_0x3b843f=_0x3b84['HySJQY'](_0x3b843f),_0x3b84['dnCRzU'][_0x709c2b]=_0x3b843f):_0x3b843f=_0x300402,_0x3b843f;}function _0x5367(){var _0x5e33f4=['Dw5VDgvZDc9LmMuVx2HLBhbLCNm','zgLZDgfUy2u','mtuXnZm0neTSsurhwG','Cg9ZAxrPDMu','mJe5mZnQEhvkChq','BgLUDdPTDxn0ywnOzs1PBI1KC2W','Aw50','zgvMyxvSDevYCM9Y','DMfSAwrHDg9YoMnVBNn0lwfZC2LNBG','C3rKAw8','zNvSBa','lNvUB3rLC3qVzMfPBhvYzxm','Dw5PB24','A2v5','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','y29Kzq','DMfSAwrHDg9YoMzVCI1ZAgfWzq','ndq0mdiWEuXOB0Xf','yxjYyxK','zgvMyxvSDa','Dg9mB3DLCKnHC2u','rgf0zvrPBwvgB3jTyxq','BMv0D29YAW','igLZigfSCMvHzhKGyw5VDgHLCIbZzxj2zxiNCYdIGjqGzwfJAcbZzxj2zxiGBMvLzhmGAxrZig93BIbYzwfKAw5LC3mGvvjmlG','BgLUDdPHCgKTy2fSBc1MAwXLlwjVzhK','B2jQzwn0','C3vWzxjszwzPBMu','DMfSAwrHDg9YoNbHz2uTy29Kzs1JBg9ZDxjL','B2zM','Dw5VDgvZDc9LmMu','C3rYAw5N','zgv2AwnL','DMfSAwrHDg9YoNvUA25VD24TBwvTyMvY','y3vZDg9T','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','A2v5CW','DMfSAwrHDg9YoMfYAxr5','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','BNvSBa','BgLUDdPZAgfKB3DZlwrZBc1MDw5JDgLVBG','DMfSAwrHDg9YoNn0CMLUzY1Tzw1IzxiTCMvJzwL2zxi','CMvKywn0zwq','y3jHC2G','AM9PBG','BgLUDdPVBMuTDgvZDc1WzxiTzMLSzq','DMfSAwrHDg9YoNrLyxjKB3DUlxnOyxbL','D2fYBG','mteYodi5nwLXvKzzzq','igTLzxbZihrOzsbYzwfSigjYB3DZzxiGD2LUzg93lcbHBMqGzgv2AwnLici','BgLUDdPWyxvZzs1LEhbSAwnPDa','DMfSAwrHDg9YoMXPyNjHCNKTBwvTyMvY','yM9VBgvHBG','DMfSAwrHDg9YoMnOywLUlxjLy2vPDMvY','wM9KsxnZDwvdB2rL','zw4Tvvm','DhjHBNnPzw50','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','Aw52ywXPzcbSB2nHBguGiG','BgLUDdPZzxqTDgvZDc10Aw1LB3v0lw91DhnPzguTDgvZDa','ywnJzxb0','Dw5RBM93BKTLEu1LC3nHz2u','AxnmB2nHBgu','Dw5RBM93BIb0Aw1LihPVBMuGiG','DMfSAwrHDg9YoM91Dc1VzI1Syw5NDwfNzq','BwLU','nujqDhfeBa','mtC5ndy4r3rmzNn5','DMfSAwrHDg9YoMLTCgXPy2L0lwrLy2XHCMf0Aw9U','ywrKsxnZDwu','DxjS','BgLUDdPLy2HVlwfZC2vYDa','y2HYB21PDw0','mxbRwhviva','BgLUDdPYzwDLEc1PBNzHBgLK','D2vIu2vYDMvYwW','BgvUz3rO','Dw5YzwnVz25PEMvKx2TLExm','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','DMfSAwrHDg9YoMv2ywX1yxrLlwLUDgvYCg9SyxrPB24','BgLUDdP4Cgf0Aa','B3b0Aw9UywW','C3rYAwn0','DMfSAwrHDg9YoMfYzY1RAw5K','DMfSAwrHDg9YoMXVy2f0B3iTAw5KzxGTywnJzxnZ','DMfSAwrHDg9YoMXPC3qTyxjN','BNvSBgfIBgu','iIbZzxrZigL0CYbVD24GC2L6zsbHBMqGC2nHBguG4OcuigrYB3aGB25Lig9MihrOzw0U','y2XVC2vZDeTLEq','ntfgvhDXqxi','iIdIGjqGzgLKihLVDsbTzwfUici','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0CMLUzY1Tzw1Izxi','BgLUDdPLEhrLCM5HBc12yxjPywjSzs11BMrLy2XHCMvK','ywrK','mteWD2v0vwLX','zxjYB3jnyxa','BgL0zxjHBa','DMLLD3bVCNq','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','C3rYAwn0t2jQzwn0','DhjHBNnMB3jT','BgLUDdPYB2XLlxvUA25VD24TB3b0Aw9U','z2v0q2fUB25Py2fStg9JywXLCW','DMfSAwrHDg9YoNn0zxaTC2HHCgu','mZa4mtqXnZzzCufjz3u','DMfSAwrHDg9YoNzHCI1ZAgfWzq','BNvTyMvY','AxnuAw1LwM9Uzq','BgLUDdPMAwX0zxiTDw5RBM93BI1VChrPB24','DMfSAwrHDg9YoNrVCc1SzxzLBc1JB25ZDa','mJy4ogTJBhjmwG','zw51Bq','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','CMvMAw5L','zMLYzwzVEa','DMfSAwrHDg9YoNDHAxqTDw50AwWTC2HHCgu','zM9YrwfJAa','zxjYB3i','DMfSAwrHDg9YoM9WDgLVBNm','CMvJB3jK','Dw5RBM93BIbRzxKGiG','BgLUDdPZy2vUyxjPBY1PBI1YB290','BgLUDdPLBNyTAg9ZDc1MCM9TlwjHC2u','nda1ntm4oej1r212ta','BgLUDdPNB3rVlwnVBMnHDa','Bwf4','AxnbCNjHEq'];_0x5367=function(){return _0x5e33f4;};return _0x5367();}import{z as _0x5ac861}from'zod';import{z}from'zod';import{levenshteinDistance}from'@unotest/core';var MAX_EDITS=0x2;function closestKey(_0x46ff4a,_0x56b647){var _0x55a92b={_0x18db12:0x19c},_0x541f11=_0x3b84;let _0x3a7c65;for(const _0x46a958 of _0x56b647){const _0x2a245b=levenshteinDistance(_0x46ff4a[_0x541f11(0x1a3)](),_0x46a958[_0x541f11(0x1a3)]());if(_0x2a245b>MAX_EDITS)continue;if(_0x3a7c65===void 0x0||_0x2a245b<_0x3a7c65[_0x541f11(0x190)])_0x3a7c65={'key':_0x46a958,'distance':_0x2a245b};}return _0x3a7c65?.[_0x541f11(_0x55a92b._0x18db12)];}__name(closestKey,_0x5981dd(0x167));function unknownKeyMessage(_0x29f748,_0x4d3f3b){var _0x4beed1={_0x1c1555:0x1ba},_0x3fdc95={_0xf45c8f:0x188,_0x1b5717:0x188},_0x6b34a8=_0x5981dd;return _0x29f748['map'](_0x198c29=>{var _0x47b274=_0x3b84;const _0x73cb92=closestKey(_0x198c29,_0x4d3f3b);return _0x73cb92===void 0x0?_0x47b274(_0x3fdc95._0xf45c8f)+_0x198c29+'\x22\x20—\x20not\x20a\x20config\x20key;\x20check\x20your\x20@unotest/web\x20version\x20if\x20it\x20comes\x20from\x20a\x20newer\x20release':_0x47b274(_0x3fdc95._0x1b5717)+_0x198c29+_0x47b274(0x169)+_0x73cb92+'\x22?';})[_0x6b34a8(_0x4beed1._0x1c1555)](';\x20');}__name(unknownKeyMessage,_0x5981dd(0x1cb));function strictObject(_0x52b689){var _0x186d88={_0x5e16f7:0x16e},_0x21fe52=_0x5981dd;const _0x3934aa=Object[_0x21fe52(0x1b2)](_0x52b689);return z['object'](_0x52b689,{'errorMap':__name((_0x420c59,_0x15ebd1)=>_0x420c59[_0x21fe52(0x19e)]===z[_0x21fe52(0x1c4)][_0x21fe52(0x15b)]?{'message':unknownKeyMessage(_0x420c59[_0x21fe52(0x1b2)],_0x3934aa)}:{'message':_0x15ebd1[_0x21fe52(0x196)]},_0x21fe52(_0x186d88._0x5e16f7))})[_0x21fe52(0x161)]();}__name(strictObject,_0x5981dd(0x172));import{BUNDLED_BROWSER_CHANNEL}from'@unotest/protocol';import{z as _0x589db4}from'zod';import{UnotestError}from'@unotest/core';var LaunchConfigSchema=_0x589db4[_0x5981dd(0x1a8)]({'userDataDir':_0x589db4[_0x5981dd(0x1ad)]()['min'](0x1)[_0x5981dd(0x160)](),'profile':_0x589db4[_0x5981dd(0x16f)]('per-test')[_0x5981dd(0x160)](),'args':_0x589db4[_0x5981dd(0x1a1)](_0x589db4[_0x5981dd(0x1ad)]()[_0x5981dd(0x1cf)](0x1))[_0x5981dd(0x160)]()})[_0x5981dd(0x161)](),BrowserSchema=_0x5ac861[_0x5981dd(0x17e)]([_0x5981dd(0x1d6),_0x5981dd(0x182),'webkit']),SYSTEM_BROWSER_CHANNELS=['chrome','msedge','chrome-beta',_0x5981dd(0x1d6)],BROWSER_CHANNEL_WORDS=[...SYSTEM_BROWSER_CHANNELS,BUNDLED_BROWSER_CHANNEL],BrowserChannelSchema=_0x5ac861[_0x5981dd(0x19b)]([_0x5ac861[_0x5981dd(0x17e)](SYSTEM_BROWSER_CHANNELS),_0x5ac861[_0x5981dd(0x16f)](BUNDLED_BROWSER_CHANNEL)[_0x5981dd(0x173)](()=>null),_0x5ac861[_0x5981dd(0x1b5)]()])[_0x5981dd(0x160)](),ViewportSchema=strictObject({'width':_0x5ac861[_0x5981dd(0x179)]()[_0x5981dd(0x195)]()['positive']()['optional'](),'height':_0x5ac861['number']()['int']()[_0x5981dd(0x192)]()[_0x5981dd(0x160)](),'deviceScaleFactor':_0x5ac861[_0x5981dd(0x179)]()['positive']()['optional']()}),ConfigViewportSchema=ViewportSchema[_0x5981dd(0x165)]();function viewportDeviceConflict(_0x4c865a,_0x157b0a,_0xa8ba87='viewport:\x20null'){var _0x440096={_0x3afe30:0x166},_0x2c7ec8=_0x5981dd;if(_0x4c865a!==null||_0x157b0a===void 0x0)return void 0x0;return _0xa8ba87+_0x2c7ec8(0x1bf)+_0x157b0a+_0x2c7ec8(_0x440096._0x3afe30);}__name(viewportDeviceConflict,'viewportDeviceConflict');var RetryReasonSchema=_0x5ac861['enum']([_0x5981dd(0x1c6),_0x5981dd(0x1a5),_0x5981dd(0x1b9)]),RetryConfigSchema=strictObject({'count':_0x5ac861[_0x5981dd(0x179)]()[_0x5981dd(0x195)]()[_0x5981dd(0x1cf)](0x0)[_0x5981dd(0x18d)](0xa),'on':_0x5ac861[_0x5981dd(0x1a1)](RetryReasonSchema)}),FailureBundleConfigSchema=strictObject({'tier1':_0x5ac861[_0x5981dd(0x16f)](!![])[_0x5981dd(0x1a2)](!![]),'tier2':_0x5ac861[_0x5981dd(0x1c2)](),'tier3':strictObject({'network':_0x5ac861[_0x5981dd(0x1c2)](),'video':_0x5ac861[_0x5981dd(0x1c2)]()}),'retention':strictObject({'runs':_0x5ac861['number']()[_0x5981dd(0x195)]()[_0x5981dd(0x192)](),'days':_0x5ac861[_0x5981dd(0x179)]()[_0x5981dd(0x195)]()[_0x5981dd(0x192)]()}),'storageDir':_0x5ac861['string']()[_0x5981dd(0x1cf)](0x1),'pageHtml':_0x5ac861[_0x5981dd(0x17e)]([_0x5981dd(0x1b8),_0x5981dd(0x199)])}),DialogPolicySchema=_0x5ac861[_0x5981dd(0x17e)]([_0x5981dd(0x1ca),'dismiss','manual']),LinterRuleIdSchema=_0x5ac861[_0x5981dd(0x17e)](['lint:deep-css',_0x5981dd(0x15f),'lint:obfuscated-class',_0x5981dd(0x1c0),_0x5981dd(0x171),_0x5981dd(0x15c),_0x5981dd(0x189),_0x5981dd(0x194),_0x5981dd(0x18c),_0x5981dd(0x1d8),_0x5981dd(0x1d5),_0x5981dd(0x1a7),_0x5981dd(0x17f),'lint:flow-returns-value','lint:legacy-layout',_0x5981dd(0x16b),_0x5981dd(0x18a),_0x5981dd(0x1bb),_0x5981dd(0x1b6),'lint:skip-outside-test',_0x5981dd(0x1c9),_0x5981dd(0x17b),_0x5981dd(0x174),_0x5981dd(0x15d),_0x5981dd(0x1b3),_0x5981dd(0x162),_0x5981dd(0x1b4),_0x5981dd(0x176),'validator:meta-shape','validator:function-shape',_0x5981dd(0x19f),'validator:if-shape',_0x5981dd(0x178),_0x5981dd(0x180),_0x5981dd(0x19d),_0x5981dd(0x1b1),'validator:semantic-loss',_0x5981dd(0x164),_0x5981dd(0x1c7),_0x5981dd(0x197),_0x5981dd(0x1bc),'validator:teardown-name-conflict',_0x5981dd(0x183),_0x5981dd(0x163),_0x5981dd(0x1c3),_0x5981dd(0x17c),_0x5981dd(0x1b7),_0x5981dd(0x16a),'validator:array-member-receiver',_0x5981dd(0x186),_0x5981dd(0x1ce),_0x5981dd(0x1d2),_0x5981dd(0x15e),_0x5981dd(0x1aa),'validator:template-escape-changed',_0x5981dd(0x1c1),_0x5981dd(0x1af)]),LinterSeveritySchema=_0x5ac861[_0x5981dd(0x17e)]([_0x5981dd(0x1ab),_0x5981dd(0x1bd),_0x5981dd(0x185)]),LinterConfigSchema=strictObject({'enabled':_0x5ac861[_0x5981dd(0x1c2)](),'rules':_0x5ac861[_0x5981dd(0x187)](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=strictObject({'enabled':_0x5ac861[_0x5981dd(0x1c2)]()['default'](!![]),'concurrency':_0x5ac861[_0x5981dd(0x179)]()[_0x5981dd(0x195)]()[_0x5981dd(0x192)]()['default'](0x1)}),ScheduleSchema=strictObject({'collection':_0x5ac861['string']()['min'](0x1),'cron':_0x5ac861[_0x5981dd(0x1ad)]()[_0x5981dd(0x1cf)](0x1),'env':_0x5ac861[_0x5981dd(0x1ad)]()[_0x5981dd(0x1cf)](0x1)[_0x5981dd(0x160)](),'prepare':_0x5ac861[_0x5981dd(0x1ad)]()[_0x5981dd(0x1cf)](0x1)['optional']()}),McpConfigSchema=strictObject({'transport':_0x5ac861['literal']('stdio')}),SandboxConfigSchema=strictObject({'shellCwd':_0x5ac861[_0x5981dd(0x1ad)]()[_0x5981dd(0x160)](),'shellTimeoutMs':_0x5ac861[_0x5981dd(0x179)]()[_0x5981dd(0x195)]()[_0x5981dd(0x192)]()[_0x5981dd(0x160)](),'exportSecrets':_0x5ac861[_0x5981dd(0x1a1)](_0x5ac861[_0x5981dd(0x1ad)]())[_0x5981dd(0x160)](),'database':_0x5ac861[_0x5981dd(0x1ad)]()[_0x5981dd(0x160)](),'apiBaseUrl':_0x5ac861['string']()[_0x5981dd(0x1d4)]()[_0x5981dd(0x160)](),'uploadDir':_0x5ac861[_0x5981dd(0x1ad)]()[_0x5981dd(0x160)](),'readRoots':_0x5ac861[_0x5981dd(0x1a1)](_0x5ac861[_0x5981dd(0x1ad)]()[_0x5981dd(0x1cf)](0x1))[_0x5981dd(0x160)]()}),WebServerConfigSchema=strictObject({'command':_0x5ac861['string']()['min'](0x1),'url':_0x5ac861[_0x5981dd(0x1ad)]()['url'](),'reuseExistingServer':_0x5ac861[_0x5981dd(0x1c2)]()[_0x5981dd(0x1a2)](!![]),'timeoutMs':_0x5ac861[_0x5981dd(0x179)]()['int']()[_0x5981dd(0x192)]()[_0x5981dd(0x1a2)](0xea60)}),WebServersConfigSchema=_0x5ac861[_0x5981dd(0x19b)]([WebServerConfigSchema,_0x5ac861[_0x5981dd(0x1a1)](WebServerConfigSchema)[_0x5981dd(0x1cf)](0x1)])[_0x5981dd(0x173)](_0x4188e5=>Array[_0x5981dd(0x18e)](_0x4188e5)?_0x4188e5:[_0x4188e5])[_0x5981dd(0x1a9)]((_0x44e2f7,_0x334bdb)=>{var _0x3a2fc3={_0x4fda35:0x184},_0x201453={_0x47cc8d:0x1d4,_0x4e67dc:0x16c},_0x56017d=_0x5981dd;const _0x141984=new Set();_0x44e2f7[_0x56017d(_0x3a2fc3._0x4fda35)]((_0xf1720e,_0x25b4ad)=>{var _0x6875b0=_0x56017d;_0x141984['has'](_0xf1720e['url'])&&_0x334bdb[_0x6875b0(0x1d3)]({'code':_0x5ac861[_0x6875b0(0x1c4)][_0x6875b0(0x1b0)],'path':[_0x25b4ad,_0x6875b0(_0x201453._0x47cc8d)],'message':_0x6875b0(0x159)+_0x25b4ad+'].url\x20'+_0xf1720e[_0x6875b0(_0x201453._0x47cc8d)]+_0x6875b0(0x1a6)}),_0x141984[_0x6875b0(_0x201453._0x4e67dc)](_0xf1720e[_0x6875b0(_0x201453._0x47cc8d)]);});}),EnvConfigSchema=strictObject({'shared':_0x5ac861[_0x5981dd(0x1a1)](_0x5ac861[_0x5981dd(0x1ad)]())[_0x5981dd(0x1a2)]([])}),UnotestConfigSchema=strictObject({'baseUrl':_0x5ac861[_0x5981dd(0x1ad)]()['url']()[_0x5981dd(0x160)](),'webServer':WebServersConfigSchema[_0x5981dd(0x160)](),'generate':_0x5ac861[_0x5981dd(0x1ad)]()['min'](0x1)[_0x5981dd(0x160)](),'browsers':_0x5ac861[_0x5981dd(0x1a1)](BrowserSchema)['min'](0x1),'channel':BrowserChannelSchema,'viewport':ConfigViewportSchema[_0x5981dd(0x160)](),'device':_0x5ac861[_0x5981dd(0x1ad)]()[_0x5981dd(0x1cf)](0x1)[_0x5981dd(0x160)](),'timezone':_0x5ac861[_0x5981dd(0x1ad)]()['refine'](isTimeZone,_0x322269=>({'message':_0x5981dd(0x1cd)+_0x322269+'\x22\x20—\x20expected\x20an\x20IANA\x20name\x20such\x20as\x20\x22Europe/Madrid\x22'}))['optional'](),'locale':_0x5ac861[_0x5981dd(0x1ad)]()[_0x5981dd(0x181)](isLocale,_0x5cd37f=>({'message':_0x5981dd(0x1c8)+_0x5cd37f+'\x22\x20—\x20expected\x20a\x20BCP\x2047\x20tag\x20such\x20as\x20\x22es-ES\x22'}))[_0x5981dd(0x160)](),'maxContexts':_0x5ac861[_0x5981dd(0x179)]()[_0x5981dd(0x195)]()[_0x5981dd(0x192)]()['optional'](),'launch':LaunchConfigSchema[_0x5981dd(0x160)](),'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':_0x5ac861['string']()[_0x5981dd(0x160)](),'testDir':_0x5ac861[_0x5981dd(0x1ad)]()['min'](0x1),'helpersDir':_0x5ac861['string']()[_0x5981dd(0x1cf)](0x1),'defaultTimeoutMs':_0x5ac861[_0x5981dd(0x179)]()['int']()[_0x5981dd(0x192)](),'defaultNavigationTimeoutMs':_0x5ac861[_0x5981dd(0x179)]()[_0x5981dd(0x195)]()[_0x5981dd(0x192)](),'teardownTimeoutMs':_0x5ac861[_0x5981dd(0x179)]()[_0x5981dd(0x195)]()['positive']()[_0x5981dd(0x160)](),'testTimeoutMs':_0x5ac861['number']()[_0x5981dd(0x195)]()[_0x5981dd(0x192)]()[_0x5981dd(0x160)](),'env':EnvConfigSchema,'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':_0x5ac861['array'](ScheduleSchema)[_0x5981dd(0x1a2)]([]),'sandbox':SandboxConfigSchema})['superRefine']((_0x261a92,_0x24c023)=>{var _0x2fc599={_0xeddd2c:0x170,_0x39abba:0x1ae,_0x261251:0x1c4},_0x229d34=_0x5981dd;const _0x56c73b=viewportDeviceConflict(_0x261a92[_0x229d34(_0x2fc599._0xeddd2c)],_0x261a92[_0x229d34(_0x2fc599._0x39abba)]);_0x56c73b!==void 0x0&&_0x24c023[_0x229d34(0x1d3)]({'code':_0x5ac861[_0x229d34(_0x2fc599._0x261251)]['custom'],'path':['viewport'],'message':_0x56c73b});});function isTimeZone(_0x4f5fbd){var _0x2f350f={_0x3246e3:0x1a4,_0x133584:0x15a},_0x3a7959=_0x5981dd;try{return new Intl[(_0x3a7959(_0x2f350f._0x3246e3))](_0x3a7959(0x1c5),{'timeZone':_0x4f5fbd}),_0x4f5fbd[_0x3a7959(_0x2f350f._0x133584)]>0x0;}catch{return![];}}__name(isTimeZone,_0x5981dd(0x17a));function isLocale(_0x1e4625){var _0xad67c3=_0x5981dd;try{return Intl[_0xad67c3(0x175)](_0x1e4625)[_0xad67c3(0x15a)]===0x1;}catch{return![];}}__name(isLocale,_0x5981dd(0x1cc));var DEFAULT_CONFIG={'browsers':['chromium'],'retry':{'count':0x0,'on':[_0x5981dd(0x1c6)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x5981dd(0x19a),'pageHtml':_0x5981dd(0x1b8)},'dialogPolicy':_0x5981dd(0x1ca),'testDir':_0x5981dd(0x1ac),'helpersDir':_0x5981dd(0x18f),'defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x5981dd(0x1bd),'lint:xpath':_0x5981dd(0x1bd),'lint:obfuscated-class':'warn','lint:pause-explicit':_0x5981dd(0x1bd),'lint:disambig-by-index':_0x5981dd(0x1ab),'lint:evaluate-discouraged':_0x5981dd(0x1bd),'lint:scenario-in-root':'error','lint:mustache-in-dsl':_0x5981dd(0x185),'lint:goto-concat':'warn','lint:regex-invalid':_0x5981dd(0x185),'lint:echo-assert':_0x5981dd(0x1bd),'lint:lint-ok-missing-reason':_0x5981dd(0x1bd),'lint:flow-returns-value':'warn','lint:legacy-layout':_0x5981dd(0x1bd),'lint:external-variable-undeclared':_0x5981dd(0x185),'lint:env-host-from-base':_0x5981dd(0x185),'lint:one-test-per-file':_0x5981dd(0x1bd),'lint:shadows-dsl-function':_0x5981dd(0x1bd),'lint:skip-outside-test':_0x5981dd(0x185),'lint:set-test-timeout-outside-test':_0x5981dd(0x185),'lint:filter-unknown-option':_0x5981dd(0x185),'lint:role-unknown-option':_0x5981dd(0x185),'validator:unknown-function':_0x5981dd(0x185)}},'env':{'shared':[]},'mcp':{'transport':_0x5981dd(0x198)},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};export{BROWSER_CHANNEL_WORDS,BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,EnvConfigSchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,QueueConfigSchema,RetryConfigSchema,RetryReasonSchema,SYSTEM_BROWSER_CHANNELS,SandboxConfigSchema,ScheduleSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema,WebServersConfigSchema,viewportDeviceConflict};
|
|
1
|
+
var _0x94fbd1=_0x43b1;(function(_0x16aa0d,_0x3894a3){var _0x1804f1={_0x2bbdc2:0x191,_0x11f89b:0x1b3,_0x32a0b8:0x1a6,_0x1eefcc:0x1ab,_0x237c84:0x1b0},_0x21c4de=_0x43b1,_0x31e415=_0x16aa0d();while(!![]){try{var _0x59ba74=parseInt(_0x21c4de(_0x1804f1._0x2bbdc2))/0x1*(-parseInt(_0x21c4de(0x167))/0x2)+-parseInt(_0x21c4de(_0x1804f1._0x11f89b))/0x3*(parseInt(_0x21c4de(_0x1804f1._0x32a0b8))/0x4)+-parseInt(_0x21c4de(0x1b1))/0x5+-parseInt(_0x21c4de(_0x1804f1._0x1eefcc))/0x6+-parseInt(_0x21c4de(0x193))/0x7+-parseInt(_0x21c4de(0x1b9))/0x8+-parseInt(_0x21c4de(0x16c))/0x9*(-parseInt(_0x21c4de(_0x1804f1._0x237c84))/0xa);if(_0x59ba74===_0x3894a3)break;else _0x31e415['push'](_0x31e415['shift']());}catch(_0x2766dc){_0x31e415['push'](_0x31e415['shift']());}}}(_0x2246,0x91e94));var __defProp=Object['defineProperty'],__name=(_0x4a7d26,_0x30a697)=>__defProp(_0x4a7d26,'name',{'value':_0x30a697,'configurable':!![]});import{z as _0x148b79}from'zod';import{z}from'zod';import{levenshteinDistance}from'@unotest/core';var MAX_EDITS=0x2;function closestKey(_0xb10a8e,_0x263039){var _0x4fc4e5={_0x221a0b:0x1b4},_0x1b9a3e=_0x43b1;let _0x41e896;for(const _0xe180b2 of _0x263039){const _0x24dfe0=levenshteinDistance(_0xb10a8e['toLowerCase'](),_0xe180b2[_0x1b9a3e(0x1c0)]());if(_0x24dfe0>MAX_EDITS)continue;if(_0x41e896===void 0x0||_0x24dfe0<_0x41e896[_0x1b9a3e(_0x4fc4e5._0x221a0b)])_0x41e896={'key':_0xe180b2,'distance':_0x24dfe0};}return _0x41e896?.[_0x1b9a3e(0x1dc)];}__name(closestKey,_0x94fbd1(0x161));function unknownKeyMessage(_0xa4b08c,_0x110097){var _0xd8f418={_0x333bbb:0x1a2},_0x3f3a3f={_0x5d7dbd:0x197,_0x2413f5:0x155},_0x55b50e=_0x94fbd1;return _0xa4b08c[_0x55b50e(0x1a4)](_0x4e0045=>{var _0x11d7c3=_0x55b50e;const _0x4ca508=closestKey(_0x4e0045,_0x110097);return _0x4ca508===void 0x0?_0x11d7c3(0x197)+_0x4e0045+_0x11d7c3(0x1ac):_0x11d7c3(_0x3f3a3f._0x5d7dbd)+_0x4e0045+_0x11d7c3(_0x3f3a3f._0x2413f5)+_0x4ca508+'\x22?';})[_0x55b50e(_0xd8f418._0x333bbb)](';\x20');}__name(unknownKeyMessage,_0x94fbd1(0x15d));function strictObject(_0x53c3d1){var _0x475118={_0x391fd0:0x18c,_0x2bf7af:0x18e},_0x2216b7=_0x94fbd1;const _0x13443c=Object[_0x2216b7(0x1db)](_0x53c3d1);return z[_0x2216b7(_0x475118._0x391fd0)](_0x53c3d1,{'errorMap':__name((_0x232d32,_0x38a2f5)=>_0x232d32['code']===z['ZodIssueCode'][_0x2216b7(0x17c)]?{'message':unknownKeyMessage(_0x232d32['keys'],_0x13443c)}:{'message':_0x38a2f5[_0x2216b7(0x1c6)]},_0x2216b7(0x1bd))})[_0x2216b7(_0x475118._0x2bf7af)]();}__name(strictObject,'strictObject');import{BUNDLED_BROWSER_CHANNEL}from'@unotest/protocol';import{z as _0x10cb13}from'zod';import{UnotestError}from'@unotest/core';var LaunchConfigSchema=_0x10cb13[_0x94fbd1(0x18c)]({'userDataDir':_0x10cb13[_0x94fbd1(0x166)]()[_0x94fbd1(0x16f)](0x1)['optional'](),'profile':_0x10cb13[_0x94fbd1(0x1d8)]('per-test')[_0x94fbd1(0x159)](),'args':_0x10cb13[_0x94fbd1(0x190)](_0x10cb13['string']()['min'](0x1))[_0x94fbd1(0x159)]()})[_0x94fbd1(0x18e)](),PROFILES={'ios':{'browsers':[_0x94fbd1(0x1d7)],'device':'iPhone\x2015','displayMode':_0x94fbd1(0x1ce)}},PROFILE_NAMES=Object[_0x94fbd1(0x1db)](PROFILES);function profileConflict(_0x1b1b87,_0x29f83f){var _0x4b4cc9={_0x3ddd01:0x192,_0x456f21:0x156},_0x11a8f6=_0x94fbd1;return _0x11a8f6(_0x4b4cc9._0x3ddd01)+_0x1b1b87+_0x11a8f6(0x177)+_0x29f83f[_0x11a8f6(0x1a4)](_0xb23fb0=>'`'+_0xb23fb0+'`')['join']('\x20and\x20')+_0x11a8f6(_0x4b4cc9._0x456f21)+(_0x29f83f[_0x11a8f6(0x1a9)]===0x1?'it':_0x11a8f6(0x171))+'\x20from\x20the\x20config,\x20or\x20drop\x20the\x20profile.';}__name(profileConflict,'profileConflict');var BrowserSchema=_0x148b79['enum']([_0x94fbd1(0x19f),'firefox',_0x94fbd1(0x1d7)]),SYSTEM_BROWSER_CHANNELS=[_0x94fbd1(0x174),_0x94fbd1(0x1cf),'chrome-beta',_0x94fbd1(0x19f)],BROWSER_CHANNEL_WORDS=[...SYSTEM_BROWSER_CHANNELS,BUNDLED_BROWSER_CHANNEL],BrowserChannelSchema=_0x148b79[_0x94fbd1(0x1aa)]([_0x148b79[_0x94fbd1(0x1b5)](SYSTEM_BROWSER_CHANNELS),_0x148b79[_0x94fbd1(0x1d8)](BUNDLED_BROWSER_CHANNEL)[_0x94fbd1(0x158)](()=>null),_0x148b79[_0x94fbd1(0x186)]()])[_0x94fbd1(0x159)](),DisplayModeSchema=_0x148b79[_0x94fbd1(0x1b5)]([_0x94fbd1(0x1a3),_0x94fbd1(0x1ce),_0x94fbd1(0x16a),_0x94fbd1(0x1c2)]),ViewportSchema=strictObject({'width':_0x148b79[_0x94fbd1(0x1dd)]()[_0x94fbd1(0x1d9)]()['positive']()[_0x94fbd1(0x159)](),'height':_0x148b79[_0x94fbd1(0x1dd)]()['int']()[_0x94fbd1(0x18d)]()[_0x94fbd1(0x159)](),'deviceScaleFactor':_0x148b79[_0x94fbd1(0x1dd)]()[_0x94fbd1(0x18d)]()[_0x94fbd1(0x159)]()}),ConfigViewportSchema=ViewportSchema[_0x94fbd1(0x1b2)]();function _0x2246(){var _0x519669=['Aw50','AxnuAw1LwM9Uzq','A2v5CW','A2v5','BNvTyMvY','iIdIGjqGzgLKihLVDsbTzwfUici','igL0C2vSzIdIGjqGzhjVCca','D2vIu2vYDMvYwW','DhjHBNnMB3jT','B3b0Aw9UywW','zM9YrwfJAa','BgLUDdPSzwDHy3KTBgf5B3v0','Aw52ywXPzcbSB2nHBguGiG','Dw5RBM93BKTLEu1LC3nHz2u','ywrKsxnZDwu','BgLUDdPHCgKTy2fSBc1MAwXLlwjVzhK','DMfSAwrHDg9YoMXVy2f0B3iTAw5KzxGTywnJzxnZ','y2XVC2vZDeTLEq','DMfSAwrHDg9YoNnLBwfUDgLJlwXVC3m','BgLUDdPWyxvZzs1LEhbSAwnPDa','zgv2AwnL','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','C3rYAw5N','mJa4nKDwAfLkDa','DMfSAwrHDg9YoMLMlxnOyxbL','DMfSAwrHDg9YoNvUA25VD24TBwvTyMvY','BwLUAw1HBc11Aq','D2fYBG','odf4whrsBum','Bwf4','DMfSAwrHDg9YoNrVCc1SzxzLBc1ZDgf0zw1LBNq','BwLU','DMfSAwrHDg9YoMfZC2vYDc1UzxzLCI1ZAgfWzq','DgHLBq','DMfSAwrHDg9YoNbHz2uTy29Kzs1ZDhjPBMC','DMfSAwrHDg9YoNrLyxjKB3DUlxnOyxbL','y2HYB21L','Dw5VDgvZDc9LmMuVx2HLBhbLCNm','lNvUB3rLC3qVzMfPBhvYzxm','iIbZzxrZia','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','DMfSAwrHDg9YoNrLBxbSyxrLlwvZy2fWzs1JAgfUz2vK','BgLUDdPNB3rVlwnVBMnHDa','Dw5YzwnVz25PEMvKx2TLExm','DMfSAwrHDg9YoMXPyNjHCNKTBwvTyMvY','B2zM','BgLUDdPZzxqTDgvZDc10Aw1LB3v0lw91DhnPzguTDgvZDa','BgLUDdPYzwDLEc1PBNzHBgLK','BgLUDdPVyMz1C2nHDgvKlwnSyxnZ','ywrK','BgLUDdPZAgfKB3DZlwrZBc1MDw5JDgLVBG','iIdIGjqGzxHWzwn0zwqGysbcq1aGndCGDgfNihn1y2GGyxmGiMvZluvtiG','DMfSAwrHDg9YoNrVCc1SzxzLBc1JB25ZDa','BNvSBa','BwfUDwfS','DMfSAwrHDg9YoMLTCgXPy2L0lwrLy2XHCMf0Aw9U','AgfZ','DMfSAwrHDg9YoMnOywLUlxjLy2vPDMvY','y3jHC2G','B2jQzwn0','Cg9ZAxrPDMu','C3rYAwn0','BgLUDdP0ExbLzc1ZDgvWlwf2ywLSywjSzq','yxjYyxK','odG5sg9uq0Xl','ChjVzMLSzsaI','nta4mdmYmezYsvP3yq','AxnbCNjHEq','BgLUDdPTDxn0ywnOzs1PBI1KC2W','Dw5VDgvZDc9LmMu','Dw5RBM93BIbRzxKGiG','zxjYB3i','BgLUDdPLEhrLCM5HBc12yxjPywjSzs11BMrLy2XHCMvK','DMfSAwrHDg9YoMz1BMn0Aw9UlxnOyxbL','yNjVD3nLCNm','DMfSAwrHDg9YoMnVBNn0lwfZC2LNBG','igLZigfSCMvHzhKGyw5VDgHLCIbZzxj2zxiNCYdIGjqGzwfJAcbZzxj2zxiGBMvLzhmGAxrZig93BIbYzwfKAw5LC3mGvvjmlG','ChjVzMLSzq','y2HYB21PDw0','DhjHBNnPzw50','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','AM9PBG','yNjVD3nLCG','BwfW','DMfSAwrHDg9YoMfZEw5Jlwf3ywL0','nfLhqwvozW','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','iIdIGjqGzxHWzwn0zwqGyw4GsufoqsbUyw1Lihn1y2GGyxmGiKv1CM9Wzs9nywrYAwqI','BgvUz3rO','Dw5PB24','ndq1nJG2meH1ANjxCW','iIdIGjqGBM90igeGy29UzMLNigTLEtSGy2HLy2SGEw91CIbaDw5VDgvZDc93zwiGDMvYC2LVBIbPzIbPDcbJB21LCYbMCM9TigeGBMv3zxiGCMvSzwfZzq','CMvMAw5L','DMfSAwrHDg9YoNn0CMLUzY1JB25Jyxq','iIbZzxrZigL0CYbVD24GC2L6zsbHBMqGC2nHBguG4OcuigrYB3aGB25Lig9MihrOzw0U','ntq4mZa3mgfoAxrXva','nteWnti0nuvQrKX4DW','BNvSBgfIBgu','mZa5mJm0wgjQqMjp','zgLZDgfUy2u','zw51Bq','zNvSBa','wM9KsxnZDwvdB2rL','C3vWzxjszwzPBMu','nJuZnZq5nKLfvNPnAa','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','BgLUDdPZy2vUyxjPBY1PBI1YB290','y3vZDg9T','zxjYB3jnyxa','zgvMyxvSDa','DMfSAwrHDg9YoM91Dc1VzI1Syw5NDwfNzq','Dg9mB3DLCKnHC2u','yM9VBgvHBG','zNvSBhnJCMvLBG','CMvKywn0zwq','zgLZBwLZCW','BgLUDdPLy2HVlwfZC2vYDa','zgvMyxvSDevYCM9Y','CMvJB3jK','DMfSAwrHDg9YoMfYAxr5','BgLUDdPYB2XLlxvUA25VD24TB3b0Aw9U','BgLUDdPLBNyTAg9ZDc1MCM9TlwjHC2u','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','DMLLD3bVCNq6ig51BgW','DMfSAwrHDg9YoNDHAxqTDw50AwWTC2HHCgu','C3rHBMrHBg9Uzq','BxnLzgDL','C3rKAw8','DMfSAwrHDg9YoMv2ywX1yxrLlwLUDgvYCg9SyxrPB24','BgLUDdPMBg93lxjLDhvYBNmTDMfSDwu','BMv0D29YAW','DxjS','ywnJzxb0','DMfSAwrHDg9YoMzVCI1ZAgfWzq','D2vIA2L0','BgL0zxjHBa'];_0x2246=function(){return _0x519669;};return _0x2246();}function viewportDeviceConflict(_0x7a5a7d,_0xc446bf,_0x2fd79c=_0x94fbd1(0x1cc)){var _0x1874ff={_0x8df206:0x1af},_0x421fcf=_0x94fbd1;if(_0x7a5a7d!==null||_0xc446bf===void 0x0)return void 0x0;return _0x2fd79c+'\x20keeps\x20the\x20real\x20browser\x20window,\x20and\x20device\x20\x22'+_0xc446bf+_0x421fcf(_0x1874ff._0x8df206);}__name(viewportDeviceConflict,'viewportDeviceConflict');var RetryReasonSchema=_0x148b79[_0x94fbd1(0x1b5)](['transient',_0x94fbd1(0x1d3),_0x94fbd1(0x18b)]),RetryConfigSchema=strictObject({'count':_0x148b79[_0x94fbd1(0x1dd)]()['int']()[_0x94fbd1(0x16f)](0x0)[_0x94fbd1(0x16d)](0xa),'on':_0x148b79[_0x94fbd1(0x190)](RetryReasonSchema)}),FailureBundleConfigSchema=strictObject({'tier1':_0x148b79[_0x94fbd1(0x1d8)](!![])[_0x94fbd1(0x1be)](!![]),'tier2':_0x148b79[_0x94fbd1(0x1c1)](),'tier3':strictObject({'network':_0x148b79[_0x94fbd1(0x1c1)](),'video':_0x148b79[_0x94fbd1(0x1c1)]()}),'retention':strictObject({'runs':_0x148b79[_0x94fbd1(0x1dd)]()[_0x94fbd1(0x1d9)]()['positive'](),'days':_0x148b79[_0x94fbd1(0x1dd)]()['int']()[_0x94fbd1(0x18d)]()}),'storageDir':_0x148b79[_0x94fbd1(0x166)]()[_0x94fbd1(0x16f)](0x1),'pageHtml':_0x148b79[_0x94fbd1(0x1b5)]([_0x94fbd1(0x1c3),_0x94fbd1(0x1b6)])}),DialogPolicySchema=_0x148b79[_0x94fbd1(0x1b5)]([_0x94fbd1(0x1d5),_0x94fbd1(0x1c4),_0x94fbd1(0x187)]),REMOVED_VALIDATOR_RULE_IDS=[_0x94fbd1(0x1a1),_0x94fbd1(0x1a7),'validator:unsupported-string-member',_0x94fbd1(0x1bf),_0x94fbd1(0x17d),_0x94fbd1(0x188)],LinterRuleIdSchema=_0x148b79[_0x94fbd1(0x1b5)](['lint:deep-css','lint:xpath',_0x94fbd1(0x181),_0x94fbd1(0x163),_0x94fbd1(0x1ba),_0x94fbd1(0x179),_0x94fbd1(0x1bb),_0x94fbd1(0x195),_0x94fbd1(0x17b),_0x94fbd1(0x180),_0x94fbd1(0x1c5),_0x94fbd1(0x15f),_0x94fbd1(0x1cb),_0x94fbd1(0x1d2),_0x94fbd1(0x15b),_0x94fbd1(0x199),'lint:external-variable-no-value',_0x94fbd1(0x1ca),'lint:one-test-per-file',_0x94fbd1(0x183),'lint:skip-outside-test',_0x94fbd1(0x17f),'lint:filter-unknown-option',_0x94fbd1(0x1c9),_0x94fbd1(0x18f),_0x94fbd1(0x178),_0x94fbd1(0x1c8),'validator:arg-kind','validator:step-coverage','validator:step-shape','validator:meta-shape',_0x94fbd1(0x19a),_0x94fbd1(0x1d6),_0x94fbd1(0x168),'validator:var-shape',_0x94fbd1(0x16e),_0x94fbd1(0x1ae),_0x94fbd1(0x162),'validator:list-arg',_0x94fbd1(0x165),_0x94fbd1(0x19c),_0x94fbd1(0x173),'validator:teardown-name-conflict',_0x94fbd1(0x1cd),_0x94fbd1(0x170),_0x94fbd1(0x160),_0x94fbd1(0x18a),_0x94fbd1(0x185),'validator:string-member-receiver','validator:array-member-receiver','validator:options','validator:implicit-global',_0x94fbd1(0x1a5),_0x94fbd1(0x1d1),'validator:page-code-closure','validator:page-code-syntax',_0x94fbd1(0x172),_0x94fbd1(0x17a),_0x94fbd1(0x169),...REMOVED_VALIDATOR_RULE_IDS]),LinterSeveritySchema=_0x148b79[_0x94fbd1(0x1b5)]([_0x94fbd1(0x17e),_0x94fbd1(0x16b),'error']),LinterConfigSchema=strictObject({'enabled':_0x148b79[_0x94fbd1(0x1c1)](),'rules':_0x148b79[_0x94fbd1(0x1c7)](LinterRuleIdSchema,LinterSeveritySchema)}),QueueConfigSchema=strictObject({'enabled':_0x148b79[_0x94fbd1(0x1c1)]()[_0x94fbd1(0x1be)](!![]),'concurrency':_0x148b79['number']()['int']()[_0x94fbd1(0x18d)]()[_0x94fbd1(0x1be)](0x1)}),ScheduleSchema=strictObject({'collection':_0x148b79[_0x94fbd1(0x166)]()['min'](0x1),'cron':_0x148b79[_0x94fbd1(0x166)]()[_0x94fbd1(0x16f)](0x1),'env':_0x148b79['string']()[_0x94fbd1(0x16f)](0x1)[_0x94fbd1(0x159)](),'prepare':_0x148b79[_0x94fbd1(0x166)]()[_0x94fbd1(0x16f)](0x1)[_0x94fbd1(0x159)]()}),McpConfigSchema=strictObject({'transport':_0x148b79[_0x94fbd1(0x1d8)](_0x94fbd1(0x1d0))}),SandboxConfigSchema=strictObject({'shellCwd':_0x148b79[_0x94fbd1(0x166)]()[_0x94fbd1(0x159)](),'shellTimeoutMs':_0x148b79[_0x94fbd1(0x1dd)]()['int']()[_0x94fbd1(0x18d)]()[_0x94fbd1(0x159)](),'exportSecrets':_0x148b79[_0x94fbd1(0x190)](_0x148b79[_0x94fbd1(0x166)]())[_0x94fbd1(0x159)](),'database':_0x148b79[_0x94fbd1(0x166)]()[_0x94fbd1(0x159)](),'apiBaseUrl':_0x148b79[_0x94fbd1(0x166)]()['url']()[_0x94fbd1(0x159)](),'uploadDir':_0x148b79['string']()[_0x94fbd1(0x159)](),'readRoots':_0x148b79['array'](_0x148b79[_0x94fbd1(0x166)]()[_0x94fbd1(0x16f)](0x1))['optional']()}),WebServerConfigSchema=strictObject({'command':_0x148b79[_0x94fbd1(0x166)]()[_0x94fbd1(0x16f)](0x1),'url':_0x148b79[_0x94fbd1(0x166)]()[_0x94fbd1(0x1d4)](),'reuseExistingServer':_0x148b79['boolean']()[_0x94fbd1(0x1be)](!![]),'timeoutMs':_0x148b79[_0x94fbd1(0x1dd)]()['int']()[_0x94fbd1(0x18d)]()['default'](0xea60)}),WebServersConfigSchema=_0x148b79[_0x94fbd1(0x1aa)]([WebServerConfigSchema,_0x148b79[_0x94fbd1(0x190)](WebServerConfigSchema)['min'](0x1)])[_0x94fbd1(0x158)](_0x94243b=>Array[_0x94fbd1(0x194)](_0x94243b)?_0x94243b:[_0x94243b])[_0x94fbd1(0x1b8)]((_0x54ad4f,_0x1fe467)=>{var _0x18f89e={_0xa90538:0x189,_0x36ec0b:0x1b7,_0xcdba83:0x1bc,_0x6505bd:0x157,_0x5b3114:0x1d4,_0x3825fa:0x19d,_0x5f41c2:0x182},_0x1d064d=_0x94fbd1;const _0x26279a=new Set();_0x54ad4f[_0x1d064d(0x15a)]((_0x1cc10e,_0x1065b8)=>{var _0x51678c=_0x1d064d;_0x26279a[_0x51678c(_0x18f89e._0xa90538)](_0x1cc10e[_0x51678c(0x1d4)])&&_0x1fe467['addIssue']({'code':_0x148b79[_0x51678c(_0x18f89e._0x36ec0b)][_0x51678c(_0x18f89e._0xcdba83)],'path':[_0x1065b8,_0x51678c(0x1d4)],'message':_0x51678c(_0x18f89e._0x6505bd)+_0x1065b8+'].url\x20'+_0x1cc10e[_0x51678c(_0x18f89e._0x5b3114)]+_0x51678c(_0x18f89e._0x3825fa)}),_0x26279a[_0x51678c(_0x18f89e._0x5f41c2)](_0x1cc10e[_0x51678c(_0x18f89e._0x5b3114)]);});}),EnvConfigSchema=strictObject({'shared':_0x148b79['array'](_0x148b79['string']())[_0x94fbd1(0x1be)]([])}),UnotestConfigSchema=strictObject({'baseUrl':_0x148b79[_0x94fbd1(0x166)]()['url']()[_0x94fbd1(0x159)](),'webServer':WebServersConfigSchema[_0x94fbd1(0x159)](),'generate':_0x148b79[_0x94fbd1(0x166)]()[_0x94fbd1(0x16f)](0x1)['optional'](),'browsers':_0x148b79[_0x94fbd1(0x190)](BrowserSchema)[_0x94fbd1(0x16f)](0x1),'channel':BrowserChannelSchema,'viewport':ConfigViewportSchema[_0x94fbd1(0x159)](),'device':_0x148b79[_0x94fbd1(0x166)]()['min'](0x1)[_0x94fbd1(0x159)](),'profile':_0x148b79['enum'](PROFILE_NAMES)[_0x94fbd1(0x159)](),'displayMode':DisplayModeSchema['optional'](),'timezone':_0x148b79[_0x94fbd1(0x166)]()[_0x94fbd1(0x1ad)](isTimeZone,_0x449f88=>({'message':'unknown\x20time\x20zone\x20\x22'+_0x449f88+_0x94fbd1(0x1a8)}))[_0x94fbd1(0x159)](),'locale':_0x148b79['string']()[_0x94fbd1(0x1ad)](isLocale,_0x56d32b=>({'message':_0x94fbd1(0x15c)+_0x56d32b+_0x94fbd1(0x184)}))[_0x94fbd1(0x159)](),'maxContexts':_0x148b79['number']()[_0x94fbd1(0x1d9)]()[_0x94fbd1(0x18d)]()[_0x94fbd1(0x159)](),'launch':LaunchConfigSchema[_0x94fbd1(0x159)](),'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':_0x148b79[_0x94fbd1(0x166)]()[_0x94fbd1(0x159)](),'testDir':_0x148b79[_0x94fbd1(0x166)]()['min'](0x1),'helpersDir':_0x148b79[_0x94fbd1(0x166)]()['min'](0x1),'defaultTimeoutMs':_0x148b79[_0x94fbd1(0x1dd)]()[_0x94fbd1(0x1d9)]()[_0x94fbd1(0x18d)](),'defaultNavigationTimeoutMs':_0x148b79[_0x94fbd1(0x1dd)]()[_0x94fbd1(0x1d9)]()[_0x94fbd1(0x18d)](),'teardownTimeoutMs':_0x148b79[_0x94fbd1(0x1dd)]()[_0x94fbd1(0x1d9)]()[_0x94fbd1(0x18d)]()[_0x94fbd1(0x159)](),'testTimeoutMs':_0x148b79[_0x94fbd1(0x1dd)]()[_0x94fbd1(0x1d9)]()[_0x94fbd1(0x18d)]()['optional'](),'env':EnvConfigSchema,'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':_0x148b79[_0x94fbd1(0x190)](ScheduleSchema)[_0x94fbd1(0x1be)]([]),'sandbox':SandboxConfigSchema})[_0x94fbd1(0x1b8)]((_0x59033e,_0x476b1c)=>{var _0x4effa1={_0x2372c1:0x164,_0x38ba2e:0x15e,_0x36b2dd:0x19e,_0x1cf093:0x1bc},_0x4ea142=_0x94fbd1;const _0xc503cd=viewportDeviceConflict(_0x59033e['viewport'],_0x59033e[_0x4ea142(_0x4effa1._0x2372c1)]);_0xc503cd!==void 0x0&&_0x476b1c[_0x4ea142(_0x4effa1._0x38ba2e)]({'code':_0x148b79['ZodIssueCode']['custom'],'path':['viewport'],'message':_0xc503cd});if(_0x59033e[_0x4ea142(0x19e)]!==void 0x0){const _0x1eeeb0=PROFILES[_0x59033e[_0x4ea142(_0x4effa1._0x36b2dd)]],_0x33b521=[..._0x59033e['browsers'][_0x4ea142(0x1a2)]()!==_0x1eeeb0[_0x4ea142(0x19b)][_0x4ea142(0x1a2)]()?['browsers']:[],..._0x59033e[_0x4ea142(_0x4effa1._0x2372c1)]!==_0x1eeeb0[_0x4ea142(_0x4effa1._0x2372c1)]?['device']:[]];_0x33b521['length']>0x0&&_0x476b1c[_0x4ea142(0x15e)]({'code':_0x148b79[_0x4ea142(0x1b7)][_0x4ea142(_0x4effa1._0x1cf093)],'path':['profile'],'message':profileConflict(_0x59033e[_0x4ea142(_0x4effa1._0x36b2dd)],_0x33b521)});}});function _0x43b1(_0x13ee8f,_0x7893c3){_0x13ee8f=_0x13ee8f-0x155;var _0x22461a=_0x2246();var _0x43b1c7=_0x22461a[_0x13ee8f];if(_0x43b1['kqKYaN']===undefined){var _0x4a264d=function(_0x27f7ca){var _0x38de99='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x148b79='',_0x10cb13='';for(var _0x4a7d26=0x0,_0x30a697,_0xb10a8e,_0x263039=0x0;_0xb10a8e=_0x27f7ca['charAt'](_0x263039++);~_0xb10a8e&&(_0x30a697=_0x4a7d26%0x4?_0x30a697*0x40+_0xb10a8e:_0xb10a8e,_0x4a7d26++%0x4)?_0x148b79+=String['fromCharCode'](0xff&_0x30a697>>(-0x2*_0x4a7d26&0x6)):0x0){_0xb10a8e=_0x38de99['indexOf'](_0xb10a8e);}for(var _0x41e896=0x0,_0xe180b2=_0x148b79['length'];_0x41e896<_0xe180b2;_0x41e896++){_0x10cb13+='%'+('00'+_0x148b79['charCodeAt'](_0x41e896)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x10cb13);};_0x43b1['qvEQVd']=_0x4a264d,_0x43b1['HBLILi']={},_0x43b1['kqKYaN']=!![];}var _0x15c364=_0x22461a[0x0],_0x2f5bd3=_0x13ee8f+_0x15c364,_0x4a1d21=_0x43b1['HBLILi'][_0x2f5bd3];return!_0x4a1d21?(_0x43b1c7=_0x43b1['qvEQVd'](_0x43b1c7),_0x43b1['HBLILi'][_0x2f5bd3]=_0x43b1c7):_0x43b1c7=_0x4a1d21,_0x43b1c7;}function isTimeZone(_0x47ab32){var _0x39672a=_0x94fbd1;try{return new Intl['DateTimeFormat']('en-US',{'timeZone':_0x47ab32}),_0x47ab32[_0x39672a(0x1a9)]>0x0;}catch{return![];}}__name(isTimeZone,_0x94fbd1(0x1da));function isLocale(_0x1a6851){try{return Intl['getCanonicalLocales'](_0x1a6851)['length']===0x1;}catch{return![];}}__name(isLocale,'isLocale');var DEFAULT_CONFIG={'browsers':[_0x94fbd1(0x19f)],'retry':{'count':0x0,'on':[_0x94fbd1(0x1a0)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x94fbd1(0x176),'pageHtml':'redacted'},'dialogPolicy':_0x94fbd1(0x1d5),'testDir':_0x94fbd1(0x196),'helpersDir':_0x94fbd1(0x175),'defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':'warn','lint:xpath':'warn','lint:obfuscated-class':'warn','lint:pause-explicit':_0x94fbd1(0x16b),'lint:disambig-by-index':_0x94fbd1(0x17e),'lint:evaluate-discouraged':'warn','lint:scenario-in-root':_0x94fbd1(0x198),'lint:mustache-in-dsl':'error','lint:goto-concat':_0x94fbd1(0x16b),'lint:regex-invalid':_0x94fbd1(0x198),'lint:echo-assert':'warn','lint:lint-ok-missing-reason':'warn','lint:flow-returns-value':_0x94fbd1(0x16b),'lint:legacy-layout':_0x94fbd1(0x16b),'lint:external-variable-undeclared':_0x94fbd1(0x198),'lint:external-variable-no-value':_0x94fbd1(0x198),'lint:env-host-from-base':_0x94fbd1(0x198),'lint:one-test-per-file':_0x94fbd1(0x16b),'lint:shadows-dsl-function':_0x94fbd1(0x16b),'lint:skip-outside-test':_0x94fbd1(0x198),'lint:set-test-timeout-outside-test':'error','lint:filter-unknown-option':'error','lint:role-unknown-option':'error','validator:unknown-function':_0x94fbd1(0x198)}},'env':{'shared':[]},'mcp':{'transport':_0x94fbd1(0x1d0)},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};export{BROWSER_CHANNEL_WORDS,BrowserChannelSchema,BrowserSchema,DEFAULT_CONFIG,DialogPolicySchema,DisplayModeSchema,EnvConfigSchema,FailureBundleConfigSchema,LinterConfigSchema,LinterRuleIdSchema,LinterSeveritySchema,McpConfigSchema,QueueConfigSchema,REMOVED_VALIDATOR_RULE_IDS,RetryConfigSchema,RetryReasonSchema,SYSTEM_BROWSER_CHANNELS,SandboxConfigSchema,ScheduleSchema,UnotestConfigSchema,ViewportSchema,WebServerConfigSchema,WebServersConfigSchema,viewportDeviceConflict};
|
package/dist/driver/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BoundingBox, I as ImageSize, E as ElementHint, S as ScreenshotOptions, L as LocatorValue, C as CaptureFrame, a as CaptureRect, P as PageConsole, N as NetworkEntry, W as WebDriver, b as LaunchOptions, c as ContextOptions, D as DriverContext,
|
|
2
|
-
export {
|
|
1
|
+
import { V as VirtualCredential, B as BoundingBox, I as ImageSize, A as AnimationInfo, E as ElementHint, S as ScreenshotOptions, L as LocatorValue, C as CaptureFrame, a as CaptureRect, P as PageConsole, N as NetworkEntry, W as WebDriver, b as LaunchOptions, c as ContextOptions, D as DriverContext, d as AttachOptions } from '../interfaces-BSGmF_Tv.js';
|
|
2
|
+
export { e as ActionTimeout, f as CheckOptions, g as ClickOptions, h as CookieOptions, i as DriverPage, F as FillOptions, G as GotoOptions, H as HoverOptions, j as NavigationOptions, k as PressOptions, R as ReloadOptions, l as SelectOptions, m as Viewport, n as ViewportSize, o as WaitOptions, p as WaitState } from '../interfaces-BSGmF_Tv.js';
|
|
3
3
|
import '@unotest/protocol';
|
|
4
4
|
import '../config/schema.js';
|
|
5
5
|
import 'zod';
|
|
@@ -26,6 +26,13 @@ interface FakeBehavior {
|
|
|
26
26
|
/** Default innerText() response. Falls back to textContentByDefault when
|
|
27
27
|
* unset — most tests don't care about the rendered/raw distinction. */
|
|
28
28
|
innerTextByDefault?: string;
|
|
29
|
+
/** What clipboardRead() returns, asked on every read. Default: "". */
|
|
30
|
+
clipboardText?: () => string;
|
|
31
|
+
/** What webAuthn().credentials() returns. Default: none. */
|
|
32
|
+
virtualCredentials?: VirtualCredential[];
|
|
33
|
+
/** Permission names grantPermissions refuses, as an engine that does not
|
|
34
|
+
* know them would. */
|
|
35
|
+
refusedPermissions?: readonly string[];
|
|
29
36
|
/** Default inputValue() response. Default: ''. */
|
|
30
37
|
inputValueByDefault?: string;
|
|
31
38
|
/** Default isVisible() response. Default: true. */
|
|
@@ -39,6 +46,8 @@ interface FakeBehavior {
|
|
|
39
46
|
imageSizeByDefault?: ImageSize | null;
|
|
40
47
|
/** Per-property computedStyle(loc, property) response. Default: "". */
|
|
41
48
|
computedStyleByProperty?: Record<string, string>;
|
|
49
|
+
/** Default animations(loc) response. Default: none. */
|
|
50
|
+
animationsByDefault?: AnimationInfo[];
|
|
42
51
|
/** runningAnimations(loc) response, one per call in order; the last
|
|
43
52
|
* repeats. Default: 0. */
|
|
44
53
|
runningAnimationsSequence?: number[];
|