Static ReadonlyEncoded
Encoded : { version : 1 ; states : readonly { name : string ; steps : readonly ( | { selector : string ; kind : "waitFor" ; state ?: "visible" | "hidden" | "attached" | "detached" ; minCount ?: number ; optional ?: boolean ; timeoutMs ?: number ; settleMs ?: number ; } | { kind : "wait" ; ms : number ; optional ?: boolean ; timeoutMs ?: number ; settleMs ?: number ; } | { selector : string ; kind : "click" ; optional ?: boolean ; timeoutMs ?: number ; settleMs ?: number ; nth ?: number ; } | { selector : string ; kind : "fill" ; value : string ; optional ?: boolean ; timeoutMs ?: number ; settleMs ?: number ; } | { values : readonly string [] ; selector : string ; kind : "select" ; optional ?: boolean ; timeoutMs ?: number ; settleMs ?: number ; } | { kind : "press" ; key : string ; selector ?: string ; optional ?: boolean ; timeoutMs ?: number ; settleMs ?: number ; } | { kind : "request" ; path : string ; method : "GET" | "POST" | "PUT" | "PATCH" | "DELETE" ; optional ?: boolean ; timeoutMs ?: number ; settleMs ?: number ; json ?: unknown ; headers ?: { readonly [ key : string ]: string } ; expectStatus ?: number ; } | { kind : "reload" ; optional ?: boolean ; timeoutMs ?: number ; settleMs ?: number ; waitUntil ?: "load" | "domcontentloaded" | "networkidle" | "commit" ; } )[] ; timeoutMs ?: number ; description ?: string ; url ?: string ; extends ?: string ; precondition ?: string ; preconditionTimeoutMs ?: number ; viewports ?: readonly string [] ; allowVideoReplay ?: boolean ; } [] ; }
Inherited from S.Class<StatesFile>("StatesFile")({
version: S.Literal(1),
states: S.Array(CaptureState),
}).Encoded
Defined in node_modules/@effect/schema/dist/dts/Schema.d.ts:62
The on-disk states file.
versionis required rather than defaulted: the step vocabulary becomes a public JSON format on files on other people's disks the day it ships, and a discriminant is what lets a v2 rename a kind without guessing at an unversioned file's intent.