@unotest/web 0.55.0 → 0.57.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/.claude/skills/write-e2e-test/SKILL.md +44 -7
- package/.claude/skills/write-e2e-test-ground/SKILL.md +20 -5
- package/CHANGELOG.md +250 -3
- package/README.md +7 -6
- package/bin/unotest-web.js +13 -0
- package/dist/config/schema.d.ts +29 -23
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.d.ts +16 -2
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +74 -94
- package/dist/dsl/index.js +1 -1
- package/dist/dsl/v8/scenario-worker.js +1 -1
- package/dist/dsl/web-dsl-language-service.d.ts +30 -3
- package/dist/dsl/web-dsl-language-service.js +1 -1
- package/dist/inspection/page-inject.d.ts +63 -7
- package/dist/inspection/page-inject.js +199 -19
- package/dist/{interfaces-CNvyInrY.d.ts → interfaces-DDp6Chwx.d.ts} +167 -10
- package/dist/{linter-BpaIstU3.d.ts → linter-q4UNIeGI.d.ts} +20 -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/dist/scenario-variables-CGexnWK4.d.ts +106 -0
- package/examples/idioms/README.md +16 -0
- package/examples/idioms/animations-list.js +24 -0
- package/examples/idioms/api-call-timeout.js +14 -0
- package/examples/idioms/background-tab.js +24 -0
- package/examples/idioms/clipboard-paste.js +25 -0
- package/examples/idioms/computed-style.js +21 -0
- package/examples/idioms/image-size.js +20 -0
- package/examples/idioms/never-appears.js +20 -0
- package/examples/idioms/never-condition.js +24 -0
- package/examples/idioms/page-code-function.js +18 -0
- package/examples/idioms/select-by-label.js +22 -0
- package/examples/idioms/wait-enabled.js +24 -0
- package/examples/idioms/wait-for-animations.js +16 -0
- package/examples/idioms/wait-until-value.js +32 -0
- package/guides/agent-integration.md +28 -4
- package/guides/dsl-reference.md +896 -45
- package/llms.txt +38 -9
- package/package.json +9 -8
- package/types/unotest-dsl.d.ts +107 -30
- package/types/unotest-lib.d.ts +5 -3
package/dist/config/schema.d.ts
CHANGED
|
@@ -125,7 +125,7 @@ type DialogPolicy = z.infer<typeof DialogPolicySchema>;
|
|
|
125
125
|
* loads, and `lint` warns that the entry does nothing. Gone in the next
|
|
126
126
|
* major. */
|
|
127
127
|
declare const REMOVED_VALIDATOR_RULE_IDS: readonly ["validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"];
|
|
128
|
-
declare const LinterRuleIdSchema: z.ZodEnum<["lint:deep-css", "lint:xpath", "lint:obfuscated-class", "lint:pause-explicit", "lint:disambig-by-index", "lint:evaluate-discouraged", "lint:scenario-in-root", "lint:mustache-in-dsl", "lint:goto-concat", "lint:regex-invalid", "lint:echo-assert", "lint:api-call-file-body", "lint:lint-ok-missing-reason", "lint:flow-returns-value", "lint:legacy-layout", "lint:external-variable-undeclared", "lint:external-variable-no-value", "lint:env-host-from-base", "lint:one-test-per-file", "lint:shadows-dsl-function", "lint:skip-outside-test", "lint:set-test-timeout-outside-test", "lint: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"]>;
|
|
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:env-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", "lint:function-newer-than-suite", "lint:get-attribute-null", "lint:external-variable-empty", "validator:unknown-function", "validator:arity", "validator:arg-kind", "validator:step-coverage", "validator:step-shape", "validator:meta-shape", "validator:function-shape", "validator:for-shape", "validator:if-shape", "validator:var-shape", "validator:top-level-statement", "validator:string-concat", "validator:semantic-loss", "validator:list-arg", "validator:wrapped-format", "validator:const-assign", "validator:teardown-shape", "validator:teardown-name-conflict", "validator:wait-until-shape", "validator:assert-never-shape", "validator:locator-index-access", "validator:chain-receiver", "validator:top-level-const", "validator:string-member-receiver", "validator:array-member-receiver", "validator:options", "validator:implicit-global", "validator:async-await", "validator:evaluate-interpolation", "validator:page-code-closure", "validator:page-code-syntax", "validator:page-code-string", "validator:template-escape-changed", "validator:unknown-member", "validator:unsupported-statement", "validator:unsupported-expression", "validator:unsupported-string-member", "validator:out-of-language", "validator:library-member", "validator:implicit-declaration"]>;
|
|
129
129
|
type LinterRuleId = z.infer<typeof LinterRuleIdSchema>;
|
|
130
130
|
declare const LinterSeveritySchema: z.ZodEnum<["off", "warn", "error"]>;
|
|
131
131
|
type LinterSeverity = z.infer<typeof LinterSeveritySchema>;
|
|
@@ -134,13 +134,13 @@ type LinterSeverity = z.infer<typeof LinterSeveritySchema>;
|
|
|
134
134
|
declare const REMOVED_RULE_SUCCESSORS: ReadonlyMap<string, LinterRuleId>;
|
|
135
135
|
declare const LinterConfigSchema: z.ZodObject<{
|
|
136
136
|
enabled: z.ZodBoolean;
|
|
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">>>;
|
|
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:env-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", "lint:function-newer-than-suite", "lint:get-attribute-null", "lint:external-variable-empty", "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:env-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" | "lint:function-newer-than-suite" | "lint:get-attribute-null" | "lint:external-variable-empty" | "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:env-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" | "lint:function-newer-than-suite" | "lint:get-attribute-null" | "lint:external-variable-empty" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>>;
|
|
138
138
|
}, "strict", z.ZodTypeAny, {
|
|
139
139
|
enabled: boolean;
|
|
140
|
-
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint: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">>;
|
|
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:env-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" | "lint:function-newer-than-suite" | "lint:get-attribute-null" | "lint:external-variable-empty" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
141
141
|
}, {
|
|
142
142
|
enabled: boolean;
|
|
143
|
-
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
143
|
+
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:env-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" | "lint:function-newer-than-suite" | "lint:get-attribute-null" | "lint:external-variable-empty" | "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">>;
|
|
144
144
|
}>;
|
|
145
145
|
type LinterConfig = z.infer<typeof LinterConfigSchema>;
|
|
146
146
|
declare const QueueConfigSchema: z.ZodObject<{
|
|
@@ -209,13 +209,16 @@ declare const SandboxConfigSchema: z.ZodObject<{
|
|
|
209
209
|
* masked in logs by the SecretRegistry. */
|
|
210
210
|
exportSecrets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
211
211
|
/** Database connection string consumed by `dbQuery` / `dbExec`. URL form
|
|
212
|
-
* picks the dialect: `postgres://`, `mysql://`, `sqlite:`.
|
|
213
|
-
|
|
212
|
+
* picks the dialect: `postgres://`, `mysql://`, `sqlite:`. Or
|
|
213
|
+
* `{{NAME}}`: the value of NAME in the active environment's layer
|
|
214
|
+
* files, resolved when the run starts (`resolveSandbox`). */
|
|
215
|
+
database: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
214
216
|
/** Base URL for `apiCall(method, path, body?, headers?)`. The path
|
|
215
217
|
* passed to `apiCall` MUST be relative (starts with `/`); absolute
|
|
216
218
|
* URLs are rejected at runtime. Additional bases come from env
|
|
217
|
-
* variables via `apiCall(..., {base: "API_BASE_X"})`.
|
|
218
|
-
|
|
219
|
+
* variables via `apiCall(..., {base: "API_BASE_X"})`. `{{NAME}}` as
|
|
220
|
+
* for `database`. */
|
|
221
|
+
apiBaseUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
219
222
|
/** Root for `upload()` fixtures. Relative upload paths resolve
|
|
220
223
|
* against it and may not escape it. Defaults to the project root
|
|
221
224
|
* (the runner's cwd). */
|
|
@@ -360,8 +363,8 @@ declare const WebServersConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.Zo
|
|
|
360
363
|
}[]>;
|
|
361
364
|
declare const EnvConfigSchema: z.ZodObject<{
|
|
362
365
|
/** Variable names whose base `.env` value is deliberately shared by
|
|
363
|
-
* every environment.
|
|
364
|
-
*
|
|
366
|
+
* every environment. Any name: it silences both
|
|
367
|
+
* `lint:env-host-from-base` and `lint:env-from-base`. */
|
|
365
368
|
shared: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
366
369
|
}, "strict", z.ZodTypeAny, {
|
|
367
370
|
shared: string[];
|
|
@@ -632,8 +635,8 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
632
635
|
/** Cross-environment declarations (`.env.<name>` overlays). */
|
|
633
636
|
env: z.ZodObject<{
|
|
634
637
|
/** Variable names whose base `.env` value is deliberately shared by
|
|
635
|
-
* every environment.
|
|
636
|
-
*
|
|
638
|
+
* every environment. Any name: it silences both
|
|
639
|
+
* `lint:env-host-from-base` and `lint:env-from-base`. */
|
|
637
640
|
shared: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
638
641
|
}, "strict", z.ZodTypeAny, {
|
|
639
642
|
shared: string[];
|
|
@@ -642,13 +645,13 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
642
645
|
}>;
|
|
643
646
|
linter: z.ZodObject<{
|
|
644
647
|
enabled: z.ZodBoolean;
|
|
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">>>;
|
|
648
|
+
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:env-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", "lint:function-newer-than-suite", "lint:get-attribute-null", "lint:external-variable-empty", "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:env-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" | "lint:function-newer-than-suite" | "lint:get-attribute-null" | "lint:external-variable-empty" | "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:env-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" | "lint:function-newer-than-suite" | "lint:get-attribute-null" | "lint:external-variable-empty" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>>;
|
|
646
649
|
}, "strict", z.ZodTypeAny, {
|
|
647
650
|
enabled: boolean;
|
|
648
|
-
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint: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">>;
|
|
651
|
+
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:env-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" | "lint:function-newer-than-suite" | "lint:get-attribute-null" | "lint:external-variable-empty" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
649
652
|
}, {
|
|
650
653
|
enabled: boolean;
|
|
651
|
-
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
654
|
+
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:env-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" | "lint:function-newer-than-suite" | "lint:get-attribute-null" | "lint:external-variable-empty" | "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">>;
|
|
652
655
|
}>;
|
|
653
656
|
mcp: z.ZodObject<{
|
|
654
657
|
transport: z.ZodLiteral<"stdio">;
|
|
@@ -714,13 +717,16 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
714
717
|
* masked in logs by the SecretRegistry. */
|
|
715
718
|
exportSecrets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
716
719
|
/** Database connection string consumed by `dbQuery` / `dbExec`. URL form
|
|
717
|
-
* picks the dialect: `postgres://`, `mysql://`, `sqlite:`.
|
|
718
|
-
|
|
720
|
+
* picks the dialect: `postgres://`, `mysql://`, `sqlite:`. Or
|
|
721
|
+
* `{{NAME}}`: the value of NAME in the active environment's layer
|
|
722
|
+
* files, resolved when the run starts (`resolveSandbox`). */
|
|
723
|
+
database: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
719
724
|
/** Base URL for `apiCall(method, path, body?, headers?)`. The path
|
|
720
725
|
* passed to `apiCall` MUST be relative (starts with `/`); absolute
|
|
721
726
|
* URLs are rejected at runtime. Additional bases come from env
|
|
722
|
-
* variables via `apiCall(..., {base: "API_BASE_X"})`.
|
|
723
|
-
|
|
727
|
+
* variables via `apiCall(..., {base: "API_BASE_X"})`. `{{NAME}}` as
|
|
728
|
+
* for `database`. */
|
|
729
|
+
apiBaseUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
724
730
|
/** Root for `upload()` fixtures. Relative upload paths resolve
|
|
725
731
|
* against it and may not escape it. Defaults to the project root
|
|
726
732
|
* (the runner's cwd). */
|
|
@@ -777,7 +783,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
777
783
|
defaultNavigationTimeoutMs: number;
|
|
778
784
|
linter: {
|
|
779
785
|
enabled: boolean;
|
|
780
|
-
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
786
|
+
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:env-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" | "lint:function-newer-than-suite" | "lint:get-attribute-null" | "lint:external-variable-empty" | "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">>;
|
|
781
787
|
};
|
|
782
788
|
mcp: {
|
|
783
789
|
transport: "stdio";
|
|
@@ -859,7 +865,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
859
865
|
defaultNavigationTimeoutMs: number;
|
|
860
866
|
linter: {
|
|
861
867
|
enabled: boolean;
|
|
862
|
-
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
868
|
+
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:env-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" | "lint:function-newer-than-suite" | "lint:get-attribute-null" | "lint:external-variable-empty" | "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">>;
|
|
863
869
|
};
|
|
864
870
|
mcp: {
|
|
865
871
|
transport: "stdio";
|
|
@@ -946,7 +952,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
946
952
|
defaultNavigationTimeoutMs: number;
|
|
947
953
|
linter: {
|
|
948
954
|
enabled: boolean;
|
|
949
|
-
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
955
|
+
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:env-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" | "lint:function-newer-than-suite" | "lint:get-attribute-null" | "lint:external-variable-empty" | "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">>;
|
|
950
956
|
};
|
|
951
957
|
mcp: {
|
|
952
958
|
transport: "stdio";
|
|
@@ -1028,7 +1034,7 @@ declare const UnotestConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1028
1034
|
defaultNavigationTimeoutMs: number;
|
|
1029
1035
|
linter: {
|
|
1030
1036
|
enabled: boolean;
|
|
1031
|
-
rules: Partial<Record<"validator:unsupported-statement" | "validator:unsupported-expression" | "validator:unsupported-string-member" | "validator:out-of-language" | "validator:library-member" | "validator:implicit-declaration" | "lint:deep-css" | "lint:xpath" | "lint:obfuscated-class" | "lint:pause-explicit" | "lint:disambig-by-index" | "lint:evaluate-discouraged" | "lint:scenario-in-root" | "lint:mustache-in-dsl" | "lint:goto-concat" | "lint:regex-invalid" | "lint:echo-assert" | "lint:api-call-file-body" | "lint:lint-ok-missing-reason" | "lint:flow-returns-value" | "lint:legacy-layout" | "lint:external-variable-undeclared" | "lint:external-variable-no-value" | "lint:env-host-from-base" | "lint:one-test-per-file" | "lint:shadows-dsl-function" | "lint:skip-outside-test" | "lint:set-test-timeout-outside-test" | "lint:wait-exceeds-test-budget" | "lint:filter-unknown-option" | "lint:role-unknown-option" | "lint:typed-step-available" | "validator:unknown-function" | "validator:arity" | "validator:arg-kind" | "validator:step-coverage" | "validator:step-shape" | "validator:meta-shape" | "validator:function-shape" | "validator:for-shape" | "validator:if-shape" | "validator:var-shape" | "validator:top-level-statement" | "validator:string-concat" | "validator:semantic-loss" | "validator:list-arg" | "validator:wrapped-format" | "validator:const-assign" | "validator:teardown-shape" | "validator:teardown-name-conflict" | "validator:wait-until-shape" | "validator:assert-never-shape" | "validator:locator-index-access" | "validator:chain-receiver" | "validator:top-level-const" | "validator:string-member-receiver" | "validator:array-member-receiver" | "validator:options" | "validator:implicit-global" | "validator:async-await" | "validator:evaluate-interpolation" | "validator:page-code-closure" | "validator:page-code-syntax" | "validator:page-code-string" | "validator:template-escape-changed" | "validator:unknown-member", "off" | "warn" | "error">>;
|
|
1037
|
+
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:env-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" | "lint:function-newer-than-suite" | "lint:get-attribute-null" | "lint:external-variable-empty" | "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">>;
|
|
1032
1038
|
};
|
|
1033
1039
|
mcp: {
|
|
1034
1040
|
transport: "stdio";
|
package/dist/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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};
|
|
1
|
+
var _0x1f9b8c=_0x2985;(function(_0x37824f,_0x2f5c59){var _0x4512ed={_0x2935f5:0xc7,_0x42138b:0xea,_0x253696:0x8d,_0x22c96c:0xec,_0x5b1c16:0x85},_0x5c1f90=_0x2985,_0x3ccdc5=_0x37824f();while(!![]){try{var _0x180882=-parseInt(_0x5c1f90(0x110))/0x1*(parseInt(_0x5c1f90(_0x4512ed._0x2935f5))/0x2)+parseInt(_0x5c1f90(0xf5))/0x3+parseInt(_0x5c1f90(0x100))/0x4*(parseInt(_0x5c1f90(_0x4512ed._0x42138b))/0x5)+-parseInt(_0x5c1f90(0xd3))/0x6+parseInt(_0x5c1f90(0xbc))/0x7*(-parseInt(_0x5c1f90(_0x4512ed._0x253696))/0x8)+-parseInt(_0x5c1f90(_0x4512ed._0x22c96c))/0x9*(parseInt(_0x5c1f90(_0x4512ed._0x5b1c16))/0xa)+parseInt(_0x5c1f90(0xe4))/0xb;if(_0x180882===_0x2f5c59)break;else _0x3ccdc5['push'](_0x3ccdc5['shift']());}catch(_0xaa8fde){_0x3ccdc5['push'](_0x3ccdc5['shift']());}}}(_0x4a2d,0x56804));var __defProp=Object['defineProperty'],__name=(_0x3d8b9c,_0x3c097d)=>__defProp(_0x3d8b9c,'name',{'value':_0x3c097d,'configurable':!![]});import{z as _0x22feab}from'zod';import{z}from'zod';import{levenshteinDistance}from'@unotest/core';var MAX_EDITS=0x2;function closestKey(_0x19bef5,_0x3d3973){var _0x3dc9d3=_0x2985;let _0x2607ce;for(const _0x532205 of _0x3d3973){const _0x24c43d=levenshteinDistance(_0x19bef5['toLowerCase'](),_0x532205[_0x3dc9d3(0xa0)]());if(_0x24c43d>MAX_EDITS)continue;if(_0x2607ce===void 0x0||_0x24c43d<_0x2607ce['distance'])_0x2607ce={'key':_0x532205,'distance':_0x24c43d};}return _0x2607ce?.['key'];}__name(closestKey,_0x1f9b8c(0xff));function unknownKeyMessage(_0x548766,_0x5926c0){var _0x563930={_0x112cf2:0xaa},_0x28a671=_0x1f9b8c;return _0x548766[_0x28a671(0xaf)](_0x4cba63=>{var _0x352457=_0x28a671;const _0x312000=closestKey(_0x4cba63,_0x5926c0);return _0x312000===void 0x0?'unknown\x20key\x20\x22'+_0x4cba63+'\x22\x20—\x20not\x20a\x20config\x20key;\x20check\x20your\x20@unotest/web\x20version\x20if\x20it\x20comes\x20from\x20a\x20newer\x20release':_0x352457(_0x563930._0x112cf2)+_0x4cba63+_0x352457(0xfb)+_0x312000+'\x22?';})[_0x28a671(0xc2)](';\x20');}__name(unknownKeyMessage,_0x1f9b8c(0x9b));function strictObject(_0x394b89,_0x102cb5=unknownKeyMessage){var _0x537cda={_0x4d79ec:0xb0,_0x29251c:0x8f},_0x164a7c=_0x1f9b8c;const _0x42dfe4=Object[_0x164a7c(_0x537cda._0x4d79ec)](_0x394b89);return z[_0x164a7c(0xcd)](_0x394b89,{'errorMap':__name((_0x5390bd,_0x100453)=>_0x5390bd[_0x164a7c(0x9e)]===z[_0x164a7c(0xc4)][_0x164a7c(0xce)]?{'message':_0x102cb5(_0x5390bd[_0x164a7c(0xb0)],_0x42dfe4)}:{'message':_0x100453['defaultError']},_0x164a7c(_0x537cda._0x29251c))})[_0x164a7c(0x99)]();}__name(strictObject,_0x1f9b8c(0xf3));import{BUNDLED_BROWSER_CHANNEL}from'@unotest/protocol';import{z as _0x4b5e81}from'zod';import{UnotestError}from'@unotest/core';import{ENV_FILE,SECRETS_FILE}from'@unotest/protocol';import{activeEnvName,envLayerFilesFor,secretsLayerFilesFor}from'@unotest/protocol';var LaunchConfigSchema=_0x4b5e81[_0x1f9b8c(0xcd)]({'userDataDir':_0x4b5e81[_0x1f9b8c(0x108)]()['min'](0x1)[_0x1f9b8c(0xdb)](),'profile':_0x4b5e81[_0x1f9b8c(0x114)](_0x1f9b8c(0xae))['optional'](),'args':_0x4b5e81[_0x1f9b8c(0x84)](_0x4b5e81[_0x1f9b8c(0x108)]()[_0x1f9b8c(0xc1)](0x1))[_0x1f9b8c(0xdb)]()})[_0x1f9b8c(0x99)](),PROFILES={'ios':{'browsers':[_0x1f9b8c(0xa5)],'device':_0x1f9b8c(0x91),'displayMode':'standalone'}},PROFILE_NAMES=Object[_0x1f9b8c(0xb0)](PROFILES);function profileConflict(_0x44c040,_0x7b66f0){var _0x482a53={_0x43c4e3:0xc8,_0x14daef:0x106},_0x2526bd=_0x1f9b8c;return _0x2526bd(0x8e)+_0x44c040+_0x2526bd(0x83)+_0x7b66f0[_0x2526bd(0xaf)](_0x139524=>'`'+_0x139524+'`')['join']('\x20and\x20')+'\x20itself\x20—\x20drop\x20'+(_0x7b66f0[_0x2526bd(_0x482a53._0x43c4e3)]===0x1?'it':_0x2526bd(_0x482a53._0x14daef))+_0x2526bd(0xe2);}__name(profileConflict,_0x1f9b8c(0x10e));var MUSTACHE_RE=/^\{\{\s*([A-Z][A-Z0-9_]*)\s*\}\}$/,MUSTACHE_OPEN='{{';function explicitRefName(_0x352adb){var _0x3dac38=_0x1f9b8c;const _0x1c9d04=MUSTACHE_RE[_0x3dac38(0xbd)](_0x352adb);return _0x1c9d04?_0x1c9d04[0x1]:null;}function _0x4a2d(){var _0x3f85e2=['BgL0zxjHBa','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0CMLUzY1Tzw1Izxi','zgvMyxvSDa','C3vJy2vZCW','DMfSAwrHDg9YoMfZEw5Jlwf3ywL0','BwfUDwfS','zMLYzwzVEa','Aw50','yxbPqMfZzvvYBa','DMLLD3bVCNrezxzPy2vdB25MBgLJDa','yNjVD3nLCNm','BgLUDdPLDMfSDwf0zs1KAxnJB3vYywDLza','AxnmB2nHBgu','BgLUDdPYB2XLlxvUA25VD24TB3b0Aw9U','DMfSAwrHDg9YoMfYCMf5lw1LBwjLCI1YzwnLAxzLCG','CMvMAw5L','DMfSAwrHDg9YoNrLyxjKB3DUlxnOyxbL','igLUihrOzsb2yxjPywjSzsbHBMqGD3jPDguGj3T7tKfnrx19jY4','BNvSBa','BMv0D29YAW','AxnbCNjHEq','iIbZzxrZia','yxjYyxK','mtm3ntKZmgzMCefjrG','Bwf4','BgLUDdPLEhrLCM5HBc12yxjPywjSzs11BMrLy2XHCMvK','DMfSAwrHDg9YoNn0zxaTy292zxjHz2u','zw4Tvvm','zNvSBhnJCMvLBG','DhjHBNnPzw50','C3rKAw8','mteZntC4nenOCNnusW','ChjVzMLSzsaI','zxjYB3jnyxa','BgLUDdPKAxnHBwjPzY1IEs1PBMrLEa','AvbOB25Lide1','BgLUDdPLBNyTAg9ZDc1MCM9TlwjHC2u','Aw52ywXPzcbSB2nHBguGiG','Dw5VDgvZDc9LmMu','Dw5VDgvZDc9LmMuVx2HLBhbLCNm','B2zM','DMfSAwrHDg9YoNvUA25VD24TBwvTyMvY','BgLUDdP4Cgf0Aa','C3rYAwn0','oIaIE3Toqu1fFx0Iig11C3qGyMuGDgHLihDOB2XLihzHBhvLiokaLcbWDxqGDgHLignVBxbSzxrLia','Dw5RBM93BKTLEu1LC3nHz2u','DMfSAwrHDg9YoNbHz2uTy29Kzs1ZEw50yxG','AgfZugfYDgLHBfjLzG','y29Kzq','BxnLzgDL','Dg9mB3DLCKnHC2u','C3rHBMrHBg9Uzq','yM9VBgvHBG','y2HYB21PDw0','DMfSAwrHDg9YoNrLyxjKB3DUlw5HBwuTy29UzMXPy3q','D2vIA2L0','DMfSAwrHDg9YoNDYyxbWzwqTzM9YBwf0','BgLUDdP3ywL0lwv4y2vLzhmTDgvZDc1IDwrNzxq','BgLUDdPMBg93lxjLDhvYBNmTDMfSDwu','igTLzxbZihrOzsbYzwfSigjYB3DZzxiGD2LUzg93lcbHBMqGzgv2AwnLici','Dw5RBM93BIbRzxKGiG','C2fMzvbHCNnL','ywnJzxb0','BwLUAw1HBc11Aq','CgvYlxrLC3q','BwfW','A2v5CW','DMfSAwrHDg9YoMLTCgXPy2L0lwrLy2XHCMf0Aw9U','xs51CMWG','CMvJB3jK','DMfSAwrHDg9YoMXVy2f0B3iTAw5KzxGTywnJzxnZ','BgLUDdPMDw5JDgLVBI1UzxDLCI10AgfUlxn1AxrL','DMfSAwrHDg9YoNzHCI1ZAgfWzq','BgLUDdPZy2vUyxjPBY1PBI1YB290','CMvKywn0zwq','iIdIGjqGzxHWzwn0zwqGysbcq1aGndCGDgfNihn1y2GGyxmGiMvZluvtiG','BgLUDdPSAw50lw9Rlw1PC3nPBMCTCMvHC29U','zNvSBa','n1DhvejWsq','zxHLyW','AxnZDwvZ','BgLUDdPZAgfKB3DZlwrZBc1MDw5JDgLVBG','DMfSAwrHDg9YoNrLBxbSyxrLlwvZy2fWzs1JAgfUz2vK','BwLU','AM9PBG','DMfSAwrHDg9YoNrVCc1SzxzLBc1ZDgf0zw1LBNq','wM9KsxnZDwvdB2rL','D2fYBG','BgLUDdPHCgKTy2fSBc1MAwXLlwjVzhK','mtCZmJaYzhPNAeDk','BgvUz3rO','DMfSAwrHDg9YoNrVCc1SzxzLBc1JB25ZDa','DMfSAwrHDg9YoNn0CMLUzY1Tzw1IzxiTCMvJzwL2zxi','DMfSAwrHDg9YoMzVCI1ZAgfWzq','DxjS','B2jQzwn0','Dw5YzwnVz25PEMvKx2TLExm','y3vZDg9T','BgLUDdPSzwDHy3KTBgf5B3v0','ywrKsxnZDwu','C2fUzgjVEfzHBhvLu2nOzw1H','mZmXodm0oeLqC0zMCq','yNjVD3nLCG','DhjHBNnMB3jT','z2v0q2fUB25Py2fStg9JywXLCW','DMfSAwrHDg9YoNbHz2uTy29Kzs1JBg9ZDxjL','BgLUDdPNzxqTyxr0CMLIDxrLlw51BgW','Aw5JBhvKzxm','DMfSAwrHDg9YoNvUA25VD24TzNvUy3rPB24','B3b0Aw9UywW','zgf0ywjHC2u','DMLLD3bVCNq','zw51Bq','BNvSBgfIBgu','DMfSAwrHDg9YoMLTCgXPy2L0lwDSB2jHBa','DMfSAwrHDg9YoM9WDgLVBNm','igzYB20GDgHLignVBMzPzYWGB3iGzhjVCcb0AguGChjVzMLSzs4','lNvUB3rLC3qVzMfPBhvYzxm','mteWnZi1ntzUtLvlDe8','DMfSAwrHDg9YoMfZC2vYDc1UzxzLCI1ZAgfWzq','DMfSAwrHDg9YoMXPC3qTyxjN','BNvTyMvY','BgLUDdPLEhrLCM5HBc12yxjPywjSzs1LBxb0Eq','DMfSAwrHDg9YoMnVBNn0lwfZC2LNBG','ndC5nJiWtfL6vKvj','Dw5PB24','ovrfCMLcAG','DMfSAwrHDg9YoMXPyNjHCNKTBwvTyMvY','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlwv4ChjLC3nPB24','BgLUDdPLEhrLCM5HBc12yxjPywjSzs1UBY12ywX1zq','DMfSAwrHDg9YoNbHz2uTy29Kzs1ZDhjPBMC','C2fUzgjVEc4','Dw5RBM93BIb0Aw1LihPVBMuGiG','C3rYAwn0t2jQzwn0','igLZigfSCMvHzhKGyw5VDgHLCIbZzxj2zxiNCYdIGjqGzwfJAcbZzxj2zxiGBMvLzhmGAxrZig93BIbYzwfKAw5LC3mGvvjmlG','mJi1mJy3CgjuwxvK','BgLUDdPVBMuTDgvZDc1WzxiTzMLSzq','y3jHC2G','y29UBMvJDgLVBIbZDhjPBMC','DMfSAwrHDg9YoMLMlxnOyxbL','BgLUDdPLy2HVlwfZC2vYDa','iIdIGjqGzgLKihLVDsbTzwfUici','BgLUDdPKzwvWlwnZCW','ChjVzMLSzq','C3vWzxjszwzPBMu','y2XVC2vZDeTLEq','ofDcuxP2tG','zxjYB3i','DMfSAwrHDg9YoNvUC3vWCg9YDgvKlxn0yxrLBwvUDa','BgLUDdPZzxqTDgvZDc10Aw1LB3v0lw91DhnPzguTDgvZDa','DMfSAwrHDg9YoNDHAxqTDw50AwWTC2HHCgu','zM9YrwfJAa','DgHLBq','BgLUDdPZA2LWlw91DhnPzguTDgvZDa','C3rYAw5N','iIdIGjqGzxHWzwn0zwqGyw4GsufoqsbUyw1Lihn1y2GGyxmGiKv1CM9Wzs9nywrYAwqI','BgLUDdP0ExbLzc1ZDgvWlwf2ywLSywjSzq','DMfSAwrHDg9YoMfYAxr5','AxnuAw1LwM9Uzq','DMfSAwrHDg9YoMnOywLUlxjLy2vPDMvY','ChjVzMLSzunVBMzSAwn0','Cg9ZAxrPDMu','mujKAwDcza','zgv2AwnL','DMfSAwrHDg9YoNn0zxaTC2HHCgu','DMfSAwrHDg9YoM1LDgeTC2HHCgu'];_0x4a2d=function(){return _0x3f85e2;};return _0x4a2d();}__name(explicitRefName,'explicitRefName');function hasPartialRef(_0x3c3a6e){var _0x880aea={_0x474a54:0xd9},_0x48b465=_0x1f9b8c;return _0x3c3a6e[_0x48b465(_0x880aea._0x474a54)](MUSTACHE_OPEN)&&explicitRefName(_0x3c3a6e)===null;}__name(hasPartialRef,_0x1f9b8c(0x9d));var BrowserSchema=_0x22feab[_0x1f9b8c(0xde)]([_0x1f9b8c(0xa3),_0x1f9b8c(0x11a),_0x1f9b8c(0xa5)]),SYSTEM_BROWSER_CHANNELS=['chrome',_0x1f9b8c(0x9f),'chrome-beta','chromium'],BROWSER_CHANNEL_WORDS=[...SYSTEM_BROWSER_CHANNELS,BUNDLED_BROWSER_CHANNEL],BrowserChannelSchema=_0x22feab['union']([_0x22feab[_0x1f9b8c(0xde)](SYSTEM_BROWSER_CHANNELS),_0x22feab[_0x1f9b8c(0x114)](BUNDLED_BROWSER_CHANNEL)[_0x1f9b8c(0xd5)](()=>null),_0x22feab[_0x1f9b8c(0x126)]()])[_0x1f9b8c(0xdb)](),DisplayModeSchema=_0x22feab[_0x1f9b8c(0xde)]([_0x1f9b8c(0xd4),_0x1f9b8c(0xa1),_0x1f9b8c(0xad),_0x1f9b8c(0x8a)]),ViewportSchema=strictObject({'width':_0x22feab['number']()[_0x1f9b8c(0x11b)]()[_0x1f9b8c(0x10f)]()[_0x1f9b8c(0xdb)](),'height':_0x22feab[_0x1f9b8c(0xe7)]()[_0x1f9b8c(0x11b)]()[_0x1f9b8c(0x10f)]()[_0x1f9b8c(0xdb)](),'deviceScaleFactor':_0x22feab[_0x1f9b8c(0xe7)]()[_0x1f9b8c(0x10f)]()[_0x1f9b8c(0xdb)]()}),ConfigViewportSchema=ViewportSchema[_0x1f9b8c(0xdf)]();function viewportDeviceConflict(_0x14522a,_0x260e3f,_0x5d8297='viewport:\x20null'){var _0x57db08={_0x196c0a:0xa9},_0x55558f=_0x1f9b8c;if(_0x14522a!==null||_0x260e3f===void 0x0)return void 0x0;return _0x5d8297+_0x55558f(_0x57db08._0x196c0a)+_0x260e3f+'\x22\x20sets\x20its\x20own\x20size\x20and\x20scale\x20—\x20drop\x20one\x20of\x20them.';}__name(viewportDeviceConflict,_0x1f9b8c(0x11d));var RetryReasonSchema=_0x22feab['enum']([_0x1f9b8c(0x8b),_0x1f9b8c(0x127),_0x1f9b8c(0xf7)]),RetryConfigSchema=strictObject({'count':_0x22feab['number']()['int']()[_0x1f9b8c(0xc1)](0x0)[_0x1f9b8c(0x86)](0xa),'on':_0x22feab['array'](RetryReasonSchema)}),FailureBundleConfigSchema=strictObject({'tier1':_0x22feab[_0x1f9b8c(0x114)](!![])[_0x1f9b8c(0x116)](!![]),'tier2':_0x22feab[_0x1f9b8c(0xa2)](),'tier3':strictObject({'network':_0x22feab[_0x1f9b8c(0xa2)](),'video':_0x22feab['boolean']()}),'retention':strictObject({'runs':_0x22feab[_0x1f9b8c(0xe7)]()[_0x1f9b8c(0x11b)]()[_0x1f9b8c(0x10f)](),'days':_0x22feab[_0x1f9b8c(0xe7)]()['int']()[_0x1f9b8c(0x10f)]()}),'storageDir':_0x22feab[_0x1f9b8c(0x108)]()[_0x1f9b8c(0xc1)](0x1),'pageHtml':_0x22feab[_0x1f9b8c(0xde)]([_0x1f9b8c(0xb8),_0x1f9b8c(0xbb)])}),DialogPolicySchema=_0x22feab['enum']([_0x1f9b8c(0xac),'dismiss',_0x1f9b8c(0x119)]),REMOVED_VALIDATOR_RULE_IDS=[_0x1f9b8c(0x102),_0x1f9b8c(0xee),_0x1f9b8c(0x115),'validator:out-of-language',_0x1f9b8c(0xed),_0x1f9b8c(0xb1)],LinterRuleIdSchema=_0x22feab[_0x1f9b8c(0xde)]([_0x1f9b8c(0xfc),_0x1f9b8c(0x98),'lint:obfuscated-class','lint:pause-explicit',_0x1f9b8c(0x90),_0x1f9b8c(0x11f),_0x1f9b8c(0xb7),'lint:mustache-in-dsl','lint:goto-concat','lint:regex-invalid',_0x1f9b8c(0xfa),_0x1f9b8c(0xc6),_0x1f9b8c(0xba),_0x1f9b8c(0xa8),_0x1f9b8c(0xd0),_0x1f9b8c(0x87),_0x1f9b8c(0xef),_0x1f9b8c(0x92),'lint:env-from-base',_0x1f9b8c(0xf6),_0x1f9b8c(0xbf),_0x1f9b8c(0x107),_0x1f9b8c(0x103),_0x1f9b8c(0xa7),'lint:filter-unknown-option',_0x1f9b8c(0x121),_0x1f9b8c(0x10a),_0x1f9b8c(0xb5),_0x1f9b8c(0xd8),_0x1f9b8c(0xe8),_0x1f9b8c(0xda),_0x1f9b8c(0x10b),'validator:arg-kind',_0x1f9b8c(0x88),_0x1f9b8c(0x112),_0x1f9b8c(0x113),'validator:function-shape',_0x1f9b8c(0xcb),_0x1f9b8c(0xf9),_0x1f9b8c(0xb6),_0x1f9b8c(0xc3),'validator:string-concat','validator:semantic-loss',_0x1f9b8c(0xe6),_0x1f9b8c(0xa6),_0x1f9b8c(0xe9),_0x1f9b8c(0x124),_0x1f9b8c(0xa4),_0x1f9b8c(0x104),_0x1f9b8c(0xe5),_0x1f9b8c(0xb4),_0x1f9b8c(0x10d),_0x1f9b8c(0xc9),_0x1f9b8c(0xca),_0x1f9b8c(0x122),_0x1f9b8c(0xe1),'validator:implicit-global',_0x1f9b8c(0x118),'validator:evaluate-interpolation',_0x1f9b8c(0xd7),_0x1f9b8c(0x9c),_0x1f9b8c(0xf0),_0x1f9b8c(0xc0),_0x1f9b8c(0x97),...REMOVED_VALIDATOR_RULE_IDS]),LinterSeveritySchema=_0x22feab[_0x1f9b8c(0xde)]([_0x1f9b8c(0x96),'warn',_0x1f9b8c(0x101)]),SUCCESSORS=new Map([[_0x1f9b8c(0xb1),_0x1f9b8c(0xe0)],[_0x1f9b8c(0x102),'validator:top-level-statement']]),REMOVED_RULE_SUCCESSORS=SUCCESSORS;function carrySuccessorLevels(_0x53bf4e){const _0x3e20b9={..._0x53bf4e};for(const [_0x32405b,_0x603eae]of SUCCESSORS){const _0x335b24=_0x53bf4e[_0x32405b];if(_0x335b24!==void 0x0&&_0x53bf4e[_0x603eae]===void 0x0)_0x3e20b9[_0x603eae]=_0x335b24;}return _0x3e20b9;}__name(carrySuccessorLevels,'carrySuccessorLevels');var LinterConfigSchema=strictObject({'enabled':_0x22feab[_0x1f9b8c(0xa2)](),'rules':_0x22feab[_0x1f9b8c(0xb3)](LinterRuleIdSchema,LinterSeveritySchema)[_0x1f9b8c(0xd5)](carrySuccessorLevels)}),QueueConfigSchema=strictObject({'enabled':_0x22feab['boolean']()[_0x1f9b8c(0x116)](!![]),'concurrency':_0x22feab[_0x1f9b8c(0xe7)]()[_0x1f9b8c(0x11b)]()[_0x1f9b8c(0x10f)]()['default'](0x1)}),ScheduleSchema=strictObject({'collection':_0x22feab[_0x1f9b8c(0x108)]()['min'](0x1),'cron':_0x22feab[_0x1f9b8c(0x108)]()['min'](0x1),'env':_0x22feab[_0x1f9b8c(0x108)]()['min'](0x1)[_0x1f9b8c(0xdb)](),'prepare':_0x22feab[_0x1f9b8c(0x108)]()[_0x1f9b8c(0xc1)](0x1)['optional']()}),McpConfigSchema=strictObject({'transport':_0x22feab['literal'](_0x1f9b8c(0x8c))});function sandboxValueSchema(_0x2fc8dd,_0x540420){var _0x2e8e3f={_0x2b5cf1:0x108},_0x242bc7={_0x2c948b:0xf1,_0x284e6d:0xf8,_0x425987:0x125,_0x3a68c7:0xab,_0x4abeb9:0x101,_0x4dc30d:0xd1},_0xd143db=_0x1f9b8c;return _0x22feab[_0xd143db(_0x2e8e3f._0x2b5cf1)]()[_0xd143db(0xfe)]((_0x299a4f,_0x48477a)=>{var _0x4f4a19=_0xd143db;if(explicitRefName(_0x299a4f)!==null)return;if(hasPartialRef(_0x299a4f)){_0x48477a[_0x4f4a19(0xd1)]({'code':_0x22feab[_0x4f4a19(0xc4)][_0x4f4a19(0xcf)],'message':_0x4f4a19(_0x242bc7._0x2c948b)+_0x2fc8dd+_0x4f4a19(0x9a)+(_0x2fc8dd===_0x4f4a19(0xdc)?_0x4f4a19(_0x242bc7._0x284e6d):'URL')+_0x4f4a19(_0x242bc7._0x425987)});return;}const _0x5ac915=_0x540420[_0x4f4a19(_0x242bc7._0x3a68c7)](_0x299a4f);if(!_0x5ac915[_0x4f4a19(0x117)]){for(const _0x23045c of _0x5ac915[_0x4f4a19(_0x242bc7._0x4abeb9)][_0x4f4a19(0xbe)])_0x48477a[_0x4f4a19(_0x242bc7._0x4dc30d)]({..._0x23045c,'path':[]});}});}__name(sandboxValueSchema,_0x1f9b8c(0xd2));var SandboxConfigSchema=strictObject({'shellCwd':_0x22feab['string']()['optional'](),'shellTimeoutMs':_0x22feab[_0x1f9b8c(0xe7)]()[_0x1f9b8c(0x11b)]()[_0x1f9b8c(0x10f)]()['optional'](),'exportSecrets':_0x22feab['array'](_0x22feab[_0x1f9b8c(0x108)]())['optional'](),'database':sandboxValueSchema(_0x1f9b8c(0xdc),_0x22feab['string']())['optional'](),'apiBaseUrl':sandboxValueSchema(_0x1f9b8c(0x11c),_0x22feab[_0x1f9b8c(0x108)]()[_0x1f9b8c(0xcc)]())[_0x1f9b8c(0xdb)](),'uploadDir':_0x22feab[_0x1f9b8c(0x108)]()[_0x1f9b8c(0xdb)](),'readRoots':_0x22feab[_0x1f9b8c(0x84)](_0x22feab[_0x1f9b8c(0x108)]()[_0x1f9b8c(0xc1)](0x1))['optional']()}),WebServerConfigSchema=strictObject({'command':_0x22feab[_0x1f9b8c(0x108)]()[_0x1f9b8c(0xc1)](0x1),'url':_0x22feab[_0x1f9b8c(0x108)]()[_0x1f9b8c(0xcc)](),'reuseExistingServer':_0x22feab[_0x1f9b8c(0xa2)]()[_0x1f9b8c(0x116)](!![]),'timeoutMs':_0x22feab[_0x1f9b8c(0xe7)]()[_0x1f9b8c(0x11b)]()[_0x1f9b8c(0x10f)]()[_0x1f9b8c(0x116)](0xea60)}),WebServersConfigSchema=_0x22feab[_0x1f9b8c(0xeb)]([WebServerConfigSchema,_0x22feab[_0x1f9b8c(0x84)](WebServerConfigSchema)[_0x1f9b8c(0xc1)](0x1)])[_0x1f9b8c(0xd5)](_0x33cb7c=>Array[_0x1f9b8c(0x128)](_0x33cb7c)?_0x33cb7c:[_0x33cb7c])[_0x1f9b8c(0xfe)]((_0x198134,_0x371fa6)=>{var _0x3b435f={_0x514e0c:0x105},_0x5a5fe9={_0x467b38:0xcc,_0xc9d061:0xcf,_0x387563:0xcc},_0x2682ef=_0x1f9b8c;const _0xce456c=new Set();_0x198134[_0x2682ef(_0x3b435f._0x514e0c)]((_0x302f2f,_0x9b86d8)=>{var _0x25969c=_0x2682ef;_0xce456c['has'](_0x302f2f[_0x25969c(_0x5a5fe9._0x467b38)])&&_0x371fa6[_0x25969c(0xd1)]({'code':_0x22feab['ZodIssueCode'][_0x25969c(_0x5a5fe9._0xc9d061)],'path':[_0x9b86d8,_0x25969c(0xcc)],'message':'webServer['+_0x9b86d8+_0x25969c(0xb2)+_0x302f2f[_0x25969c(_0x5a5fe9._0x467b38)]+_0x25969c(0xf4)}),_0xce456c['add'](_0x302f2f[_0x25969c(_0x5a5fe9._0x387563)]);});}),EnvConfigSchema=strictObject({'shared':_0x22feab['array'](_0x22feab[_0x1f9b8c(0x108)]())[_0x1f9b8c(0x116)]([])}),UnotestConfigSchema=strictObject({'baseUrl':_0x22feab[_0x1f9b8c(0x108)]()[_0x1f9b8c(0xcc)]()[_0x1f9b8c(0xdb)](),'webServer':WebServersConfigSchema[_0x1f9b8c(0xdb)](),'generate':_0x22feab['string']()[_0x1f9b8c(0xc1)](0x1)[_0x1f9b8c(0xdb)](),'browsers':_0x22feab[_0x1f9b8c(0x84)](BrowserSchema)['min'](0x1),'channel':BrowserChannelSchema,'viewport':ConfigViewportSchema[_0x1f9b8c(0xdb)](),'device':_0x22feab[_0x1f9b8c(0x108)]()[_0x1f9b8c(0xc1)](0x1)[_0x1f9b8c(0xdb)](),'profile':_0x22feab[_0x1f9b8c(0xde)](PROFILE_NAMES)[_0x1f9b8c(0xdb)](),'displayMode':DisplayModeSchema[_0x1f9b8c(0xdb)](),'timezone':_0x22feab[_0x1f9b8c(0x108)]()[_0x1f9b8c(0x123)](isTimeZone,_0x382817=>({'message':_0x1f9b8c(0xf2)+_0x382817+_0x1f9b8c(0x109)}))['optional'](),'locale':_0x22feab['string']()[_0x1f9b8c(0x123)](isLocale,_0x15088d=>({'message':_0x1f9b8c(0x93)+_0x15088d+_0x1f9b8c(0xb9)}))[_0x1f9b8c(0xdb)](),'maxContexts':_0x22feab[_0x1f9b8c(0xe7)]()[_0x1f9b8c(0x11b)]()[_0x1f9b8c(0x10f)]()['optional'](),'launch':LaunchConfigSchema[_0x1f9b8c(0xdb)](),'retry':RetryConfigSchema,'failureBundle':FailureBundleConfigSchema,'dialogPolicy':DialogPolicySchema,'storageState':_0x22feab[_0x1f9b8c(0x108)]()[_0x1f9b8c(0xdb)](),'testDir':_0x22feab[_0x1f9b8c(0x108)]()[_0x1f9b8c(0xc1)](0x1),'helpersDir':_0x22feab['string']()[_0x1f9b8c(0xc1)](0x1),'defaultTimeoutMs':_0x22feab['number']()[_0x1f9b8c(0x11b)]()[_0x1f9b8c(0x10f)](),'defaultNavigationTimeoutMs':_0x22feab[_0x1f9b8c(0xe7)]()[_0x1f9b8c(0x11b)]()['positive'](),'teardownTimeoutMs':_0x22feab[_0x1f9b8c(0xe7)]()[_0x1f9b8c(0x11b)]()[_0x1f9b8c(0x10f)]()['optional'](),'testTimeoutMs':_0x22feab[_0x1f9b8c(0xe7)]()[_0x1f9b8c(0x11b)]()[_0x1f9b8c(0x10f)]()['optional'](),'env':EnvConfigSchema,'linter':LinterConfigSchema,'mcp':McpConfigSchema,'queue':QueueConfigSchema,'schedules':_0x22feab[_0x1f9b8c(0x84)](ScheduleSchema)[_0x1f9b8c(0x116)]([]),'sandbox':SandboxConfigSchema})[_0x1f9b8c(0xfe)]((_0x22624a,_0x3af64a)=>{var _0x141a89={_0x4eaf98:0xfd,_0x356eda:0x111},_0x4c0aab=_0x1f9b8c;const _0x483d81=viewportDeviceConflict(_0x22624a[_0x4c0aab(0xdd)],_0x22624a['device']);_0x483d81!==void 0x0&&_0x3af64a[_0x4c0aab(0xd1)]({'code':_0x22feab[_0x4c0aab(0xc4)]['custom'],'path':['viewport'],'message':_0x483d81});if(_0x22624a[_0x4c0aab(_0x141a89._0x4eaf98)]!==void 0x0){const _0x50cd96=PROFILES[_0x22624a[_0x4c0aab(0xfd)]],_0x56461f=[..._0x22624a[_0x4c0aab(0x11e)][_0x4c0aab(0xc2)]()!==_0x50cd96['browsers'][_0x4c0aab(0xc2)]()?[_0x4c0aab(0x11e)]:[],..._0x22624a[_0x4c0aab(0x111)]!==_0x50cd96[_0x4c0aab(_0x141a89._0x356eda)]?['device']:[]];_0x56461f[_0x4c0aab(0xc8)]>0x0&&_0x3af64a[_0x4c0aab(0xd1)]({'code':_0x22feab['ZodIssueCode']['custom'],'path':['profile'],'message':profileConflict(_0x22624a[_0x4c0aab(0xfd)],_0x56461f)});}});function isTimeZone(_0x510907){var _0x3b15d6={_0x285263:0x89},_0x1f674a=_0x1f9b8c;try{return new Intl['DateTimeFormat'](_0x1f674a(_0x3b15d6._0x285263),{'timeZone':_0x510907}),_0x510907[_0x1f674a(0xc8)]>0x0;}catch{return![];}}__name(isTimeZone,_0x1f9b8c(0x10c));function isLocale(_0x58714f){var _0xcfdad=_0x1f9b8c;try{return Intl[_0xcfdad(0xd6)](_0x58714f)[_0xcfdad(0xc8)]===0x1;}catch{return![];}}__name(isLocale,_0x1f9b8c(0x120));var DEFAULT_CONFIG={'browsers':[_0x1f9b8c(0xa3)],'retry':{'count':0x0,'on':[_0x1f9b8c(0x8b)]},'failureBundle':{'tier1':!![],'tier2':!![],'tier3':{'network':![],'video':![]},'retention':{'runs':0x14,'days':0x7},'storageDir':_0x1f9b8c(0xe3),'pageHtml':_0x1f9b8c(0xb8)},'dialogPolicy':'accept','testDir':_0x1f9b8c(0x94),'helpersDir':_0x1f9b8c(0x95),'defaultTimeoutMs':0xbb8,'defaultNavigationTimeoutMs':0x7530,'linter':{'enabled':!![],'rules':{'lint:deep-css':_0x1f9b8c(0xc5),'lint:xpath':_0x1f9b8c(0xc5),'lint:obfuscated-class':_0x1f9b8c(0xc5),'lint:pause-explicit':'warn','lint:disambig-by-index':'off','lint:evaluate-discouraged':_0x1f9b8c(0xc5),'lint:scenario-in-root':'error','lint:mustache-in-dsl':_0x1f9b8c(0x101),'lint:goto-concat':'warn','lint:regex-invalid':_0x1f9b8c(0x101),'lint:echo-assert':_0x1f9b8c(0xc5),'lint:lint-ok-missing-reason':_0x1f9b8c(0xc5),'lint:flow-returns-value':'warn','lint:legacy-layout':'warn','lint:external-variable-undeclared':_0x1f9b8c(0x101),'lint:external-variable-no-value':_0x1f9b8c(0x101),'lint:env-host-from-base':'error','lint:env-from-base':_0x1f9b8c(0xc5),'lint:one-test-per-file':'warn','lint:shadows-dsl-function':_0x1f9b8c(0xc5),'lint:skip-outside-test':_0x1f9b8c(0x101),'lint:set-test-timeout-outside-test':_0x1f9b8c(0x101),'lint:wait-exceeds-test-budget':_0x1f9b8c(0xc5),'lint:filter-unknown-option':_0x1f9b8c(0x101),'lint:role-unknown-option':'error','validator:unknown-function':_0x1f9b8c(0x101)}},'env':{'shared':[]},'mcp':{'transport':_0x1f9b8c(0x8c)},'queue':{'enabled':!![],'concurrency':0x1},'schedules':[],'sandbox':{}};function _0x2985(_0x4761cc,_0x597cd8){_0x4761cc=_0x4761cc-0x83;var _0x4a2d5a=_0x4a2d();var _0x2985ac=_0x4a2d5a[_0x4761cc];if(_0x2985['TgVVDq']===undefined){var _0x2750d1=function(_0x3c6d54){var _0x19c97d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x22feab='',_0x4b5e81='';for(var _0x3d8b9c=0x0,_0x3c097d,_0x19bef5,_0x3d3973=0x0;_0x19bef5=_0x3c6d54['charAt'](_0x3d3973++);~_0x19bef5&&(_0x3c097d=_0x3d8b9c%0x4?_0x3c097d*0x40+_0x19bef5:_0x19bef5,_0x3d8b9c++%0x4)?_0x22feab+=String['fromCharCode'](0xff&_0x3c097d>>(-0x2*_0x3d8b9c&0x6)):0x0){_0x19bef5=_0x19c97d['indexOf'](_0x19bef5);}for(var _0x2607ce=0x0,_0x532205=_0x22feab['length'];_0x2607ce<_0x532205;_0x2607ce++){_0x4b5e81+='%'+('00'+_0x22feab['charCodeAt'](_0x2607ce)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4b5e81);};_0x2985['sTKsOG']=_0x2750d1,_0x2985['AuqVAV']={},_0x2985['TgVVDq']=!![];}var _0x546840=_0x4a2d5a[0x0],_0x2e0f38=_0x4761cc+_0x546840,_0xb6c70e=_0x2985['AuqVAV'][_0x2e0f38];return!_0xb6c70e?(_0x2985ac=_0x2985['sTKsOG'](_0x2985ac),_0x2985['AuqVAV'][_0x2e0f38]=_0x2985ac):_0x2985ac=_0xb6c70e,_0x2985ac;}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,
|
|
1
|
+
import { V as VirtualCredential, B as BoundingBox, I as ImageSize, F as FocusZoomRead, 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-DDp6Chwx.js';
|
|
2
|
+
export { f as ActionTimeout, g as CheckOptions, h as ClickOptions, i as CookieOptions, j as DriverPage, k as FillOptions, G as GotoOptions, H as HoverOptions, l as NavigationOptions, m as PressOptions, R as ReloadOptions, n as SelectOptions, o as Viewport, p as ViewportSize, q as WaitOptions, r as WaitState } from '../interfaces-DDp6Chwx.js';
|
|
3
3
|
import '@unotest/protocol';
|
|
4
4
|
import '../config/schema.js';
|
|
5
5
|
import 'zod';
|
|
@@ -37,6 +37,8 @@ interface FakeBehavior {
|
|
|
37
37
|
inputValueByDefault?: string;
|
|
38
38
|
/** Default isVisible() response. Default: true. */
|
|
39
39
|
isVisibleByDefault?: boolean;
|
|
40
|
+
/** Default viewportRatio() response. Default: 1 (wholly in view). */
|
|
41
|
+
viewportRatioByDefault?: number;
|
|
40
42
|
/** Default boundingBox() response. Default: a 100×20 box at the origin. */
|
|
41
43
|
boundingBoxByDefault?: BoundingBox | null;
|
|
42
44
|
/** Default isDisabled() response. Default: false. */
|
|
@@ -46,6 +48,8 @@ interface FakeBehavior {
|
|
|
46
48
|
imageSizeByDefault?: ImageSize | null;
|
|
47
49
|
/** Per-property computedStyle(loc, property) response. Default: "". */
|
|
48
50
|
computedStyleByProperty?: Record<string, string>;
|
|
51
|
+
/** focusZoomFields() response. Default: no fields, no viewport limits. */
|
|
52
|
+
focusZoomRead?: FocusZoomRead;
|
|
49
53
|
/** Default animations(loc) response. Default: none. */
|
|
50
54
|
animationsByDefault?: AnimationInfo[];
|
|
51
55
|
/** runningAnimations(loc) response, one per call in order; the last
|
|
@@ -62,6 +66,9 @@ interface FakeBehavior {
|
|
|
62
66
|
localStorage?: Record<string, string>;
|
|
63
67
|
/** Per-name cookie seed. */
|
|
64
68
|
cookies?: Record<string, string>;
|
|
69
|
+
/** What `documentCookie()` answers — the page's `document.cookie`.
|
|
70
|
+
* Default: "". */
|
|
71
|
+
documentCookie?: string;
|
|
65
72
|
/** Per-attribute default response for getAttribute(loc, name). */
|
|
66
73
|
attributesByDefault?: Record<string, string | null>;
|
|
67
74
|
/** Programmable response for inspectElement(loc). Keys are
|
|
@@ -76,6 +83,9 @@ interface FakeBehavior {
|
|
|
76
83
|
* when unspecified) for tests that exercise a format fallback. Default:
|
|
77
84
|
* the literal "fake-png"; tests that read dimensions seed a real PNG header. */
|
|
78
85
|
screenshotBytes?: Buffer | ((type: ScreenshotOptions["type"]) => Buffer);
|
|
86
|
+
/** What a page screenshot() throws instead of returning bytes — a
|
|
87
|
+
* capture that ran out of time, or one that failed otherwise. */
|
|
88
|
+
screenshotError?: unknown;
|
|
79
89
|
/** What a context's close() waits on — a promise that never settles is
|
|
80
90
|
* a browser that never lets the context go. Absent: closes at once. */
|
|
81
91
|
contextCloseResult?: Promise<void>;
|
|
@@ -108,6 +118,10 @@ interface FakeBehavior {
|
|
|
108
118
|
serviceWorkers?: ReadonlyArray<string>;
|
|
109
119
|
/** What the page's hasBackdropFilter() says. Default: false. */
|
|
110
120
|
backdropFilter?: boolean;
|
|
121
|
+
/** Every tab asks "Leave site?" when `closePage({beforeUnload})` closes
|
|
122
|
+
* it — a page with a `beforeunload` handler and a user gesture.
|
|
123
|
+
* Default: false — the tab closes without asking. */
|
|
124
|
+
beforeUnloadPrompt?: boolean;
|
|
111
125
|
}
|
|
112
126
|
declare class FakeWebDriver implements WebDriver {
|
|
113
127
|
private readonly behavior;
|