doc-detective-common 4.23.0 → 4.24.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/dist/index.cjs +42884 -10374
- package/dist/schemas/schemas.json +42884 -10374
- package/dist/types/generated/step_v3.d.ts +453 -1
- package/dist/types/generated/step_v3.d.ts.map +1 -1
- package/dist/types/generated/swipe_v3.d.ts +288 -0
- package/dist/types/generated/swipe_v3.d.ts.map +1 -0
- package/dist/types/generated/swipe_v3.js +7 -0
- package/dist/types/generated/swipe_v3.js.map +1 -0
- package/dist/types/generated/test_v3.d.ts +1934 -966
- package/dist/types/generated/test_v3.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -108,7 +108,7 @@ export type Routing3 = {
|
|
|
108
108
|
/**
|
|
109
109
|
* A step in a test.
|
|
110
110
|
*/
|
|
111
|
-
export type Step = (Common & CheckLink) | (Common1 & Click) | (Common2 & Find) | (Common3 & GoTo) | (Common4 & HttpRequest) | (Common5 & RunShell) | (Common6 & RunCode) | (Common7 & RunBrowserScript) | (Common8 & Type) | (Common9 & Screenshot) | (Common10 & SaveCookie) | (Common11 & Record) | (Common12 & StopRecord) | (Common13 & CloseSurface) | (Common14 & StartSurface) | (Common15 & LoadVariables) | (Common16 & DragAndDrop) | (Common17 & LoadCookie) | (Common18 & Wait);
|
|
111
|
+
export type Step = (Common & CheckLink) | (Common1 & Click) | (Common2 & Find) | (Common3 & GoTo) | (Common4 & HttpRequest) | (Common5 & RunShell) | (Common6 & RunCode) | (Common7 & RunBrowserScript) | (Common8 & Type) | (Common9 & Screenshot) | (Common10 & SaveCookie) | (Common11 & Record) | (Common12 & StopRecord) | (Common13 & CloseSurface) | (Common14 & StartSurface) | (Common15 & LoadVariables) | (Common16 & DragAndDrop) | (Common17 & LoadCookie) | (Common18 & Swipe) | (Common19 & Wait);
|
|
112
112
|
/**
|
|
113
113
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
114
114
|
*/
|
|
@@ -2043,6 +2043,162 @@ export type Routing79 = {
|
|
|
2043
2043
|
} | {
|
|
2044
2044
|
[k: string]: unknown;
|
|
2045
2045
|
};
|
|
2046
|
+
/**
|
|
2047
|
+
* Swipe (or scroll) a surface in a direction or between two points. The direction is the virtual finger's motion: swiping up moves content up, revealing content further down the page. Works on app and browser surfaces.
|
|
2048
|
+
*/
|
|
2049
|
+
export type Swipe1 = SwipeSimple | SwipeDirectional | SwipePointToPoint;
|
|
2050
|
+
/**
|
|
2051
|
+
* Direction the virtual finger moves. `up` reveals content below; `left` reveals content to the right (for example, the next carousel card).
|
|
2052
|
+
*/
|
|
2053
|
+
export type SwipeSimple = "up" | "down" | "left" | "right";
|
|
2054
|
+
/**
|
|
2055
|
+
* Direction the virtual finger moves. `up` reveals content below; `left` reveals content to the right (for example, the next carousel card).
|
|
2056
|
+
*/
|
|
2057
|
+
export type SwipeSimple1 = "up" | "down" | "left" | "right";
|
|
2058
|
+
/**
|
|
2059
|
+
* Browser engine keyword. Targets that browser. Steps that can only ever act on a browser (not a background process) restrict the bare-string form to this enum, so a process name here is rejected at validation time instead of failing at runtime.
|
|
2060
|
+
*/
|
|
2061
|
+
export type SurfaceByBrowserEngine5 = "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
2062
|
+
/**
|
|
2063
|
+
* Which window to act on. Omit to use the active window.
|
|
2064
|
+
*/
|
|
2065
|
+
export type WindowTabSelector16 = ByIndex20 | ByName20 | ByCriteria20;
|
|
2066
|
+
/**
|
|
2067
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
2068
|
+
*/
|
|
2069
|
+
export type ByIndex20 = number;
|
|
2070
|
+
/**
|
|
2071
|
+
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
2072
|
+
*/
|
|
2073
|
+
export type ByName20 = string;
|
|
2074
|
+
/**
|
|
2075
|
+
* Which tab to act on. Omit to use the active tab. Without `window`, the selector searches every tab in creation order — including tabs the page opened itself.
|
|
2076
|
+
*/
|
|
2077
|
+
export type WindowTabSelector17 = ByIndex21 | ByName21 | ByCriteria21;
|
|
2078
|
+
/**
|
|
2079
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
2080
|
+
*/
|
|
2081
|
+
export type ByIndex21 = number;
|
|
2082
|
+
/**
|
|
2083
|
+
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
2084
|
+
*/
|
|
2085
|
+
export type ByName21 = string;
|
|
2086
|
+
/**
|
|
2087
|
+
* Which app window to act on. Omit to use the active window. Apps have windows, no tabs.
|
|
2088
|
+
*/
|
|
2089
|
+
export type AppWindowSelector4 = ByIndex22 | ByName22 | ByCriteria22;
|
|
2090
|
+
/**
|
|
2091
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest (e.g. a dialog the app just opened).
|
|
2092
|
+
*/
|
|
2093
|
+
export type ByIndex22 = number;
|
|
2094
|
+
/**
|
|
2095
|
+
* Assigned window name. The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
2096
|
+
*/
|
|
2097
|
+
export type ByName22 = string;
|
|
2098
|
+
/**
|
|
2099
|
+
* Browser engine keyword. Targets that browser. Steps that can only ever act on a browser (not a background process) restrict the bare-string form to this enum, so a process name here is rejected at validation time instead of failing at runtime.
|
|
2100
|
+
*/
|
|
2101
|
+
export type SurfaceByBrowserEngine6 = "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
2102
|
+
/**
|
|
2103
|
+
* Which window to act on. Omit to use the active window.
|
|
2104
|
+
*/
|
|
2105
|
+
export type WindowTabSelector18 = ByIndex23 | ByName23 | ByCriteria23;
|
|
2106
|
+
/**
|
|
2107
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
2108
|
+
*/
|
|
2109
|
+
export type ByIndex23 = number;
|
|
2110
|
+
/**
|
|
2111
|
+
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
2112
|
+
*/
|
|
2113
|
+
export type ByName23 = string;
|
|
2114
|
+
/**
|
|
2115
|
+
* Which tab to act on. Omit to use the active tab. Without `window`, the selector searches every tab in creation order — including tabs the page opened itself.
|
|
2116
|
+
*/
|
|
2117
|
+
export type WindowTabSelector19 = ByIndex24 | ByName24 | ByCriteria24;
|
|
2118
|
+
/**
|
|
2119
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
2120
|
+
*/
|
|
2121
|
+
export type ByIndex24 = number;
|
|
2122
|
+
/**
|
|
2123
|
+
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
2124
|
+
*/
|
|
2125
|
+
export type ByName24 = string;
|
|
2126
|
+
/**
|
|
2127
|
+
* Which app window to act on. Omit to use the active window. Apps have windows, no tabs.
|
|
2128
|
+
*/
|
|
2129
|
+
export type AppWindowSelector5 = ByIndex25 | ByName25 | ByCriteria25;
|
|
2130
|
+
/**
|
|
2131
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest (e.g. a dialog the app just opened).
|
|
2132
|
+
*/
|
|
2133
|
+
export type ByIndex25 = number;
|
|
2134
|
+
/**
|
|
2135
|
+
* Assigned window name. The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
2136
|
+
*/
|
|
2137
|
+
export type ByName25 = string;
|
|
2138
|
+
/**
|
|
2139
|
+
* A condition expression, or an array of expressions combined with logical AND.
|
|
2140
|
+
*/
|
|
2141
|
+
export type Condition39 = string | [string, ...string[]];
|
|
2142
|
+
/**
|
|
2143
|
+
* A condition expression, or an array of expressions combined with logical AND.
|
|
2144
|
+
*/
|
|
2145
|
+
export type Condition40 = string | [string, ...string[]];
|
|
2146
|
+
/**
|
|
2147
|
+
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2148
|
+
*/
|
|
2149
|
+
export type Routing80 = {
|
|
2150
|
+
[k: string]: unknown;
|
|
2151
|
+
} | {
|
|
2152
|
+
[k: string]: unknown;
|
|
2153
|
+
} | {
|
|
2154
|
+
[k: string]: unknown;
|
|
2155
|
+
} | {
|
|
2156
|
+
[k: string]: unknown;
|
|
2157
|
+
} | {
|
|
2158
|
+
[k: string]: unknown;
|
|
2159
|
+
};
|
|
2160
|
+
/**
|
|
2161
|
+
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2162
|
+
*/
|
|
2163
|
+
export type Routing81 = {
|
|
2164
|
+
[k: string]: unknown;
|
|
2165
|
+
} | {
|
|
2166
|
+
[k: string]: unknown;
|
|
2167
|
+
} | {
|
|
2168
|
+
[k: string]: unknown;
|
|
2169
|
+
} | {
|
|
2170
|
+
[k: string]: unknown;
|
|
2171
|
+
} | {
|
|
2172
|
+
[k: string]: unknown;
|
|
2173
|
+
};
|
|
2174
|
+
/**
|
|
2175
|
+
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2176
|
+
*/
|
|
2177
|
+
export type Routing82 = {
|
|
2178
|
+
[k: string]: unknown;
|
|
2179
|
+
} | {
|
|
2180
|
+
[k: string]: unknown;
|
|
2181
|
+
} | {
|
|
2182
|
+
[k: string]: unknown;
|
|
2183
|
+
} | {
|
|
2184
|
+
[k: string]: unknown;
|
|
2185
|
+
} | {
|
|
2186
|
+
[k: string]: unknown;
|
|
2187
|
+
};
|
|
2188
|
+
/**
|
|
2189
|
+
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2190
|
+
*/
|
|
2191
|
+
export type Routing83 = {
|
|
2192
|
+
[k: string]: unknown;
|
|
2193
|
+
} | {
|
|
2194
|
+
[k: string]: unknown;
|
|
2195
|
+
} | {
|
|
2196
|
+
[k: string]: unknown;
|
|
2197
|
+
} | {
|
|
2198
|
+
[k: string]: unknown;
|
|
2199
|
+
} | {
|
|
2200
|
+
[k: string]: unknown;
|
|
2201
|
+
};
|
|
2046
2202
|
/**
|
|
2047
2203
|
* Pause (in milliseconds) before performing the next action.
|
|
2048
2204
|
*/
|
|
@@ -2059,19 +2215,19 @@ export type OpenApi1 = {
|
|
|
2059
2215
|
/**
|
|
2060
2216
|
* A step in a test.
|
|
2061
2217
|
*/
|
|
2062
|
-
export type Step1 = (
|
|
2218
|
+
export type Step1 = (Common20 & CheckLink2) | (Common21 & Click2) | (Common22 & Find2) | (Common23 & GoTo2) | (Common24 & HttpRequest2) | (Common25 & RunShell2) | (Common26 & RunCode2) | (Common27 & RunBrowserScript2) | (Common28 & Type1) | (Common29 & Screenshot2) | (Common30 & SaveCookie2) | (Common31 & Record2) | (Common32 & StopRecord2) | (Common33 & CloseSurface2) | (Common34 & StartSurface2) | (Common35 & LoadVariables2) | (Common36 & DragAndDrop2) | (Common37 & LoadCookie2) | (Common38 & Swipe2) | (Common39 & Wait2);
|
|
2063
2219
|
/**
|
|
2064
2220
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
2065
2221
|
*/
|
|
2066
|
-
export type
|
|
2222
|
+
export type Condition41 = string | [string, ...string[]];
|
|
2067
2223
|
/**
|
|
2068
2224
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
2069
2225
|
*/
|
|
2070
|
-
export type
|
|
2226
|
+
export type Condition42 = string | [string, ...string[]];
|
|
2071
2227
|
/**
|
|
2072
2228
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2073
2229
|
*/
|
|
2074
|
-
export type
|
|
2230
|
+
export type Routing84 = {
|
|
2075
2231
|
[k: string]: unknown;
|
|
2076
2232
|
} | {
|
|
2077
2233
|
[k: string]: unknown;
|
|
@@ -2085,7 +2241,7 @@ export type Routing80 = {
|
|
|
2085
2241
|
/**
|
|
2086
2242
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2087
2243
|
*/
|
|
2088
|
-
export type
|
|
2244
|
+
export type Routing85 = {
|
|
2089
2245
|
[k: string]: unknown;
|
|
2090
2246
|
} | {
|
|
2091
2247
|
[k: string]: unknown;
|
|
@@ -2099,7 +2255,7 @@ export type Routing81 = {
|
|
|
2099
2255
|
/**
|
|
2100
2256
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2101
2257
|
*/
|
|
2102
|
-
export type
|
|
2258
|
+
export type Routing86 = {
|
|
2103
2259
|
[k: string]: unknown;
|
|
2104
2260
|
} | {
|
|
2105
2261
|
[k: string]: unknown;
|
|
@@ -2113,7 +2269,7 @@ export type Routing82 = {
|
|
|
2113
2269
|
/**
|
|
2114
2270
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2115
2271
|
*/
|
|
2116
|
-
export type
|
|
2272
|
+
export type Routing87 = {
|
|
2117
2273
|
[k: string]: unknown;
|
|
2118
2274
|
} | {
|
|
2119
2275
|
[k: string]: unknown;
|
|
@@ -2137,15 +2293,15 @@ export type RequestHeadersString1 = string;
|
|
|
2137
2293
|
/**
|
|
2138
2294
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
2139
2295
|
*/
|
|
2140
|
-
export type
|
|
2296
|
+
export type Condition43 = string | [string, ...string[]];
|
|
2141
2297
|
/**
|
|
2142
2298
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
2143
2299
|
*/
|
|
2144
|
-
export type
|
|
2300
|
+
export type Condition44 = string | [string, ...string[]];
|
|
2145
2301
|
/**
|
|
2146
2302
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2147
2303
|
*/
|
|
2148
|
-
export type
|
|
2304
|
+
export type Routing88 = {
|
|
2149
2305
|
[k: string]: unknown;
|
|
2150
2306
|
} | {
|
|
2151
2307
|
[k: string]: unknown;
|
|
@@ -2159,7 +2315,7 @@ export type Routing84 = {
|
|
|
2159
2315
|
/**
|
|
2160
2316
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2161
2317
|
*/
|
|
2162
|
-
export type
|
|
2318
|
+
export type Routing89 = {
|
|
2163
2319
|
[k: string]: unknown;
|
|
2164
2320
|
} | {
|
|
2165
2321
|
[k: string]: unknown;
|
|
@@ -2173,7 +2329,7 @@ export type Routing85 = {
|
|
|
2173
2329
|
/**
|
|
2174
2330
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2175
2331
|
*/
|
|
2176
|
-
export type
|
|
2332
|
+
export type Routing90 = {
|
|
2177
2333
|
[k: string]: unknown;
|
|
2178
2334
|
} | {
|
|
2179
2335
|
[k: string]: unknown;
|
|
@@ -2187,7 +2343,7 @@ export type Routing86 = {
|
|
|
2187
2343
|
/**
|
|
2188
2344
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2189
2345
|
*/
|
|
2190
|
-
export type
|
|
2346
|
+
export type Routing91 = {
|
|
2191
2347
|
[k: string]: unknown;
|
|
2192
2348
|
} | {
|
|
2193
2349
|
[k: string]: unknown;
|
|
@@ -2224,15 +2380,15 @@ export type ClickElementDetailed1 = {
|
|
|
2224
2380
|
/**
|
|
2225
2381
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
2226
2382
|
*/
|
|
2227
|
-
export type
|
|
2383
|
+
export type Condition45 = string | [string, ...string[]];
|
|
2228
2384
|
/**
|
|
2229
2385
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
2230
2386
|
*/
|
|
2231
|
-
export type
|
|
2387
|
+
export type Condition46 = string | [string, ...string[]];
|
|
2232
2388
|
/**
|
|
2233
2389
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2234
2390
|
*/
|
|
2235
|
-
export type
|
|
2391
|
+
export type Routing92 = {
|
|
2236
2392
|
[k: string]: unknown;
|
|
2237
2393
|
} | {
|
|
2238
2394
|
[k: string]: unknown;
|
|
@@ -2246,7 +2402,7 @@ export type Routing88 = {
|
|
|
2246
2402
|
/**
|
|
2247
2403
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2248
2404
|
*/
|
|
2249
|
-
export type
|
|
2405
|
+
export type Routing93 = {
|
|
2250
2406
|
[k: string]: unknown;
|
|
2251
2407
|
} | {
|
|
2252
2408
|
[k: string]: unknown;
|
|
@@ -2260,7 +2416,7 @@ export type Routing89 = {
|
|
|
2260
2416
|
/**
|
|
2261
2417
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2262
2418
|
*/
|
|
2263
|
-
export type
|
|
2419
|
+
export type Routing94 = {
|
|
2264
2420
|
[k: string]: unknown;
|
|
2265
2421
|
} | {
|
|
2266
2422
|
[k: string]: unknown;
|
|
@@ -2274,7 +2430,7 @@ export type Routing90 = {
|
|
|
2274
2430
|
/**
|
|
2275
2431
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2276
2432
|
*/
|
|
2277
|
-
export type
|
|
2433
|
+
export type Routing95 = {
|
|
2278
2434
|
[k: string]: unknown;
|
|
2279
2435
|
} | {
|
|
2280
2436
|
[k: string]: unknown;
|
|
@@ -2311,15 +2467,15 @@ export type FindElementDetailed1 = {
|
|
|
2311
2467
|
/**
|
|
2312
2468
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
2313
2469
|
*/
|
|
2314
|
-
export type
|
|
2470
|
+
export type Condition47 = string | [string, ...string[]];
|
|
2315
2471
|
/**
|
|
2316
2472
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
2317
2473
|
*/
|
|
2318
|
-
export type
|
|
2474
|
+
export type Condition48 = string | [string, ...string[]];
|
|
2319
2475
|
/**
|
|
2320
2476
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2321
2477
|
*/
|
|
2322
|
-
export type
|
|
2478
|
+
export type Routing96 = {
|
|
2323
2479
|
[k: string]: unknown;
|
|
2324
2480
|
} | {
|
|
2325
2481
|
[k: string]: unknown;
|
|
@@ -2333,7 +2489,7 @@ export type Routing92 = {
|
|
|
2333
2489
|
/**
|
|
2334
2490
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2335
2491
|
*/
|
|
2336
|
-
export type
|
|
2492
|
+
export type Routing97 = {
|
|
2337
2493
|
[k: string]: unknown;
|
|
2338
2494
|
} | {
|
|
2339
2495
|
[k: string]: unknown;
|
|
@@ -2347,7 +2503,7 @@ export type Routing93 = {
|
|
|
2347
2503
|
/**
|
|
2348
2504
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2349
2505
|
*/
|
|
2350
|
-
export type
|
|
2506
|
+
export type Routing98 = {
|
|
2351
2507
|
[k: string]: unknown;
|
|
2352
2508
|
} | {
|
|
2353
2509
|
[k: string]: unknown;
|
|
@@ -2361,7 +2517,7 @@ export type Routing94 = {
|
|
|
2361
2517
|
/**
|
|
2362
2518
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2363
2519
|
*/
|
|
2364
|
-
export type
|
|
2520
|
+
export type Routing99 = {
|
|
2365
2521
|
[k: string]: unknown;
|
|
2366
2522
|
} | {
|
|
2367
2523
|
[k: string]: unknown;
|
|
@@ -2384,7 +2540,7 @@ export type GoToURLDetailed1 = {
|
|
|
2384
2540
|
/**
|
|
2385
2541
|
* The browser window/tab to navigate. Omit to navigate the active tab. With `newTab`, selects the window the tab opens in.
|
|
2386
2542
|
*/
|
|
2387
|
-
surface?:
|
|
2543
|
+
surface?: SurfaceByBrowserEngine7 | BrowserSurface10;
|
|
2388
2544
|
/**
|
|
2389
2545
|
* Open the URL in a new tab of the target window and make it active. `true` opens an anonymous tab; a string (or `{ name }`) names the tab so later steps can select it with a `tab` selector. `false` disables. Mutually exclusive with `newWindow`.
|
|
2390
2546
|
*/
|
|
@@ -2460,43 +2616,43 @@ export type GoToURLDetailed1 = {
|
|
|
2460
2616
|
/**
|
|
2461
2617
|
* Browser engine keyword. Targets that browser. Steps that can only ever act on a browser (not a background process) restrict the bare-string form to this enum, so a process name here is rejected at validation time instead of failing at runtime.
|
|
2462
2618
|
*/
|
|
2463
|
-
export type
|
|
2619
|
+
export type SurfaceByBrowserEngine7 = "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
2464
2620
|
/**
|
|
2465
2621
|
* Which window to act on. Omit to use the active window.
|
|
2466
2622
|
*/
|
|
2467
|
-
export type
|
|
2623
|
+
export type WindowTabSelector20 = ByIndex26 | ByName26 | ByCriteria26;
|
|
2468
2624
|
/**
|
|
2469
2625
|
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
2470
2626
|
*/
|
|
2471
|
-
export type
|
|
2627
|
+
export type ByIndex26 = number;
|
|
2472
2628
|
/**
|
|
2473
2629
|
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
2474
2630
|
*/
|
|
2475
|
-
export type
|
|
2631
|
+
export type ByName26 = string;
|
|
2476
2632
|
/**
|
|
2477
2633
|
* Which tab to act on. Omit to use the active tab. Without `window`, the selector searches every tab in creation order — including tabs the page opened itself.
|
|
2478
2634
|
*/
|
|
2479
|
-
export type
|
|
2635
|
+
export type WindowTabSelector21 = ByIndex27 | ByName27 | ByCriteria27;
|
|
2480
2636
|
/**
|
|
2481
2637
|
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
2482
2638
|
*/
|
|
2483
|
-
export type
|
|
2639
|
+
export type ByIndex27 = number;
|
|
2484
2640
|
/**
|
|
2485
2641
|
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
2486
2642
|
*/
|
|
2487
|
-
export type
|
|
2643
|
+
export type ByName27 = string;
|
|
2488
2644
|
/**
|
|
2489
2645
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
2490
2646
|
*/
|
|
2491
|
-
export type
|
|
2647
|
+
export type Condition49 = string | [string, ...string[]];
|
|
2492
2648
|
/**
|
|
2493
2649
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
2494
2650
|
*/
|
|
2495
|
-
export type
|
|
2651
|
+
export type Condition50 = string | [string, ...string[]];
|
|
2496
2652
|
/**
|
|
2497
2653
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2498
2654
|
*/
|
|
2499
|
-
export type
|
|
2655
|
+
export type Routing100 = {
|
|
2500
2656
|
[k: string]: unknown;
|
|
2501
2657
|
} | {
|
|
2502
2658
|
[k: string]: unknown;
|
|
@@ -2510,7 +2666,7 @@ export type Routing96 = {
|
|
|
2510
2666
|
/**
|
|
2511
2667
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2512
2668
|
*/
|
|
2513
|
-
export type
|
|
2669
|
+
export type Routing101 = {
|
|
2514
2670
|
[k: string]: unknown;
|
|
2515
2671
|
} | {
|
|
2516
2672
|
[k: string]: unknown;
|
|
@@ -2524,7 +2680,7 @@ export type Routing97 = {
|
|
|
2524
2680
|
/**
|
|
2525
2681
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2526
2682
|
*/
|
|
2527
|
-
export type
|
|
2683
|
+
export type Routing102 = {
|
|
2528
2684
|
[k: string]: unknown;
|
|
2529
2685
|
} | {
|
|
2530
2686
|
[k: string]: unknown;
|
|
@@ -2538,7 +2694,7 @@ export type Routing98 = {
|
|
|
2538
2694
|
/**
|
|
2539
2695
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2540
2696
|
*/
|
|
2541
|
-
export type
|
|
2697
|
+
export type Routing103 = {
|
|
2542
2698
|
[k: string]: unknown;
|
|
2543
2699
|
} | {
|
|
2544
2700
|
[k: string]: unknown;
|
|
@@ -2565,15 +2721,15 @@ export type HTTPRequestDetailed1 = {
|
|
|
2565
2721
|
/**
|
|
2566
2722
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
2567
2723
|
*/
|
|
2568
|
-
export type
|
|
2724
|
+
export type Condition51 = string | [string, ...string[]];
|
|
2569
2725
|
/**
|
|
2570
2726
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
2571
2727
|
*/
|
|
2572
|
-
export type
|
|
2728
|
+
export type Condition52 = string | [string, ...string[]];
|
|
2573
2729
|
/**
|
|
2574
2730
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2575
2731
|
*/
|
|
2576
|
-
export type
|
|
2732
|
+
export type Routing104 = {
|
|
2577
2733
|
[k: string]: unknown;
|
|
2578
2734
|
} | {
|
|
2579
2735
|
[k: string]: unknown;
|
|
@@ -2587,7 +2743,7 @@ export type Routing100 = {
|
|
|
2587
2743
|
/**
|
|
2588
2744
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2589
2745
|
*/
|
|
2590
|
-
export type
|
|
2746
|
+
export type Routing105 = {
|
|
2591
2747
|
[k: string]: unknown;
|
|
2592
2748
|
} | {
|
|
2593
2749
|
[k: string]: unknown;
|
|
@@ -2601,7 +2757,7 @@ export type Routing101 = {
|
|
|
2601
2757
|
/**
|
|
2602
2758
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2603
2759
|
*/
|
|
2604
|
-
export type
|
|
2760
|
+
export type Routing106 = {
|
|
2605
2761
|
[k: string]: unknown;
|
|
2606
2762
|
} | {
|
|
2607
2763
|
[k: string]: unknown;
|
|
@@ -2615,7 +2771,7 @@ export type Routing102 = {
|
|
|
2615
2771
|
/**
|
|
2616
2772
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2617
2773
|
*/
|
|
2618
|
-
export type
|
|
2774
|
+
export type Routing107 = {
|
|
2619
2775
|
[k: string]: unknown;
|
|
2620
2776
|
} | {
|
|
2621
2777
|
[k: string]: unknown;
|
|
@@ -2637,15 +2793,15 @@ export type RunShellCommandSimple1 = string;
|
|
|
2637
2793
|
/**
|
|
2638
2794
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
2639
2795
|
*/
|
|
2640
|
-
export type
|
|
2796
|
+
export type Condition53 = string | [string, ...string[]];
|
|
2641
2797
|
/**
|
|
2642
2798
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
2643
2799
|
*/
|
|
2644
|
-
export type
|
|
2800
|
+
export type Condition54 = string | [string, ...string[]];
|
|
2645
2801
|
/**
|
|
2646
2802
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2647
2803
|
*/
|
|
2648
|
-
export type
|
|
2804
|
+
export type Routing108 = {
|
|
2649
2805
|
[k: string]: unknown;
|
|
2650
2806
|
} | {
|
|
2651
2807
|
[k: string]: unknown;
|
|
@@ -2659,7 +2815,7 @@ export type Routing104 = {
|
|
|
2659
2815
|
/**
|
|
2660
2816
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2661
2817
|
*/
|
|
2662
|
-
export type
|
|
2818
|
+
export type Routing109 = {
|
|
2663
2819
|
[k: string]: unknown;
|
|
2664
2820
|
} | {
|
|
2665
2821
|
[k: string]: unknown;
|
|
@@ -2673,7 +2829,7 @@ export type Routing105 = {
|
|
|
2673
2829
|
/**
|
|
2674
2830
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2675
2831
|
*/
|
|
2676
|
-
export type
|
|
2832
|
+
export type Routing110 = {
|
|
2677
2833
|
[k: string]: unknown;
|
|
2678
2834
|
} | {
|
|
2679
2835
|
[k: string]: unknown;
|
|
@@ -2687,7 +2843,7 @@ export type Routing106 = {
|
|
|
2687
2843
|
/**
|
|
2688
2844
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2689
2845
|
*/
|
|
2690
|
-
export type
|
|
2846
|
+
export type Routing111 = {
|
|
2691
2847
|
[k: string]: unknown;
|
|
2692
2848
|
} | {
|
|
2693
2849
|
[k: string]: unknown;
|
|
@@ -2705,15 +2861,15 @@ export type RunCode3 = RunCodeDetailed1;
|
|
|
2705
2861
|
/**
|
|
2706
2862
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
2707
2863
|
*/
|
|
2708
|
-
export type
|
|
2864
|
+
export type Condition55 = string | [string, ...string[]];
|
|
2709
2865
|
/**
|
|
2710
2866
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
2711
2867
|
*/
|
|
2712
|
-
export type
|
|
2868
|
+
export type Condition56 = string | [string, ...string[]];
|
|
2713
2869
|
/**
|
|
2714
2870
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2715
2871
|
*/
|
|
2716
|
-
export type
|
|
2872
|
+
export type Routing112 = {
|
|
2717
2873
|
[k: string]: unknown;
|
|
2718
2874
|
} | {
|
|
2719
2875
|
[k: string]: unknown;
|
|
@@ -2727,7 +2883,7 @@ export type Routing108 = {
|
|
|
2727
2883
|
/**
|
|
2728
2884
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2729
2885
|
*/
|
|
2730
|
-
export type
|
|
2886
|
+
export type Routing113 = {
|
|
2731
2887
|
[k: string]: unknown;
|
|
2732
2888
|
} | {
|
|
2733
2889
|
[k: string]: unknown;
|
|
@@ -2741,7 +2897,7 @@ export type Routing109 = {
|
|
|
2741
2897
|
/**
|
|
2742
2898
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2743
2899
|
*/
|
|
2744
|
-
export type
|
|
2900
|
+
export type Routing114 = {
|
|
2745
2901
|
[k: string]: unknown;
|
|
2746
2902
|
} | {
|
|
2747
2903
|
[k: string]: unknown;
|
|
@@ -2755,7 +2911,7 @@ export type Routing110 = {
|
|
|
2755
2911
|
/**
|
|
2756
2912
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2757
2913
|
*/
|
|
2758
|
-
export type
|
|
2914
|
+
export type Routing115 = {
|
|
2759
2915
|
[k: string]: unknown;
|
|
2760
2916
|
} | {
|
|
2761
2917
|
[k: string]: unknown;
|
|
@@ -2777,43 +2933,43 @@ export type RunBrowserScriptSimple1 = string;
|
|
|
2777
2933
|
/**
|
|
2778
2934
|
* Browser engine keyword. Targets that browser. Steps that can only ever act on a browser (not a background process) restrict the bare-string form to this enum, so a process name here is rejected at validation time instead of failing at runtime.
|
|
2779
2935
|
*/
|
|
2780
|
-
export type
|
|
2936
|
+
export type SurfaceByBrowserEngine8 = "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
2781
2937
|
/**
|
|
2782
2938
|
* Which window to act on. Omit to use the active window.
|
|
2783
2939
|
*/
|
|
2784
|
-
export type
|
|
2940
|
+
export type WindowTabSelector22 = ByIndex28 | ByName28 | ByCriteria28;
|
|
2785
2941
|
/**
|
|
2786
2942
|
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
2787
2943
|
*/
|
|
2788
|
-
export type
|
|
2944
|
+
export type ByIndex28 = number;
|
|
2789
2945
|
/**
|
|
2790
2946
|
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
2791
2947
|
*/
|
|
2792
|
-
export type
|
|
2948
|
+
export type ByName28 = string;
|
|
2793
2949
|
/**
|
|
2794
2950
|
* Which tab to act on. Omit to use the active tab. Without `window`, the selector searches every tab in creation order — including tabs the page opened itself.
|
|
2795
2951
|
*/
|
|
2796
|
-
export type
|
|
2952
|
+
export type WindowTabSelector23 = ByIndex29 | ByName29 | ByCriteria29;
|
|
2797
2953
|
/**
|
|
2798
2954
|
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
2799
2955
|
*/
|
|
2800
|
-
export type
|
|
2956
|
+
export type ByIndex29 = number;
|
|
2801
2957
|
/**
|
|
2802
2958
|
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
2803
2959
|
*/
|
|
2804
|
-
export type
|
|
2960
|
+
export type ByName29 = string;
|
|
2805
2961
|
/**
|
|
2806
2962
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
2807
2963
|
*/
|
|
2808
|
-
export type
|
|
2964
|
+
export type Condition57 = string | [string, ...string[]];
|
|
2809
2965
|
/**
|
|
2810
2966
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
2811
2967
|
*/
|
|
2812
|
-
export type
|
|
2968
|
+
export type Condition58 = string | [string, ...string[]];
|
|
2813
2969
|
/**
|
|
2814
2970
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2815
2971
|
*/
|
|
2816
|
-
export type
|
|
2972
|
+
export type Routing116 = {
|
|
2817
2973
|
[k: string]: unknown;
|
|
2818
2974
|
} | {
|
|
2819
2975
|
[k: string]: unknown;
|
|
@@ -2827,7 +2983,7 @@ export type Routing112 = {
|
|
|
2827
2983
|
/**
|
|
2828
2984
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2829
2985
|
*/
|
|
2830
|
-
export type
|
|
2986
|
+
export type Routing117 = {
|
|
2831
2987
|
[k: string]: unknown;
|
|
2832
2988
|
} | {
|
|
2833
2989
|
[k: string]: unknown;
|
|
@@ -2841,7 +2997,7 @@ export type Routing113 = {
|
|
|
2841
2997
|
/**
|
|
2842
2998
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2843
2999
|
*/
|
|
2844
|
-
export type
|
|
3000
|
+
export type Routing118 = {
|
|
2845
3001
|
[k: string]: unknown;
|
|
2846
3002
|
} | {
|
|
2847
3003
|
[k: string]: unknown;
|
|
@@ -2855,7 +3011,7 @@ export type Routing114 = {
|
|
|
2855
3011
|
/**
|
|
2856
3012
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
2857
3013
|
*/
|
|
2858
|
-
export type
|
|
3014
|
+
export type Routing119 = {
|
|
2859
3015
|
[k: string]: unknown;
|
|
2860
3016
|
} | {
|
|
2861
3017
|
[k: string]: unknown;
|
|
@@ -2927,7 +3083,7 @@ export type TypeKeysSimple3 = string | string[];
|
|
|
2927
3083
|
/**
|
|
2928
3084
|
* The surface a step acts on. Omit to act on the active surface. Supports background processes, browser windows/tabs, and native app windows.
|
|
2929
3085
|
*/
|
|
2930
|
-
export type Surface3 = SurfaceByName3 | ProcessSurface3 |
|
|
3086
|
+
export type Surface3 = SurfaceByName3 | ProcessSurface3 | BrowserSurface12 | AppSurface6;
|
|
2931
3087
|
/**
|
|
2932
3088
|
* Name of the surface. A browser engine keyword (chrome|firefox|safari|webkit|edge) targets that browser; any other string names a background process. To target a browser window or tab, use the object form ({ "browser": …, "window": …, "tab": … }) — a plain string is never a window/tab name.
|
|
2933
3089
|
*/
|
|
@@ -2935,39 +3091,39 @@ export type SurfaceByName3 = string;
|
|
|
2935
3091
|
/**
|
|
2936
3092
|
* Which window to act on. Omit to use the active window.
|
|
2937
3093
|
*/
|
|
2938
|
-
export type
|
|
3094
|
+
export type WindowTabSelector24 = ByIndex30 | ByName30 | ByCriteria30;
|
|
2939
3095
|
/**
|
|
2940
3096
|
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
2941
3097
|
*/
|
|
2942
|
-
export type
|
|
3098
|
+
export type ByIndex30 = number;
|
|
2943
3099
|
/**
|
|
2944
3100
|
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
2945
3101
|
*/
|
|
2946
|
-
export type
|
|
3102
|
+
export type ByName30 = string;
|
|
2947
3103
|
/**
|
|
2948
3104
|
* Which tab to act on. Omit to use the active tab. Without `window`, the selector searches every tab in creation order — including tabs the page opened itself.
|
|
2949
3105
|
*/
|
|
2950
|
-
export type
|
|
3106
|
+
export type WindowTabSelector25 = ByIndex31 | ByName31 | ByCriteria31;
|
|
2951
3107
|
/**
|
|
2952
3108
|
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
2953
3109
|
*/
|
|
2954
|
-
export type
|
|
3110
|
+
export type ByIndex31 = number;
|
|
2955
3111
|
/**
|
|
2956
3112
|
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
2957
3113
|
*/
|
|
2958
|
-
export type
|
|
3114
|
+
export type ByName31 = string;
|
|
2959
3115
|
/**
|
|
2960
3116
|
* Which app window to act on. Omit to use the active window. Apps have windows, no tabs.
|
|
2961
3117
|
*/
|
|
2962
|
-
export type
|
|
3118
|
+
export type AppWindowSelector6 = ByIndex32 | ByName32 | ByCriteria32;
|
|
2963
3119
|
/**
|
|
2964
3120
|
* Index in creation order. Negative counts from the end; `-1` is the newest (e.g. a dialog the app just opened).
|
|
2965
3121
|
*/
|
|
2966
|
-
export type
|
|
3122
|
+
export type ByIndex32 = number;
|
|
2967
3123
|
/**
|
|
2968
3124
|
* Assigned window name. The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
2969
3125
|
*/
|
|
2970
|
-
export type
|
|
3126
|
+
export type ByName32 = string;
|
|
2971
3127
|
/**
|
|
2972
3128
|
* Wait for a specific element to be present. At least one finding field must be specified.
|
|
2973
3129
|
*/
|
|
@@ -3007,15 +3163,15 @@ export type ElementCriteria4 = {
|
|
|
3007
3163
|
/**
|
|
3008
3164
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
3009
3165
|
*/
|
|
3010
|
-
export type
|
|
3166
|
+
export type Condition59 = string | [string, ...string[]];
|
|
3011
3167
|
/**
|
|
3012
3168
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
3013
3169
|
*/
|
|
3014
|
-
export type
|
|
3170
|
+
export type Condition60 = string | [string, ...string[]];
|
|
3015
3171
|
/**
|
|
3016
3172
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3017
3173
|
*/
|
|
3018
|
-
export type
|
|
3174
|
+
export type Routing120 = {
|
|
3019
3175
|
[k: string]: unknown;
|
|
3020
3176
|
} | {
|
|
3021
3177
|
[k: string]: unknown;
|
|
@@ -3029,7 +3185,7 @@ export type Routing116 = {
|
|
|
3029
3185
|
/**
|
|
3030
3186
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3031
3187
|
*/
|
|
3032
|
-
export type
|
|
3188
|
+
export type Routing121 = {
|
|
3033
3189
|
[k: string]: unknown;
|
|
3034
3190
|
} | {
|
|
3035
3191
|
[k: string]: unknown;
|
|
@@ -3043,7 +3199,7 @@ export type Routing117 = {
|
|
|
3043
3199
|
/**
|
|
3044
3200
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3045
3201
|
*/
|
|
3046
|
-
export type
|
|
3202
|
+
export type Routing122 = {
|
|
3047
3203
|
[k: string]: unknown;
|
|
3048
3204
|
} | {
|
|
3049
3205
|
[k: string]: unknown;
|
|
@@ -3057,7 +3213,7 @@ export type Routing118 = {
|
|
|
3057
3213
|
/**
|
|
3058
3214
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3059
3215
|
*/
|
|
3060
|
-
export type
|
|
3216
|
+
export type Routing123 = {
|
|
3061
3217
|
[k: string]: unknown;
|
|
3062
3218
|
} | {
|
|
3063
3219
|
[k: string]: unknown;
|
|
@@ -3080,43 +3236,43 @@ export type CaptureScreenshotDetailed1 = CaptureScreenshotFields1 & AppCapturesD
|
|
|
3080
3236
|
/**
|
|
3081
3237
|
* Browser engine keyword. Targets that browser. Steps that can only ever act on a browser (not a background process) restrict the bare-string form to this enum, so a process name here is rejected at validation time instead of failing at runtime.
|
|
3082
3238
|
*/
|
|
3083
|
-
export type
|
|
3239
|
+
export type SurfaceByBrowserEngine9 = "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
3084
3240
|
/**
|
|
3085
3241
|
* Which window to act on. Omit to use the active window.
|
|
3086
3242
|
*/
|
|
3087
|
-
export type
|
|
3243
|
+
export type WindowTabSelector26 = ByIndex33 | ByName33 | ByCriteria33;
|
|
3088
3244
|
/**
|
|
3089
3245
|
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
3090
3246
|
*/
|
|
3091
|
-
export type
|
|
3247
|
+
export type ByIndex33 = number;
|
|
3092
3248
|
/**
|
|
3093
3249
|
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
3094
3250
|
*/
|
|
3095
|
-
export type
|
|
3251
|
+
export type ByName33 = string;
|
|
3096
3252
|
/**
|
|
3097
3253
|
* Which tab to act on. Omit to use the active tab. Without `window`, the selector searches every tab in creation order — including tabs the page opened itself.
|
|
3098
3254
|
*/
|
|
3099
|
-
export type
|
|
3255
|
+
export type WindowTabSelector27 = ByIndex34 | ByName34 | ByCriteria34;
|
|
3100
3256
|
/**
|
|
3101
3257
|
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
3102
3258
|
*/
|
|
3103
|
-
export type
|
|
3259
|
+
export type ByIndex34 = number;
|
|
3104
3260
|
/**
|
|
3105
3261
|
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
3106
3262
|
*/
|
|
3107
|
-
export type
|
|
3263
|
+
export type ByName34 = string;
|
|
3108
3264
|
/**
|
|
3109
3265
|
* Which app window to act on. Omit to use the active window. Apps have windows, no tabs.
|
|
3110
3266
|
*/
|
|
3111
|
-
export type
|
|
3267
|
+
export type AppWindowSelector7 = ByIndex35 | ByName35 | ByCriteria35;
|
|
3112
3268
|
/**
|
|
3113
3269
|
* Index in creation order. Negative counts from the end; `-1` is the newest (e.g. a dialog the app just opened).
|
|
3114
3270
|
*/
|
|
3115
|
-
export type
|
|
3271
|
+
export type ByIndex35 = number;
|
|
3116
3272
|
/**
|
|
3117
3273
|
* Assigned window name. The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
3118
3274
|
*/
|
|
3119
|
-
export type
|
|
3275
|
+
export type ByName35 = string;
|
|
3120
3276
|
/**
|
|
3121
3277
|
* File path of the PNG file. Accepts absolute paths. If not specified, the file name is the ID of the step. If an `http(s)` URL is supplied, the remote image is downloaded and used as a read-only reference for comparison; the new capture is written to a local run-specific folder instead of being uploaded back to the URL.
|
|
3122
3278
|
*/
|
|
@@ -3150,15 +3306,15 @@ export type CaptureScreenshot1 = boolean;
|
|
|
3150
3306
|
/**
|
|
3151
3307
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
3152
3308
|
*/
|
|
3153
|
-
export type
|
|
3309
|
+
export type Condition61 = string | [string, ...string[]];
|
|
3154
3310
|
/**
|
|
3155
3311
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
3156
3312
|
*/
|
|
3157
|
-
export type
|
|
3313
|
+
export type Condition62 = string | [string, ...string[]];
|
|
3158
3314
|
/**
|
|
3159
3315
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3160
3316
|
*/
|
|
3161
|
-
export type
|
|
3317
|
+
export type Routing124 = {
|
|
3162
3318
|
[k: string]: unknown;
|
|
3163
3319
|
} | {
|
|
3164
3320
|
[k: string]: unknown;
|
|
@@ -3172,7 +3328,7 @@ export type Routing120 = {
|
|
|
3172
3328
|
/**
|
|
3173
3329
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3174
3330
|
*/
|
|
3175
|
-
export type
|
|
3331
|
+
export type Routing125 = {
|
|
3176
3332
|
[k: string]: unknown;
|
|
3177
3333
|
} | {
|
|
3178
3334
|
[k: string]: unknown;
|
|
@@ -3186,7 +3342,7 @@ export type Routing121 = {
|
|
|
3186
3342
|
/**
|
|
3187
3343
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3188
3344
|
*/
|
|
3189
|
-
export type
|
|
3345
|
+
export type Routing126 = {
|
|
3190
3346
|
[k: string]: unknown;
|
|
3191
3347
|
} | {
|
|
3192
3348
|
[k: string]: unknown;
|
|
@@ -3200,7 +3356,7 @@ export type Routing122 = {
|
|
|
3200
3356
|
/**
|
|
3201
3357
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3202
3358
|
*/
|
|
3203
|
-
export type
|
|
3359
|
+
export type Routing127 = {
|
|
3204
3360
|
[k: string]: unknown;
|
|
3205
3361
|
} | {
|
|
3206
3362
|
[k: string]: unknown;
|
|
@@ -3227,15 +3383,15 @@ export type SaveCookieDetailed1 = {
|
|
|
3227
3383
|
/**
|
|
3228
3384
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
3229
3385
|
*/
|
|
3230
|
-
export type
|
|
3386
|
+
export type Condition63 = string | [string, ...string[]];
|
|
3231
3387
|
/**
|
|
3232
3388
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
3233
3389
|
*/
|
|
3234
|
-
export type
|
|
3390
|
+
export type Condition64 = string | [string, ...string[]];
|
|
3235
3391
|
/**
|
|
3236
3392
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3237
3393
|
*/
|
|
3238
|
-
export type
|
|
3394
|
+
export type Routing128 = {
|
|
3239
3395
|
[k: string]: unknown;
|
|
3240
3396
|
} | {
|
|
3241
3397
|
[k: string]: unknown;
|
|
@@ -3249,7 +3405,7 @@ export type Routing124 = {
|
|
|
3249
3405
|
/**
|
|
3250
3406
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3251
3407
|
*/
|
|
3252
|
-
export type
|
|
3408
|
+
export type Routing129 = {
|
|
3253
3409
|
[k: string]: unknown;
|
|
3254
3410
|
} | {
|
|
3255
3411
|
[k: string]: unknown;
|
|
@@ -3263,7 +3419,7 @@ export type Routing125 = {
|
|
|
3263
3419
|
/**
|
|
3264
3420
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3265
3421
|
*/
|
|
3266
|
-
export type
|
|
3422
|
+
export type Routing130 = {
|
|
3267
3423
|
[k: string]: unknown;
|
|
3268
3424
|
} | {
|
|
3269
3425
|
[k: string]: unknown;
|
|
@@ -3277,7 +3433,7 @@ export type Routing126 = {
|
|
|
3277
3433
|
/**
|
|
3278
3434
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3279
3435
|
*/
|
|
3280
|
-
export type
|
|
3436
|
+
export type Routing131 = {
|
|
3281
3437
|
[k: string]: unknown;
|
|
3282
3438
|
} | {
|
|
3283
3439
|
[k: string]: unknown;
|
|
@@ -3299,31 +3455,31 @@ export type RecordSimple1 = string;
|
|
|
3299
3455
|
/**
|
|
3300
3456
|
* Browser engine keyword. Targets that browser. Steps that can only ever act on a browser (not a background process) restrict the bare-string form to this enum, so a process name here is rejected at validation time instead of failing at runtime.
|
|
3301
3457
|
*/
|
|
3302
|
-
export type
|
|
3458
|
+
export type SurfaceByBrowserEngine10 = "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
3303
3459
|
/**
|
|
3304
3460
|
* Which window to act on. Omit to use the active window.
|
|
3305
3461
|
*/
|
|
3306
|
-
export type
|
|
3462
|
+
export type WindowTabSelector28 = ByIndex36 | ByName36 | ByCriteria36;
|
|
3307
3463
|
/**
|
|
3308
3464
|
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
3309
3465
|
*/
|
|
3310
|
-
export type
|
|
3466
|
+
export type ByIndex36 = number;
|
|
3311
3467
|
/**
|
|
3312
3468
|
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
3313
3469
|
*/
|
|
3314
|
-
export type
|
|
3470
|
+
export type ByName36 = string;
|
|
3315
3471
|
/**
|
|
3316
3472
|
* Which tab to act on. Omit to use the active tab. Without `window`, the selector searches every tab in creation order — including tabs the page opened itself.
|
|
3317
3473
|
*/
|
|
3318
|
-
export type
|
|
3474
|
+
export type WindowTabSelector29 = ByIndex37 | ByName37 | ByCriteria37;
|
|
3319
3475
|
/**
|
|
3320
3476
|
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
3321
3477
|
*/
|
|
3322
|
-
export type
|
|
3478
|
+
export type ByIndex37 = number;
|
|
3323
3479
|
/**
|
|
3324
3480
|
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
3325
3481
|
*/
|
|
3326
|
-
export type
|
|
3482
|
+
export type ByName37 = string;
|
|
3327
3483
|
/**
|
|
3328
3484
|
* Recording engine to use. Either a string shorthand selecting the engine with defaults, or an object for full control. If unset, defaults to the `browser` engine when a visible Chrome context is available and to `ffmpeg` otherwise.
|
|
3329
3485
|
*/
|
|
@@ -3339,15 +3495,15 @@ export type RecordBoolean1 = boolean;
|
|
|
3339
3495
|
/**
|
|
3340
3496
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
3341
3497
|
*/
|
|
3342
|
-
export type
|
|
3498
|
+
export type Condition65 = string | [string, ...string[]];
|
|
3343
3499
|
/**
|
|
3344
3500
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
3345
3501
|
*/
|
|
3346
|
-
export type
|
|
3502
|
+
export type Condition66 = string | [string, ...string[]];
|
|
3347
3503
|
/**
|
|
3348
3504
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3349
3505
|
*/
|
|
3350
|
-
export type
|
|
3506
|
+
export type Routing132 = {
|
|
3351
3507
|
[k: string]: unknown;
|
|
3352
3508
|
} | {
|
|
3353
3509
|
[k: string]: unknown;
|
|
@@ -3361,7 +3517,7 @@ export type Routing128 = {
|
|
|
3361
3517
|
/**
|
|
3362
3518
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3363
3519
|
*/
|
|
3364
|
-
export type
|
|
3520
|
+
export type Routing133 = {
|
|
3365
3521
|
[k: string]: unknown;
|
|
3366
3522
|
} | {
|
|
3367
3523
|
[k: string]: unknown;
|
|
@@ -3375,7 +3531,7 @@ export type Routing129 = {
|
|
|
3375
3531
|
/**
|
|
3376
3532
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3377
3533
|
*/
|
|
3378
|
-
export type
|
|
3534
|
+
export type Routing134 = {
|
|
3379
3535
|
[k: string]: unknown;
|
|
3380
3536
|
} | {
|
|
3381
3537
|
[k: string]: unknown;
|
|
@@ -3389,7 +3545,7 @@ export type Routing130 = {
|
|
|
3389
3545
|
/**
|
|
3390
3546
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3391
3547
|
*/
|
|
3392
|
-
export type
|
|
3548
|
+
export type Routing135 = {
|
|
3393
3549
|
[k: string]: unknown;
|
|
3394
3550
|
} | {
|
|
3395
3551
|
[k: string]: unknown;
|
|
@@ -3419,15 +3575,15 @@ export type StopRecordName1 = string;
|
|
|
3419
3575
|
/**
|
|
3420
3576
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
3421
3577
|
*/
|
|
3422
|
-
export type
|
|
3578
|
+
export type Condition67 = string | [string, ...string[]];
|
|
3423
3579
|
/**
|
|
3424
3580
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
3425
3581
|
*/
|
|
3426
|
-
export type
|
|
3582
|
+
export type Condition68 = string | [string, ...string[]];
|
|
3427
3583
|
/**
|
|
3428
3584
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3429
3585
|
*/
|
|
3430
|
-
export type
|
|
3586
|
+
export type Routing136 = {
|
|
3431
3587
|
[k: string]: unknown;
|
|
3432
3588
|
} | {
|
|
3433
3589
|
[k: string]: unknown;
|
|
@@ -3441,7 +3597,7 @@ export type Routing132 = {
|
|
|
3441
3597
|
/**
|
|
3442
3598
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3443
3599
|
*/
|
|
3444
|
-
export type
|
|
3600
|
+
export type Routing137 = {
|
|
3445
3601
|
[k: string]: unknown;
|
|
3446
3602
|
} | {
|
|
3447
3603
|
[k: string]: unknown;
|
|
@@ -3455,7 +3611,7 @@ export type Routing133 = {
|
|
|
3455
3611
|
/**
|
|
3456
3612
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3457
3613
|
*/
|
|
3458
|
-
export type
|
|
3614
|
+
export type Routing138 = {
|
|
3459
3615
|
[k: string]: unknown;
|
|
3460
3616
|
} | {
|
|
3461
3617
|
[k: string]: unknown;
|
|
@@ -3469,7 +3625,7 @@ export type Routing134 = {
|
|
|
3469
3625
|
/**
|
|
3470
3626
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3471
3627
|
*/
|
|
3472
|
-
export type
|
|
3628
|
+
export type Routing139 = {
|
|
3473
3629
|
[k: string]: unknown;
|
|
3474
3630
|
} | {
|
|
3475
3631
|
[k: string]: unknown;
|
|
@@ -3487,7 +3643,7 @@ export type CloseSurface3 = Surface4 | [Surface5, ...Surface5[]];
|
|
|
3487
3643
|
/**
|
|
3488
3644
|
* The surface a step acts on. Omit to act on the active surface. Supports background processes, browser windows/tabs, and native app windows.
|
|
3489
3645
|
*/
|
|
3490
|
-
export type Surface4 = SurfaceByName4 | ProcessSurface4 |
|
|
3646
|
+
export type Surface4 = SurfaceByName4 | ProcessSurface4 | BrowserSurface15 | AppSurface8;
|
|
3491
3647
|
/**
|
|
3492
3648
|
* Name of the surface. A browser engine keyword (chrome|firefox|safari|webkit|edge) targets that browser; any other string names a background process. To target a browser window or tab, use the object form ({ "browser": …, "window": …, "tab": … }) — a plain string is never a window/tab name.
|
|
3493
3649
|
*/
|
|
@@ -3495,43 +3651,43 @@ export type SurfaceByName4 = string;
|
|
|
3495
3651
|
/**
|
|
3496
3652
|
* Which window to act on. Omit to use the active window.
|
|
3497
3653
|
*/
|
|
3498
|
-
export type
|
|
3654
|
+
export type WindowTabSelector30 = ByIndex38 | ByName38 | ByCriteria38;
|
|
3499
3655
|
/**
|
|
3500
3656
|
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
3501
3657
|
*/
|
|
3502
|
-
export type
|
|
3658
|
+
export type ByIndex38 = number;
|
|
3503
3659
|
/**
|
|
3504
3660
|
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
3505
3661
|
*/
|
|
3506
|
-
export type
|
|
3662
|
+
export type ByName38 = string;
|
|
3507
3663
|
/**
|
|
3508
3664
|
* Which tab to act on. Omit to use the active tab. Without `window`, the selector searches every tab in creation order — including tabs the page opened itself.
|
|
3509
3665
|
*/
|
|
3510
|
-
export type
|
|
3666
|
+
export type WindowTabSelector31 = ByIndex39 | ByName39 | ByCriteria39;
|
|
3511
3667
|
/**
|
|
3512
3668
|
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
3513
3669
|
*/
|
|
3514
|
-
export type
|
|
3670
|
+
export type ByIndex39 = number;
|
|
3515
3671
|
/**
|
|
3516
3672
|
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
3517
3673
|
*/
|
|
3518
|
-
export type
|
|
3674
|
+
export type ByName39 = string;
|
|
3519
3675
|
/**
|
|
3520
3676
|
* Which app window to act on. Omit to use the active window. Apps have windows, no tabs.
|
|
3521
3677
|
*/
|
|
3522
|
-
export type
|
|
3678
|
+
export type AppWindowSelector8 = ByIndex40 | ByName40 | ByCriteria40;
|
|
3523
3679
|
/**
|
|
3524
3680
|
* Index in creation order. Negative counts from the end; `-1` is the newest (e.g. a dialog the app just opened).
|
|
3525
3681
|
*/
|
|
3526
|
-
export type
|
|
3682
|
+
export type ByIndex40 = number;
|
|
3527
3683
|
/**
|
|
3528
3684
|
* Assigned window name. The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
3529
3685
|
*/
|
|
3530
|
-
export type
|
|
3686
|
+
export type ByName40 = string;
|
|
3531
3687
|
/**
|
|
3532
3688
|
* The surface a step acts on. Omit to act on the active surface. Supports background processes, browser windows/tabs, and native app windows.
|
|
3533
3689
|
*/
|
|
3534
|
-
export type Surface5 = SurfaceByName5 | ProcessSurface5 |
|
|
3690
|
+
export type Surface5 = SurfaceByName5 | ProcessSurface5 | BrowserSurface16 | AppSurface9;
|
|
3535
3691
|
/**
|
|
3536
3692
|
* Name of the surface. A browser engine keyword (chrome|firefox|safari|webkit|edge) targets that browser; any other string names a background process. To target a browser window or tab, use the object form ({ "browser": …, "window": …, "tab": … }) — a plain string is never a window/tab name.
|
|
3537
3693
|
*/
|
|
@@ -3539,51 +3695,51 @@ export type SurfaceByName5 = string;
|
|
|
3539
3695
|
/**
|
|
3540
3696
|
* Which window to act on. Omit to use the active window.
|
|
3541
3697
|
*/
|
|
3542
|
-
export type
|
|
3698
|
+
export type WindowTabSelector32 = ByIndex41 | ByName41 | ByCriteria41;
|
|
3543
3699
|
/**
|
|
3544
3700
|
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
3545
3701
|
*/
|
|
3546
|
-
export type
|
|
3702
|
+
export type ByIndex41 = number;
|
|
3547
3703
|
/**
|
|
3548
3704
|
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
3549
3705
|
*/
|
|
3550
|
-
export type
|
|
3706
|
+
export type ByName41 = string;
|
|
3551
3707
|
/**
|
|
3552
3708
|
* Which tab to act on. Omit to use the active tab. Without `window`, the selector searches every tab in creation order — including tabs the page opened itself.
|
|
3553
3709
|
*/
|
|
3554
|
-
export type
|
|
3710
|
+
export type WindowTabSelector33 = ByIndex42 | ByName42 | ByCriteria42;
|
|
3555
3711
|
/**
|
|
3556
3712
|
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
3557
3713
|
*/
|
|
3558
|
-
export type
|
|
3714
|
+
export type ByIndex42 = number;
|
|
3559
3715
|
/**
|
|
3560
3716
|
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
3561
3717
|
*/
|
|
3562
|
-
export type
|
|
3718
|
+
export type ByName42 = string;
|
|
3563
3719
|
/**
|
|
3564
3720
|
* Which app window to act on. Omit to use the active window. Apps have windows, no tabs.
|
|
3565
3721
|
*/
|
|
3566
|
-
export type
|
|
3722
|
+
export type AppWindowSelector9 = ByIndex43 | ByName43 | ByCriteria43;
|
|
3567
3723
|
/**
|
|
3568
3724
|
* Index in creation order. Negative counts from the end; `-1` is the newest (e.g. a dialog the app just opened).
|
|
3569
3725
|
*/
|
|
3570
|
-
export type
|
|
3726
|
+
export type ByIndex43 = number;
|
|
3571
3727
|
/**
|
|
3572
3728
|
* Assigned window name. The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
3573
3729
|
*/
|
|
3574
|
-
export type
|
|
3730
|
+
export type ByName43 = string;
|
|
3575
3731
|
/**
|
|
3576
3732
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
3577
3733
|
*/
|
|
3578
|
-
export type
|
|
3734
|
+
export type Condition69 = string | [string, ...string[]];
|
|
3579
3735
|
/**
|
|
3580
3736
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
3581
3737
|
*/
|
|
3582
|
-
export type
|
|
3738
|
+
export type Condition70 = string | [string, ...string[]];
|
|
3583
3739
|
/**
|
|
3584
3740
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3585
3741
|
*/
|
|
3586
|
-
export type
|
|
3742
|
+
export type Routing140 = {
|
|
3587
3743
|
[k: string]: unknown;
|
|
3588
3744
|
} | {
|
|
3589
3745
|
[k: string]: unknown;
|
|
@@ -3597,7 +3753,7 @@ export type Routing136 = {
|
|
|
3597
3753
|
/**
|
|
3598
3754
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3599
3755
|
*/
|
|
3600
|
-
export type
|
|
3756
|
+
export type Routing141 = {
|
|
3601
3757
|
[k: string]: unknown;
|
|
3602
3758
|
} | {
|
|
3603
3759
|
[k: string]: unknown;
|
|
@@ -3611,7 +3767,7 @@ export type Routing137 = {
|
|
|
3611
3767
|
/**
|
|
3612
3768
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3613
3769
|
*/
|
|
3614
|
-
export type
|
|
3770
|
+
export type Routing142 = {
|
|
3615
3771
|
[k: string]: unknown;
|
|
3616
3772
|
} | {
|
|
3617
3773
|
[k: string]: unknown;
|
|
@@ -3625,7 +3781,7 @@ export type Routing138 = {
|
|
|
3625
3781
|
/**
|
|
3626
3782
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3627
3783
|
*/
|
|
3628
|
-
export type
|
|
3784
|
+
export type Routing143 = {
|
|
3629
3785
|
[k: string]: unknown;
|
|
3630
3786
|
} | {
|
|
3631
3787
|
[k: string]: unknown;
|
|
@@ -3658,15 +3814,15 @@ export type ElementCriteria5 = {
|
|
|
3658
3814
|
/**
|
|
3659
3815
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
3660
3816
|
*/
|
|
3661
|
-
export type
|
|
3817
|
+
export type Condition71 = string | [string, ...string[]];
|
|
3662
3818
|
/**
|
|
3663
3819
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
3664
3820
|
*/
|
|
3665
|
-
export type
|
|
3821
|
+
export type Condition72 = string | [string, ...string[]];
|
|
3666
3822
|
/**
|
|
3667
3823
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3668
3824
|
*/
|
|
3669
|
-
export type
|
|
3825
|
+
export type Routing144 = {
|
|
3670
3826
|
[k: string]: unknown;
|
|
3671
3827
|
} | {
|
|
3672
3828
|
[k: string]: unknown;
|
|
@@ -3680,7 +3836,7 @@ export type Routing140 = {
|
|
|
3680
3836
|
/**
|
|
3681
3837
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3682
3838
|
*/
|
|
3683
|
-
export type
|
|
3839
|
+
export type Routing145 = {
|
|
3684
3840
|
[k: string]: unknown;
|
|
3685
3841
|
} | {
|
|
3686
3842
|
[k: string]: unknown;
|
|
@@ -3694,7 +3850,7 @@ export type Routing141 = {
|
|
|
3694
3850
|
/**
|
|
3695
3851
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3696
3852
|
*/
|
|
3697
|
-
export type
|
|
3853
|
+
export type Routing146 = {
|
|
3698
3854
|
[k: string]: unknown;
|
|
3699
3855
|
} | {
|
|
3700
3856
|
[k: string]: unknown;
|
|
@@ -3708,7 +3864,7 @@ export type Routing142 = {
|
|
|
3708
3864
|
/**
|
|
3709
3865
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3710
3866
|
*/
|
|
3711
|
-
export type
|
|
3867
|
+
export type Routing147 = {
|
|
3712
3868
|
[k: string]: unknown;
|
|
3713
3869
|
} | {
|
|
3714
3870
|
[k: string]: unknown;
|
|
@@ -3726,15 +3882,15 @@ export type LoadVariables3 = string;
|
|
|
3726
3882
|
/**
|
|
3727
3883
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
3728
3884
|
*/
|
|
3729
|
-
export type
|
|
3885
|
+
export type Condition73 = string | [string, ...string[]];
|
|
3730
3886
|
/**
|
|
3731
3887
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
3732
3888
|
*/
|
|
3733
|
-
export type
|
|
3889
|
+
export type Condition74 = string | [string, ...string[]];
|
|
3734
3890
|
/**
|
|
3735
3891
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3736
3892
|
*/
|
|
3737
|
-
export type
|
|
3893
|
+
export type Routing148 = {
|
|
3738
3894
|
[k: string]: unknown;
|
|
3739
3895
|
} | {
|
|
3740
3896
|
[k: string]: unknown;
|
|
@@ -3748,7 +3904,7 @@ export type Routing144 = {
|
|
|
3748
3904
|
/**
|
|
3749
3905
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3750
3906
|
*/
|
|
3751
|
-
export type
|
|
3907
|
+
export type Routing149 = {
|
|
3752
3908
|
[k: string]: unknown;
|
|
3753
3909
|
} | {
|
|
3754
3910
|
[k: string]: unknown;
|
|
@@ -3762,7 +3918,7 @@ export type Routing145 = {
|
|
|
3762
3918
|
/**
|
|
3763
3919
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3764
3920
|
*/
|
|
3765
|
-
export type
|
|
3921
|
+
export type Routing150 = {
|
|
3766
3922
|
[k: string]: unknown;
|
|
3767
3923
|
} | {
|
|
3768
3924
|
[k: string]: unknown;
|
|
@@ -3776,7 +3932,7 @@ export type Routing146 = {
|
|
|
3776
3932
|
/**
|
|
3777
3933
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3778
3934
|
*/
|
|
3779
|
-
export type
|
|
3935
|
+
export type Routing151 = {
|
|
3780
3936
|
[k: string]: unknown;
|
|
3781
3937
|
} | {
|
|
3782
3938
|
[k: string]: unknown;
|
|
@@ -3828,43 +3984,43 @@ export type ElementDetailed3 = {
|
|
|
3828
3984
|
/**
|
|
3829
3985
|
* Browser engine keyword. Targets that browser. Steps that can only ever act on a browser (not a background process) restrict the bare-string form to this enum, so a process name here is rejected at validation time instead of failing at runtime.
|
|
3830
3986
|
*/
|
|
3831
|
-
export type
|
|
3987
|
+
export type SurfaceByBrowserEngine11 = "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
3832
3988
|
/**
|
|
3833
3989
|
* Which window to act on. Omit to use the active window.
|
|
3834
3990
|
*/
|
|
3835
|
-
export type
|
|
3991
|
+
export type WindowTabSelector34 = ByIndex44 | ByName44 | ByCriteria44;
|
|
3836
3992
|
/**
|
|
3837
3993
|
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
3838
3994
|
*/
|
|
3839
|
-
export type
|
|
3995
|
+
export type ByIndex44 = number;
|
|
3840
3996
|
/**
|
|
3841
3997
|
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
3842
3998
|
*/
|
|
3843
|
-
export type
|
|
3999
|
+
export type ByName44 = string;
|
|
3844
4000
|
/**
|
|
3845
4001
|
* Which tab to act on. Omit to use the active tab. Without `window`, the selector searches every tab in creation order — including tabs the page opened itself.
|
|
3846
4002
|
*/
|
|
3847
|
-
export type
|
|
4003
|
+
export type WindowTabSelector35 = ByIndex45 | ByName45 | ByCriteria45;
|
|
3848
4004
|
/**
|
|
3849
4005
|
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
3850
4006
|
*/
|
|
3851
|
-
export type
|
|
4007
|
+
export type ByIndex45 = number;
|
|
3852
4008
|
/**
|
|
3853
4009
|
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
3854
4010
|
*/
|
|
3855
|
-
export type
|
|
4011
|
+
export type ByName45 = string;
|
|
3856
4012
|
/**
|
|
3857
4013
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
3858
4014
|
*/
|
|
3859
|
-
export type
|
|
4015
|
+
export type Condition75 = string | [string, ...string[]];
|
|
3860
4016
|
/**
|
|
3861
4017
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
3862
4018
|
*/
|
|
3863
|
-
export type
|
|
4019
|
+
export type Condition76 = string | [string, ...string[]];
|
|
3864
4020
|
/**
|
|
3865
4021
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3866
4022
|
*/
|
|
3867
|
-
export type
|
|
4023
|
+
export type Routing152 = {
|
|
3868
4024
|
[k: string]: unknown;
|
|
3869
4025
|
} | {
|
|
3870
4026
|
[k: string]: unknown;
|
|
@@ -3878,7 +4034,7 @@ export type Routing148 = {
|
|
|
3878
4034
|
/**
|
|
3879
4035
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3880
4036
|
*/
|
|
3881
|
-
export type
|
|
4037
|
+
export type Routing153 = {
|
|
3882
4038
|
[k: string]: unknown;
|
|
3883
4039
|
} | {
|
|
3884
4040
|
[k: string]: unknown;
|
|
@@ -3892,7 +4048,7 @@ export type Routing149 = {
|
|
|
3892
4048
|
/**
|
|
3893
4049
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3894
4050
|
*/
|
|
3895
|
-
export type
|
|
4051
|
+
export type Routing154 = {
|
|
3896
4052
|
[k: string]: unknown;
|
|
3897
4053
|
} | {
|
|
3898
4054
|
[k: string]: unknown;
|
|
@@ -3906,7 +4062,7 @@ export type Routing150 = {
|
|
|
3906
4062
|
/**
|
|
3907
4063
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3908
4064
|
*/
|
|
3909
|
-
export type
|
|
4065
|
+
export type Routing155 = {
|
|
3910
4066
|
[k: string]: unknown;
|
|
3911
4067
|
} | {
|
|
3912
4068
|
[k: string]: unknown;
|
|
@@ -3933,15 +4089,15 @@ export type LoadCookieDetailed1 = {
|
|
|
3933
4089
|
/**
|
|
3934
4090
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
3935
4091
|
*/
|
|
3936
|
-
export type
|
|
4092
|
+
export type Condition77 = string | [string, ...string[]];
|
|
3937
4093
|
/**
|
|
3938
4094
|
* A condition expression, or an array of expressions combined with logical AND.
|
|
3939
4095
|
*/
|
|
3940
|
-
export type
|
|
4096
|
+
export type Condition78 = string | [string, ...string[]];
|
|
3941
4097
|
/**
|
|
3942
4098
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3943
4099
|
*/
|
|
3944
|
-
export type
|
|
4100
|
+
export type Routing156 = {
|
|
3945
4101
|
[k: string]: unknown;
|
|
3946
4102
|
} | {
|
|
3947
4103
|
[k: string]: unknown;
|
|
@@ -3955,7 +4111,7 @@ export type Routing152 = {
|
|
|
3955
4111
|
/**
|
|
3956
4112
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3957
4113
|
*/
|
|
3958
|
-
export type
|
|
4114
|
+
export type Routing157 = {
|
|
3959
4115
|
[k: string]: unknown;
|
|
3960
4116
|
} | {
|
|
3961
4117
|
[k: string]: unknown;
|
|
@@ -3969,7 +4125,7 @@ export type Routing153 = {
|
|
|
3969
4125
|
/**
|
|
3970
4126
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3971
4127
|
*/
|
|
3972
|
-
export type
|
|
4128
|
+
export type Routing158 = {
|
|
3973
4129
|
[k: string]: unknown;
|
|
3974
4130
|
} | {
|
|
3975
4131
|
[k: string]: unknown;
|
|
@@ -3983,7 +4139,7 @@ export type Routing154 = {
|
|
|
3983
4139
|
/**
|
|
3984
4140
|
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
3985
4141
|
*/
|
|
3986
|
-
export type
|
|
4142
|
+
export type Routing159 = {
|
|
3987
4143
|
[k: string]: unknown;
|
|
3988
4144
|
} | {
|
|
3989
4145
|
[k: string]: unknown;
|
|
@@ -3995,70 +4151,226 @@ export type Routing155 = {
|
|
|
3995
4151
|
[k: string]: unknown;
|
|
3996
4152
|
};
|
|
3997
4153
|
/**
|
|
3998
|
-
*
|
|
4154
|
+
* Swipe (or scroll) a surface in a direction or between two points. The direction is the virtual finger's motion: swiping up moves content up, revealing content further down the page. Works on app and browser surfaces.
|
|
3999
4155
|
*/
|
|
4000
|
-
export type
|
|
4001
|
-
export type WaitSimple1 = number;
|
|
4002
|
-
export type WaitEnvironmentVariable1 = string;
|
|
4003
|
-
export type WaitBoolean1 = boolean;
|
|
4156
|
+
export type Swipe3 = SwipeSimple2 | SwipeDirectional1 | SwipePointToPoint1;
|
|
4004
4157
|
/**
|
|
4005
|
-
*
|
|
4158
|
+
* Direction the virtual finger moves. `up` reveals content below; `left` reveals content to the right (for example, the next carousel card).
|
|
4006
4159
|
*/
|
|
4007
|
-
export type
|
|
4160
|
+
export type SwipeSimple2 = "up" | "down" | "left" | "right";
|
|
4008
4161
|
/**
|
|
4009
|
-
*
|
|
4162
|
+
* Direction the virtual finger moves. `up` reveals content below; `left` reveals content to the right (for example, the next carousel card).
|
|
4010
4163
|
*/
|
|
4011
|
-
export
|
|
4012
|
-
/**
|
|
4013
|
-
* JSON Schema for this object.
|
|
4014
|
-
*/
|
|
4015
|
-
$schema?: "https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/context_v3.schema.json";
|
|
4016
|
-
/**
|
|
4017
|
-
* Unique identifier for the context.
|
|
4018
|
-
*/
|
|
4019
|
-
contextId?: string;
|
|
4020
|
-
/**
|
|
4021
|
-
* Platforms to run tests on.
|
|
4022
|
-
*/
|
|
4023
|
-
platforms?: ("linux" | "mac" | "windows" | "android" | "ios") | ("linux" | "mac" | "windows" | "android" | "ios")[];
|
|
4024
|
-
/**
|
|
4025
|
-
* Browsers to run tests on. On a mobile (`android`/`ios`) platform entry, the browser runs on the managed device: `chrome` on Android, `safari` on iOS (other combinations skip the context), and it fills in automatically when omitted. Device browsers don't take desktop display config: authored `window`/`viewport` dimensions and `headless: false` are rejected on mobile entries (the device owns its display — control it via the device descriptor's `headless`/`deviceType`); `headless: true` matches this schema's default and is ignored.
|
|
4026
|
-
*/
|
|
4027
|
-
browsers?: ("chrome" | "firefox" | "safari" | "webkit") | Browser | (("chrome" | "firefox" | "safari" | "webkit") | Browser1)[];
|
|
4028
|
-
/**
|
|
4029
|
-
* Per-context override for the config-level [`browserFallback`](config) policy that governs whether a context whose browser can't start a driver session falls back to another available browser. Accepts the same values — `auto`, `explicit`, `off` — and, when set, takes precedence over the config-level value for the contexts this entry expands into. Omit it to inherit the config-level policy (which itself defaults to `auto`).
|
|
4030
|
-
*/
|
|
4031
|
-
browserFallback?: "auto" | "explicit" | "off";
|
|
4032
|
-
/**
|
|
4033
|
-
* Capabilities the environment must provide for this context to run. A string names a required command; an array names several; the object form checks commands (on PATH), files (paths, with `$VAR`/`$HOME` expansion), and environment variables. All entries are AND-ed. Any unmet requirement marks the context as SKIPPED — the same non-failing outcome as a `platforms` mismatch.
|
|
4034
|
-
*/
|
|
4035
|
-
requires?: string | [string, ...string[]] | Requirements;
|
|
4036
|
-
/**
|
|
4037
|
-
* Default device for a mobile (`android`/`ios`) context. A string references a device by name; an object refines it. The `platform` is implied by the context, so it is not required here. When the named device doesn't already exist, Doc Detective creates it with defaults (see `deviceType`/`osVersion`), provided the toolchain is installed (`doc-detective install android` or `doc-detective install ios`). Same shape as `startSurface.device`.
|
|
4038
|
-
*/
|
|
4039
|
-
device?: DeviceByName | DeviceDescriptor;
|
|
4040
|
-
}
|
|
4164
|
+
export type SwipeSimple3 = "up" | "down" | "left" | "right";
|
|
4041
4165
|
/**
|
|
4042
|
-
* Browser
|
|
4166
|
+
* Browser engine keyword. Targets that browser. Steps that can only ever act on a browser (not a background process) restrict the bare-string form to this enum, so a process name here is rejected at validation time instead of failing at runtime.
|
|
4043
4167
|
*/
|
|
4044
|
-
export
|
|
4045
|
-
/**
|
|
4046
|
-
* Name of the browser.
|
|
4047
|
-
*/
|
|
4048
|
-
name: "chrome" | "firefox" | "safari" | "webkit";
|
|
4049
|
-
/**
|
|
4050
|
-
* Set automatically during context resolution: `true` when the author explicitly requested this browser (as opposed to it being auto-selected as the default). The runner's cross-browser fallback uses it to decide whether substituting another engine reports `PASS` (auto-selected) or `WARNING` (explicitly pinned).
|
|
4051
|
-
*/
|
|
4052
|
-
explicit?: boolean;
|
|
4053
|
-
/**
|
|
4054
|
-
* If `true`, runs the browser in headless mode.
|
|
4055
|
-
*/
|
|
4056
|
-
headless?: boolean;
|
|
4057
|
-
window?: BrowserWindow;
|
|
4058
|
-
viewport?: BrowserViewport;
|
|
4059
|
-
}
|
|
4168
|
+
export type SurfaceByBrowserEngine12 = "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
4060
4169
|
/**
|
|
4061
|
-
*
|
|
4170
|
+
* Which window to act on. Omit to use the active window.
|
|
4171
|
+
*/
|
|
4172
|
+
export type WindowTabSelector36 = ByIndex46 | ByName46 | ByCriteria46;
|
|
4173
|
+
/**
|
|
4174
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
4175
|
+
*/
|
|
4176
|
+
export type ByIndex46 = number;
|
|
4177
|
+
/**
|
|
4178
|
+
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
4179
|
+
*/
|
|
4180
|
+
export type ByName46 = string;
|
|
4181
|
+
/**
|
|
4182
|
+
* Which tab to act on. Omit to use the active tab. Without `window`, the selector searches every tab in creation order — including tabs the page opened itself.
|
|
4183
|
+
*/
|
|
4184
|
+
export type WindowTabSelector37 = ByIndex47 | ByName47 | ByCriteria47;
|
|
4185
|
+
/**
|
|
4186
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
4187
|
+
*/
|
|
4188
|
+
export type ByIndex47 = number;
|
|
4189
|
+
/**
|
|
4190
|
+
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
4191
|
+
*/
|
|
4192
|
+
export type ByName47 = string;
|
|
4193
|
+
/**
|
|
4194
|
+
* Which app window to act on. Omit to use the active window. Apps have windows, no tabs.
|
|
4195
|
+
*/
|
|
4196
|
+
export type AppWindowSelector10 = ByIndex48 | ByName48 | ByCriteria48;
|
|
4197
|
+
/**
|
|
4198
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest (e.g. a dialog the app just opened).
|
|
4199
|
+
*/
|
|
4200
|
+
export type ByIndex48 = number;
|
|
4201
|
+
/**
|
|
4202
|
+
* Assigned window name. The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
4203
|
+
*/
|
|
4204
|
+
export type ByName48 = string;
|
|
4205
|
+
/**
|
|
4206
|
+
* Browser engine keyword. Targets that browser. Steps that can only ever act on a browser (not a background process) restrict the bare-string form to this enum, so a process name here is rejected at validation time instead of failing at runtime.
|
|
4207
|
+
*/
|
|
4208
|
+
export type SurfaceByBrowserEngine13 = "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
4209
|
+
/**
|
|
4210
|
+
* Which window to act on. Omit to use the active window.
|
|
4211
|
+
*/
|
|
4212
|
+
export type WindowTabSelector38 = ByIndex49 | ByName49 | ByCriteria49;
|
|
4213
|
+
/**
|
|
4214
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
4215
|
+
*/
|
|
4216
|
+
export type ByIndex49 = number;
|
|
4217
|
+
/**
|
|
4218
|
+
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
4219
|
+
*/
|
|
4220
|
+
export type ByName49 = string;
|
|
4221
|
+
/**
|
|
4222
|
+
* Which tab to act on. Omit to use the active tab. Without `window`, the selector searches every tab in creation order — including tabs the page opened itself.
|
|
4223
|
+
*/
|
|
4224
|
+
export type WindowTabSelector39 = ByIndex50 | ByName50 | ByCriteria50;
|
|
4225
|
+
/**
|
|
4226
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
4227
|
+
*/
|
|
4228
|
+
export type ByIndex50 = number;
|
|
4229
|
+
/**
|
|
4230
|
+
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
4231
|
+
*/
|
|
4232
|
+
export type ByName50 = string;
|
|
4233
|
+
/**
|
|
4234
|
+
* Which app window to act on. Omit to use the active window. Apps have windows, no tabs.
|
|
4235
|
+
*/
|
|
4236
|
+
export type AppWindowSelector11 = ByIndex51 | ByName51 | ByCriteria51;
|
|
4237
|
+
/**
|
|
4238
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest (e.g. a dialog the app just opened).
|
|
4239
|
+
*/
|
|
4240
|
+
export type ByIndex51 = number;
|
|
4241
|
+
/**
|
|
4242
|
+
* Assigned window name. The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
4243
|
+
*/
|
|
4244
|
+
export type ByName51 = string;
|
|
4245
|
+
/**
|
|
4246
|
+
* A condition expression, or an array of expressions combined with logical AND.
|
|
4247
|
+
*/
|
|
4248
|
+
export type Condition79 = string | [string, ...string[]];
|
|
4249
|
+
/**
|
|
4250
|
+
* A condition expression, or an array of expressions combined with logical AND.
|
|
4251
|
+
*/
|
|
4252
|
+
export type Condition80 = string | [string, ...string[]];
|
|
4253
|
+
/**
|
|
4254
|
+
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
4255
|
+
*/
|
|
4256
|
+
export type Routing160 = {
|
|
4257
|
+
[k: string]: unknown;
|
|
4258
|
+
} | {
|
|
4259
|
+
[k: string]: unknown;
|
|
4260
|
+
} | {
|
|
4261
|
+
[k: string]: unknown;
|
|
4262
|
+
} | {
|
|
4263
|
+
[k: string]: unknown;
|
|
4264
|
+
} | {
|
|
4265
|
+
[k: string]: unknown;
|
|
4266
|
+
};
|
|
4267
|
+
/**
|
|
4268
|
+
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
4269
|
+
*/
|
|
4270
|
+
export type Routing161 = {
|
|
4271
|
+
[k: string]: unknown;
|
|
4272
|
+
} | {
|
|
4273
|
+
[k: string]: unknown;
|
|
4274
|
+
} | {
|
|
4275
|
+
[k: string]: unknown;
|
|
4276
|
+
} | {
|
|
4277
|
+
[k: string]: unknown;
|
|
4278
|
+
} | {
|
|
4279
|
+
[k: string]: unknown;
|
|
4280
|
+
};
|
|
4281
|
+
/**
|
|
4282
|
+
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
4283
|
+
*/
|
|
4284
|
+
export type Routing162 = {
|
|
4285
|
+
[k: string]: unknown;
|
|
4286
|
+
} | {
|
|
4287
|
+
[k: string]: unknown;
|
|
4288
|
+
} | {
|
|
4289
|
+
[k: string]: unknown;
|
|
4290
|
+
} | {
|
|
4291
|
+
[k: string]: unknown;
|
|
4292
|
+
} | {
|
|
4293
|
+
[k: string]: unknown;
|
|
4294
|
+
};
|
|
4295
|
+
/**
|
|
4296
|
+
* A single dynamic-routing entry: an optional condition (`if`) plus exactly one routing action. Attached to a step or test handler (`onPass`, `onFail`, `onWarning`, `onSkip`). For step-level handlers, `continue`, `stop`, `retry`, and `goToStep` are evaluated at runtime; `goToTest` is validated but not yet executed (deferred at step scope). For test-level handlers, `continue`, `stop`, and `goToTest` are evaluated at runtime (test scope; `goToTest` jumps to a test within the spec), while `retry` and `goToStep` are not applicable at test scope.
|
|
4297
|
+
*/
|
|
4298
|
+
export type Routing163 = {
|
|
4299
|
+
[k: string]: unknown;
|
|
4300
|
+
} | {
|
|
4301
|
+
[k: string]: unknown;
|
|
4302
|
+
} | {
|
|
4303
|
+
[k: string]: unknown;
|
|
4304
|
+
} | {
|
|
4305
|
+
[k: string]: unknown;
|
|
4306
|
+
} | {
|
|
4307
|
+
[k: string]: unknown;
|
|
4308
|
+
};
|
|
4309
|
+
/**
|
|
4310
|
+
* Pause (in milliseconds) before performing the next action.
|
|
4311
|
+
*/
|
|
4312
|
+
export type Wait3 = WaitSimple1 | WaitEnvironmentVariable1 | WaitBoolean1;
|
|
4313
|
+
export type WaitSimple1 = number;
|
|
4314
|
+
export type WaitEnvironmentVariable1 = string;
|
|
4315
|
+
export type WaitBoolean1 = boolean;
|
|
4316
|
+
/**
|
|
4317
|
+
* Resolved contexts to run the test in. This is a resolved version of the `runOn` property. It is not user-defined and should not be used in test specifications.
|
|
4318
|
+
*/
|
|
4319
|
+
export type ResolvedContexts = ResolvedContext[];
|
|
4320
|
+
/**
|
|
4321
|
+
* A context in which to perform tests. If no contexts are specified but a context is required by one or more tests, Doc Detective attempts to identify a supported context in the current environment and run tests against it. For example, if a browser isn't specified but is required by steps in the test, Doc Detective will search for and use a supported browser available in the current environment.
|
|
4322
|
+
*/
|
|
4323
|
+
export interface Context {
|
|
4324
|
+
/**
|
|
4325
|
+
* JSON Schema for this object.
|
|
4326
|
+
*/
|
|
4327
|
+
$schema?: "https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/context_v3.schema.json";
|
|
4328
|
+
/**
|
|
4329
|
+
* Unique identifier for the context.
|
|
4330
|
+
*/
|
|
4331
|
+
contextId?: string;
|
|
4332
|
+
/**
|
|
4333
|
+
* Platforms to run tests on.
|
|
4334
|
+
*/
|
|
4335
|
+
platforms?: ("linux" | "mac" | "windows" | "android" | "ios") | ("linux" | "mac" | "windows" | "android" | "ios")[];
|
|
4336
|
+
/**
|
|
4337
|
+
* Browsers to run tests on. On a mobile (`android`/`ios`) platform entry, the browser runs on the managed device: `chrome` on Android, `safari` on iOS (other combinations skip the context), and it fills in automatically when omitted. Device browsers don't take desktop display config: authored `window`/`viewport` dimensions and `headless: false` are rejected on mobile entries (the device owns its display — control it via the device descriptor's `headless`/`deviceType`); `headless: true` matches this schema's default and is ignored.
|
|
4338
|
+
*/
|
|
4339
|
+
browsers?: ("chrome" | "firefox" | "safari" | "webkit") | Browser | (("chrome" | "firefox" | "safari" | "webkit") | Browser1)[];
|
|
4340
|
+
/**
|
|
4341
|
+
* Per-context override for the config-level [`browserFallback`](config) policy that governs whether a context whose browser can't start a driver session falls back to another available browser. Accepts the same values — `auto`, `explicit`, `off` — and, when set, takes precedence over the config-level value for the contexts this entry expands into. Omit it to inherit the config-level policy (which itself defaults to `auto`).
|
|
4342
|
+
*/
|
|
4343
|
+
browserFallback?: "auto" | "explicit" | "off";
|
|
4344
|
+
/**
|
|
4345
|
+
* Capabilities the environment must provide for this context to run. A string names a required command; an array names several; the object form checks commands (on PATH), files (paths, with `$VAR`/`$HOME` expansion), and environment variables. All entries are AND-ed. Any unmet requirement marks the context as SKIPPED — the same non-failing outcome as a `platforms` mismatch.
|
|
4346
|
+
*/
|
|
4347
|
+
requires?: string | [string, ...string[]] | Requirements;
|
|
4348
|
+
/**
|
|
4349
|
+
* Default device for a mobile (`android`/`ios`) context. A string references a device by name; an object refines it. The `platform` is implied by the context, so it is not required here. When the named device doesn't already exist, Doc Detective creates it with defaults (see `deviceType`/`osVersion`), provided the toolchain is installed (`doc-detective install android` or `doc-detective install ios`). Same shape as `startSurface.device`.
|
|
4350
|
+
*/
|
|
4351
|
+
device?: DeviceByName | DeviceDescriptor;
|
|
4352
|
+
}
|
|
4353
|
+
/**
|
|
4354
|
+
* Browser configuration.
|
|
4355
|
+
*/
|
|
4356
|
+
export interface Browser {
|
|
4357
|
+
/**
|
|
4358
|
+
* Name of the browser.
|
|
4359
|
+
*/
|
|
4360
|
+
name: "chrome" | "firefox" | "safari" | "webkit";
|
|
4361
|
+
/**
|
|
4362
|
+
* Set automatically during context resolution: `true` when the author explicitly requested this browser (as opposed to it being auto-selected as the default). The runner's cross-browser fallback uses it to decide whether substituting another engine reports `PASS` (auto-selected) or `WARNING` (explicitly pinned).
|
|
4363
|
+
*/
|
|
4364
|
+
explicit?: boolean;
|
|
4365
|
+
/**
|
|
4366
|
+
* If `true`, runs the browser in headless mode.
|
|
4367
|
+
*/
|
|
4368
|
+
headless?: boolean;
|
|
4369
|
+
window?: BrowserWindow;
|
|
4370
|
+
viewport?: BrowserViewport;
|
|
4371
|
+
}
|
|
4372
|
+
/**
|
|
4373
|
+
* Browser dimensions.
|
|
4062
4374
|
*/
|
|
4063
4375
|
export interface BrowserWindow {
|
|
4064
4376
|
/**
|
|
@@ -7772,88 +8084,216 @@ export interface SourceLocation18 {
|
|
|
7772
8084
|
*/
|
|
7773
8085
|
endIndex: number;
|
|
7774
8086
|
}
|
|
7775
|
-
export interface
|
|
7776
|
-
|
|
8087
|
+
export interface Swipe {
|
|
8088
|
+
swipe: Swipe1;
|
|
7777
8089
|
[k: string]: unknown;
|
|
7778
8090
|
}
|
|
7779
|
-
export interface
|
|
8091
|
+
export interface SwipeDirectional {
|
|
8092
|
+
direction: SwipeSimple1;
|
|
7780
8093
|
/**
|
|
7781
|
-
*
|
|
8094
|
+
* How far to swipe, as a fraction of the surface's height (for up/down) or width (for left/right).
|
|
7782
8095
|
*/
|
|
7783
|
-
|
|
7784
|
-
browser?: Browser2;
|
|
7785
|
-
openApi?: (OpenApi1 & OpenAPIDescriptionTest1)[];
|
|
8096
|
+
distance?: number;
|
|
7786
8097
|
/**
|
|
7787
|
-
*
|
|
7788
|
-
*
|
|
7789
|
-
* @minItems 1
|
|
8098
|
+
* Duration of the swipe movement in milliseconds.
|
|
7790
8099
|
*/
|
|
7791
|
-
|
|
7792
|
-
[k: string]: unknown;
|
|
7793
|
-
}
|
|
7794
|
-
/**
|
|
7795
|
-
* Browser configuration.
|
|
7796
|
-
*/
|
|
7797
|
-
export interface Browser2 {
|
|
8100
|
+
duration?: number;
|
|
7798
8101
|
/**
|
|
7799
|
-
*
|
|
8102
|
+
* The browser window/tab or app window this step acts on. Omit to act on the active tab. The targeted surface stays focused afterward. App surfaces use the object form ({ "app": … }).
|
|
7800
8103
|
*/
|
|
7801
|
-
|
|
8104
|
+
surface?: SurfaceByBrowserEngine5 | BrowserSurface8 | AppSurface4;
|
|
8105
|
+
}
|
|
8106
|
+
export interface BrowserSurface8 {
|
|
7802
8107
|
/**
|
|
7803
|
-
*
|
|
8108
|
+
* Browser engine. Selects the browser surface with that engine (or the one named by `name`). A goTo step opens the browser if it isn't open yet; other steps require it to already be open.
|
|
7804
8109
|
*/
|
|
7805
|
-
|
|
8110
|
+
browser: "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
7806
8111
|
/**
|
|
7807
|
-
*
|
|
8112
|
+
* Name of the browser surface. Defaults to the engine name (the context's default browser registers under its engine). Assign distinct names to drive multiple browsers at once, including several of the same engine.
|
|
7808
8113
|
*/
|
|
7809
|
-
|
|
7810
|
-
window?:
|
|
7811
|
-
|
|
8114
|
+
name?: string;
|
|
8115
|
+
window?: WindowTabSelector16;
|
|
8116
|
+
tab?: WindowTabSelector17;
|
|
7812
8117
|
}
|
|
7813
|
-
|
|
7814
|
-
* Browser dimensions.
|
|
7815
|
-
*/
|
|
7816
|
-
export interface BrowserWindow2 {
|
|
8118
|
+
export interface ByCriteria20 {
|
|
7817
8119
|
/**
|
|
7818
|
-
*
|
|
8120
|
+
* Name assigned when the window/tab was opened.
|
|
7819
8121
|
*/
|
|
7820
|
-
|
|
8122
|
+
name?: string;
|
|
7821
8123
|
/**
|
|
7822
|
-
*
|
|
8124
|
+
* Index in creation order. Negative counts from the end.
|
|
7823
8125
|
*/
|
|
7824
|
-
|
|
7825
|
-
}
|
|
7826
|
-
/**
|
|
7827
|
-
* Viewport dimensions.
|
|
7828
|
-
*/
|
|
7829
|
-
export interface BrowserViewport2 {
|
|
8126
|
+
index?: number;
|
|
7830
8127
|
/**
|
|
7831
|
-
*
|
|
8128
|
+
* Page title to match. Substring, or /regex/.
|
|
7832
8129
|
*/
|
|
7833
|
-
|
|
8130
|
+
title?: string;
|
|
7834
8131
|
/**
|
|
7835
|
-
*
|
|
8132
|
+
* Page URL to match. Substring, or /regex/.
|
|
7836
8133
|
*/
|
|
7837
|
-
|
|
7838
|
-
}
|
|
7839
|
-
export interface OpenAPIDescriptionTest1 {
|
|
7840
|
-
[k: string]: unknown;
|
|
8134
|
+
url?: string;
|
|
7841
8135
|
}
|
|
7842
|
-
export interface
|
|
8136
|
+
export interface ByCriteria21 {
|
|
7843
8137
|
/**
|
|
7844
|
-
*
|
|
8138
|
+
* Name assigned when the window/tab was opened.
|
|
7845
8139
|
*/
|
|
7846
|
-
|
|
8140
|
+
name?: string;
|
|
7847
8141
|
/**
|
|
7848
|
-
*
|
|
8142
|
+
* Index in creation order. Negative counts from the end.
|
|
7849
8143
|
*/
|
|
7850
|
-
|
|
8144
|
+
index?: number;
|
|
7851
8145
|
/**
|
|
7852
|
-
*
|
|
8146
|
+
* Page title to match. Substring, or /regex/.
|
|
7853
8147
|
*/
|
|
7854
|
-
|
|
8148
|
+
title?: string;
|
|
7855
8149
|
/**
|
|
7856
|
-
*
|
|
8150
|
+
* Page URL to match. Substring, or /regex/.
|
|
8151
|
+
*/
|
|
8152
|
+
url?: string;
|
|
8153
|
+
}
|
|
8154
|
+
export interface AppSurface4 {
|
|
8155
|
+
/**
|
|
8156
|
+
* Name of an app surface opened by `startSurface` (its `name`, or the default derived from the app identifier).
|
|
8157
|
+
*/
|
|
8158
|
+
app: string;
|
|
8159
|
+
window?: AppWindowSelector4;
|
|
8160
|
+
}
|
|
8161
|
+
export interface ByCriteria22 {
|
|
8162
|
+
/**
|
|
8163
|
+
* Assigned window name.
|
|
8164
|
+
*/
|
|
8165
|
+
name?: string;
|
|
8166
|
+
/**
|
|
8167
|
+
* Index in creation order. Negative counts from the end.
|
|
8168
|
+
*/
|
|
8169
|
+
index?: number;
|
|
8170
|
+
/**
|
|
8171
|
+
* Window title to match. Substring, or /regex/.
|
|
8172
|
+
*/
|
|
8173
|
+
title?: string;
|
|
8174
|
+
}
|
|
8175
|
+
export interface SwipePointToPoint {
|
|
8176
|
+
from: Point;
|
|
8177
|
+
to: Point1;
|
|
8178
|
+
/**
|
|
8179
|
+
* Duration of the swipe movement in milliseconds.
|
|
8180
|
+
*/
|
|
8181
|
+
duration?: number;
|
|
8182
|
+
/**
|
|
8183
|
+
* The browser window/tab or app window this step acts on. Omit to act on the active tab. The targeted surface stays focused afterward. App surfaces use the object form ({ "app": … }).
|
|
8184
|
+
*/
|
|
8185
|
+
surface?: SurfaceByBrowserEngine6 | BrowserSurface9 | AppSurface5;
|
|
8186
|
+
}
|
|
8187
|
+
/**
|
|
8188
|
+
* A pixel coordinate on the surface, measured from its top-left corner (0, 0).
|
|
8189
|
+
*/
|
|
8190
|
+
export interface Point {
|
|
8191
|
+
/**
|
|
8192
|
+
* Horizontal position in pixels from the left edge of the surface (the app window, or the browser viewport).
|
|
8193
|
+
*/
|
|
8194
|
+
x: number;
|
|
8195
|
+
/**
|
|
8196
|
+
* Vertical position in pixels from the top edge of the surface (the app window, or the browser viewport).
|
|
8197
|
+
*/
|
|
8198
|
+
y: number;
|
|
8199
|
+
}
|
|
8200
|
+
/**
|
|
8201
|
+
* A pixel coordinate on the surface, measured from its top-left corner (0, 0).
|
|
8202
|
+
*/
|
|
8203
|
+
export interface Point1 {
|
|
8204
|
+
/**
|
|
8205
|
+
* Horizontal position in pixels from the left edge of the surface (the app window, or the browser viewport).
|
|
8206
|
+
*/
|
|
8207
|
+
x: number;
|
|
8208
|
+
/**
|
|
8209
|
+
* Vertical position in pixels from the top edge of the surface (the app window, or the browser viewport).
|
|
8210
|
+
*/
|
|
8211
|
+
y: number;
|
|
8212
|
+
}
|
|
8213
|
+
export interface BrowserSurface9 {
|
|
8214
|
+
/**
|
|
8215
|
+
* Browser engine. Selects the browser surface with that engine (or the one named by `name`). A goTo step opens the browser if it isn't open yet; other steps require it to already be open.
|
|
8216
|
+
*/
|
|
8217
|
+
browser: "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
8218
|
+
/**
|
|
8219
|
+
* Name of the browser surface. Defaults to the engine name (the context's default browser registers under its engine). Assign distinct names to drive multiple browsers at once, including several of the same engine.
|
|
8220
|
+
*/
|
|
8221
|
+
name?: string;
|
|
8222
|
+
window?: WindowTabSelector18;
|
|
8223
|
+
tab?: WindowTabSelector19;
|
|
8224
|
+
}
|
|
8225
|
+
export interface ByCriteria23 {
|
|
8226
|
+
/**
|
|
8227
|
+
* Name assigned when the window/tab was opened.
|
|
8228
|
+
*/
|
|
8229
|
+
name?: string;
|
|
8230
|
+
/**
|
|
8231
|
+
* Index in creation order. Negative counts from the end.
|
|
8232
|
+
*/
|
|
8233
|
+
index?: number;
|
|
8234
|
+
/**
|
|
8235
|
+
* Page title to match. Substring, or /regex/.
|
|
8236
|
+
*/
|
|
8237
|
+
title?: string;
|
|
8238
|
+
/**
|
|
8239
|
+
* Page URL to match. Substring, or /regex/.
|
|
8240
|
+
*/
|
|
8241
|
+
url?: string;
|
|
8242
|
+
}
|
|
8243
|
+
export interface ByCriteria24 {
|
|
8244
|
+
/**
|
|
8245
|
+
* Name assigned when the window/tab was opened.
|
|
8246
|
+
*/
|
|
8247
|
+
name?: string;
|
|
8248
|
+
/**
|
|
8249
|
+
* Index in creation order. Negative counts from the end.
|
|
8250
|
+
*/
|
|
8251
|
+
index?: number;
|
|
8252
|
+
/**
|
|
8253
|
+
* Page title to match. Substring, or /regex/.
|
|
8254
|
+
*/
|
|
8255
|
+
title?: string;
|
|
8256
|
+
/**
|
|
8257
|
+
* Page URL to match. Substring, or /regex/.
|
|
8258
|
+
*/
|
|
8259
|
+
url?: string;
|
|
8260
|
+
}
|
|
8261
|
+
export interface AppSurface5 {
|
|
8262
|
+
/**
|
|
8263
|
+
* Name of an app surface opened by `startSurface` (its `name`, or the default derived from the app identifier).
|
|
8264
|
+
*/
|
|
8265
|
+
app: string;
|
|
8266
|
+
window?: AppWindowSelector5;
|
|
8267
|
+
}
|
|
8268
|
+
export interface ByCriteria25 {
|
|
8269
|
+
/**
|
|
8270
|
+
* Assigned window name.
|
|
8271
|
+
*/
|
|
8272
|
+
name?: string;
|
|
8273
|
+
/**
|
|
8274
|
+
* Index in creation order. Negative counts from the end.
|
|
8275
|
+
*/
|
|
8276
|
+
index?: number;
|
|
8277
|
+
/**
|
|
8278
|
+
* Window title to match. Substring, or /regex/.
|
|
8279
|
+
*/
|
|
8280
|
+
title?: string;
|
|
8281
|
+
}
|
|
8282
|
+
export interface Common19 {
|
|
8283
|
+
/**
|
|
8284
|
+
* JSON Schema for this object.
|
|
8285
|
+
*/
|
|
8286
|
+
$schema?: "https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/step_v3.schema.json";
|
|
8287
|
+
/**
|
|
8288
|
+
* ID of the step.
|
|
8289
|
+
*/
|
|
8290
|
+
stepId?: string;
|
|
8291
|
+
/**
|
|
8292
|
+
* Description of the step.
|
|
8293
|
+
*/
|
|
8294
|
+
description?: string;
|
|
8295
|
+
/**
|
|
8296
|
+
* Whether or not the step may be unsafe. Unsafe steps may perform actions that could modify the system or environment in unexpected ways. Unsafe steps are only performed within Docker containers or if unsafe steps are enabled with the `allowUnsafeSteps` config property or the `--allow-unsafe` flag.
|
|
7857
8297
|
*/
|
|
7858
8298
|
unsafe?: boolean;
|
|
7859
8299
|
outputs?: OutputsStep19;
|
|
@@ -7972,42 +8412,72 @@ export interface SourceLocation19 {
|
|
|
7972
8412
|
*/
|
|
7973
8413
|
endIndex: number;
|
|
7974
8414
|
}
|
|
7975
|
-
export interface
|
|
7976
|
-
|
|
8415
|
+
export interface Wait {
|
|
8416
|
+
wait: Wait1;
|
|
8417
|
+
[k: string]: unknown;
|
|
8418
|
+
}
|
|
8419
|
+
export interface ResolvedContext {
|
|
8420
|
+
/**
|
|
8421
|
+
* Platform to run the test on. This is a resolved version of the `platforms` property.
|
|
8422
|
+
*/
|
|
8423
|
+
platform?: string;
|
|
8424
|
+
browser?: Browser2;
|
|
8425
|
+
openApi?: (OpenApi1 & OpenAPIDescriptionTest1)[];
|
|
8426
|
+
/**
|
|
8427
|
+
* Steps to perform as part of the test. Performed in the sequence defined. If one or more actions fail, the test fails. By default, if a step fails, the test stops and the remaining steps are not executed.
|
|
8428
|
+
*
|
|
8429
|
+
* @minItems 1
|
|
8430
|
+
*/
|
|
8431
|
+
steps?: [Step1, ...Step1[]];
|
|
7977
8432
|
[k: string]: unknown;
|
|
7978
8433
|
}
|
|
7979
8434
|
/**
|
|
7980
|
-
*
|
|
8435
|
+
* Browser configuration.
|
|
7981
8436
|
*/
|
|
7982
|
-
export interface
|
|
8437
|
+
export interface Browser2 {
|
|
7983
8438
|
/**
|
|
7984
|
-
*
|
|
8439
|
+
* Name of the browser.
|
|
7985
8440
|
*/
|
|
7986
|
-
|
|
8441
|
+
name: "chrome" | "firefox" | "safari" | "webkit";
|
|
7987
8442
|
/**
|
|
7988
|
-
*
|
|
8443
|
+
* Set automatically during context resolution: `true` when the author explicitly requested this browser (as opposed to it being auto-selected as the default). The runner's cross-browser fallback uses it to decide whether substituting another engine reports `PASS` (auto-selected) or `WARNING` (explicitly pinned).
|
|
7989
8444
|
*/
|
|
7990
|
-
|
|
8445
|
+
explicit?: boolean;
|
|
7991
8446
|
/**
|
|
7992
|
-
*
|
|
8447
|
+
* If `true`, runs the browser in headless mode.
|
|
7993
8448
|
*/
|
|
7994
|
-
|
|
7995
|
-
|
|
7996
|
-
|
|
8449
|
+
headless?: boolean;
|
|
8450
|
+
window?: BrowserWindow2;
|
|
8451
|
+
viewport?: BrowserViewport2;
|
|
8452
|
+
}
|
|
8453
|
+
/**
|
|
8454
|
+
* Browser dimensions.
|
|
8455
|
+
*/
|
|
8456
|
+
export interface BrowserWindow2 {
|
|
7997
8457
|
/**
|
|
7998
|
-
*
|
|
8458
|
+
* Width of the browser window in pixels.
|
|
7999
8459
|
*/
|
|
8000
|
-
|
|
8460
|
+
width?: number;
|
|
8001
8461
|
/**
|
|
8002
|
-
*
|
|
8462
|
+
* Height of the browser window in pixels.
|
|
8003
8463
|
*/
|
|
8004
|
-
|
|
8464
|
+
height?: number;
|
|
8005
8465
|
}
|
|
8006
8466
|
/**
|
|
8007
|
-
*
|
|
8467
|
+
* Viewport dimensions.
|
|
8008
8468
|
*/
|
|
8009
|
-
export interface
|
|
8010
|
-
|
|
8469
|
+
export interface BrowserViewport2 {
|
|
8470
|
+
/**
|
|
8471
|
+
* Width of the viewport in pixels.
|
|
8472
|
+
*/
|
|
8473
|
+
width?: number;
|
|
8474
|
+
/**
|
|
8475
|
+
* Height of the viewport in pixels.
|
|
8476
|
+
*/
|
|
8477
|
+
height?: number;
|
|
8478
|
+
}
|
|
8479
|
+
export interface OpenAPIDescriptionTest1 {
|
|
8480
|
+
[k: string]: unknown;
|
|
8011
8481
|
}
|
|
8012
8482
|
export interface Common20 {
|
|
8013
8483
|
/**
|
|
@@ -8142,10 +8612,43 @@ export interface SourceLocation20 {
|
|
|
8142
8612
|
*/
|
|
8143
8613
|
endIndex: number;
|
|
8144
8614
|
}
|
|
8145
|
-
export interface
|
|
8146
|
-
|
|
8615
|
+
export interface CheckLink2 {
|
|
8616
|
+
checkLink: CheckLink3;
|
|
8147
8617
|
[k: string]: unknown;
|
|
8148
8618
|
}
|
|
8619
|
+
/**
|
|
8620
|
+
* Check if an HTTP or HTTPS URL returns an acceptable status code from a GET request.
|
|
8621
|
+
*/
|
|
8622
|
+
export interface CheckLinkDetailed3 {
|
|
8623
|
+
/**
|
|
8624
|
+
* URL to check. Can be a full URL or a path. If a path is provided, `origin` must be specified.
|
|
8625
|
+
*/
|
|
8626
|
+
url: string;
|
|
8627
|
+
/**
|
|
8628
|
+
* Protocol and domain to navigate to. Prepended to `url`.
|
|
8629
|
+
*/
|
|
8630
|
+
origin?: string;
|
|
8631
|
+
/**
|
|
8632
|
+
* Query parameters to append to the resolved URL. Merged on top of `originParams` from config; step keys win on collision. If `url` already contains a colliding query key, the value here replaces it. Values support environment variable substitution via `$VAR` syntax. WARNING: values are embedded in the request URL and appear in test results, logs, and reports.
|
|
8633
|
+
*/
|
|
8634
|
+
params?: {
|
|
8635
|
+
[k: string]: string;
|
|
8636
|
+
};
|
|
8637
|
+
/**
|
|
8638
|
+
* Accepted status codes. If the specified URL returns a code other than what is specified here, the action fails.
|
|
8639
|
+
*/
|
|
8640
|
+
statusCodes?: number | number[];
|
|
8641
|
+
/**
|
|
8642
|
+
* Additional HTTP headers to include in the request. Merged on top of Doc Detective's default browser-mimicking headers. Useful for sites behind bot protection or WAFs that allowlist specific headers (for example, a Cloudflare Access service token or a `Cookie` with a `cf_clearance` value).
|
|
8643
|
+
*/
|
|
8644
|
+
headers?: RequestHeadersObject1 | RequestHeadersString1;
|
|
8645
|
+
}
|
|
8646
|
+
/**
|
|
8647
|
+
* Headers to include in the HTTP request, in key/value format. Values must be strings.
|
|
8648
|
+
*/
|
|
8649
|
+
export interface RequestHeadersObject1 {
|
|
8650
|
+
[k: string]: string;
|
|
8651
|
+
}
|
|
8149
8652
|
export interface Common21 {
|
|
8150
8653
|
/**
|
|
8151
8654
|
* JSON Schema for this object.
|
|
@@ -8279,8 +8782,8 @@ export interface SourceLocation21 {
|
|
|
8279
8782
|
*/
|
|
8280
8783
|
endIndex: number;
|
|
8281
8784
|
}
|
|
8282
|
-
export interface
|
|
8283
|
-
|
|
8785
|
+
export interface Click2 {
|
|
8786
|
+
click: Click3;
|
|
8284
8787
|
[k: string]: unknown;
|
|
8285
8788
|
}
|
|
8286
8789
|
export interface Common22 {
|
|
@@ -8416,76 +8919,19 @@ export interface SourceLocation22 {
|
|
|
8416
8919
|
*/
|
|
8417
8920
|
endIndex: number;
|
|
8418
8921
|
}
|
|
8419
|
-
export interface
|
|
8420
|
-
|
|
8922
|
+
export interface Find2 {
|
|
8923
|
+
find: Find3;
|
|
8421
8924
|
[k: string]: unknown;
|
|
8422
8925
|
}
|
|
8423
|
-
export interface
|
|
8926
|
+
export interface Common23 {
|
|
8424
8927
|
/**
|
|
8425
|
-
*
|
|
8928
|
+
* JSON Schema for this object.
|
|
8426
8929
|
*/
|
|
8427
|
-
|
|
8930
|
+
$schema?: "https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/step_v3.schema.json";
|
|
8428
8931
|
/**
|
|
8429
|
-
*
|
|
8932
|
+
* ID of the step.
|
|
8430
8933
|
*/
|
|
8431
|
-
|
|
8432
|
-
window?: WindowTabSelector16;
|
|
8433
|
-
tab?: WindowTabSelector17;
|
|
8434
|
-
}
|
|
8435
|
-
export interface ByCriteria20 {
|
|
8436
|
-
/**
|
|
8437
|
-
* Name assigned when the window/tab was opened.
|
|
8438
|
-
*/
|
|
8439
|
-
name?: string;
|
|
8440
|
-
/**
|
|
8441
|
-
* Index in creation order. Negative counts from the end.
|
|
8442
|
-
*/
|
|
8443
|
-
index?: number;
|
|
8444
|
-
/**
|
|
8445
|
-
* Page title to match. Substring, or /regex/.
|
|
8446
|
-
*/
|
|
8447
|
-
title?: string;
|
|
8448
|
-
/**
|
|
8449
|
-
* Page URL to match. Substring, or /regex/.
|
|
8450
|
-
*/
|
|
8451
|
-
url?: string;
|
|
8452
|
-
}
|
|
8453
|
-
export interface ByCriteria21 {
|
|
8454
|
-
/**
|
|
8455
|
-
* Name assigned when the window/tab was opened.
|
|
8456
|
-
*/
|
|
8457
|
-
name?: string;
|
|
8458
|
-
/**
|
|
8459
|
-
* Index in creation order. Negative counts from the end.
|
|
8460
|
-
*/
|
|
8461
|
-
index?: number;
|
|
8462
|
-
/**
|
|
8463
|
-
* Page title to match. Substring, or /regex/.
|
|
8464
|
-
*/
|
|
8465
|
-
title?: string;
|
|
8466
|
-
/**
|
|
8467
|
-
* Page URL to match. Substring, or /regex/.
|
|
8468
|
-
*/
|
|
8469
|
-
url?: string;
|
|
8470
|
-
}
|
|
8471
|
-
export interface NewTabAndNewWindowAreMutuallyExclusive1 {
|
|
8472
|
-
[k: string]: unknown;
|
|
8473
|
-
}
|
|
8474
|
-
export interface NewTabConflictsWithASurfaceTabSelector1 {
|
|
8475
|
-
[k: string]: unknown;
|
|
8476
|
-
}
|
|
8477
|
-
export interface NewWindowConflictsWithASurfaceWindowOrTabSelector1 {
|
|
8478
|
-
[k: string]: unknown;
|
|
8479
|
-
}
|
|
8480
|
-
export interface Common23 {
|
|
8481
|
-
/**
|
|
8482
|
-
* JSON Schema for this object.
|
|
8483
|
-
*/
|
|
8484
|
-
$schema?: "https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/step_v3.schema.json";
|
|
8485
|
-
/**
|
|
8486
|
-
* ID of the step.
|
|
8487
|
-
*/
|
|
8488
|
-
stepId?: string;
|
|
8934
|
+
stepId?: string;
|
|
8489
8935
|
/**
|
|
8490
8936
|
* Description of the step.
|
|
8491
8937
|
*/
|
|
@@ -8610,8 +9056,65 @@ export interface SourceLocation23 {
|
|
|
8610
9056
|
*/
|
|
8611
9057
|
endIndex: number;
|
|
8612
9058
|
}
|
|
8613
|
-
export interface
|
|
8614
|
-
|
|
9059
|
+
export interface GoTo2 {
|
|
9060
|
+
goTo: GoTo3;
|
|
9061
|
+
[k: string]: unknown;
|
|
9062
|
+
}
|
|
9063
|
+
export interface BrowserSurface10 {
|
|
9064
|
+
/**
|
|
9065
|
+
* Browser engine. Selects the browser surface with that engine (or the one named by `name`). A goTo step opens the browser if it isn't open yet; other steps require it to already be open.
|
|
9066
|
+
*/
|
|
9067
|
+
browser: "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
9068
|
+
/**
|
|
9069
|
+
* Name of the browser surface. Defaults to the engine name (the context's default browser registers under its engine). Assign distinct names to drive multiple browsers at once, including several of the same engine.
|
|
9070
|
+
*/
|
|
9071
|
+
name?: string;
|
|
9072
|
+
window?: WindowTabSelector20;
|
|
9073
|
+
tab?: WindowTabSelector21;
|
|
9074
|
+
}
|
|
9075
|
+
export interface ByCriteria26 {
|
|
9076
|
+
/**
|
|
9077
|
+
* Name assigned when the window/tab was opened.
|
|
9078
|
+
*/
|
|
9079
|
+
name?: string;
|
|
9080
|
+
/**
|
|
9081
|
+
* Index in creation order. Negative counts from the end.
|
|
9082
|
+
*/
|
|
9083
|
+
index?: number;
|
|
9084
|
+
/**
|
|
9085
|
+
* Page title to match. Substring, or /regex/.
|
|
9086
|
+
*/
|
|
9087
|
+
title?: string;
|
|
9088
|
+
/**
|
|
9089
|
+
* Page URL to match. Substring, or /regex/.
|
|
9090
|
+
*/
|
|
9091
|
+
url?: string;
|
|
9092
|
+
}
|
|
9093
|
+
export interface ByCriteria27 {
|
|
9094
|
+
/**
|
|
9095
|
+
* Name assigned when the window/tab was opened.
|
|
9096
|
+
*/
|
|
9097
|
+
name?: string;
|
|
9098
|
+
/**
|
|
9099
|
+
* Index in creation order. Negative counts from the end.
|
|
9100
|
+
*/
|
|
9101
|
+
index?: number;
|
|
9102
|
+
/**
|
|
9103
|
+
* Page title to match. Substring, or /regex/.
|
|
9104
|
+
*/
|
|
9105
|
+
title?: string;
|
|
9106
|
+
/**
|
|
9107
|
+
* Page URL to match. Substring, or /regex/.
|
|
9108
|
+
*/
|
|
9109
|
+
url?: string;
|
|
9110
|
+
}
|
|
9111
|
+
export interface NewTabAndNewWindowAreMutuallyExclusive1 {
|
|
9112
|
+
[k: string]: unknown;
|
|
9113
|
+
}
|
|
9114
|
+
export interface NewTabConflictsWithASurfaceTabSelector1 {
|
|
9115
|
+
[k: string]: unknown;
|
|
9116
|
+
}
|
|
9117
|
+
export interface NewWindowConflictsWithASurfaceWindowOrTabSelector1 {
|
|
8615
9118
|
[k: string]: unknown;
|
|
8616
9119
|
}
|
|
8617
9120
|
export interface Common24 {
|
|
@@ -8747,87 +9250,10 @@ export interface SourceLocation24 {
|
|
|
8747
9250
|
*/
|
|
8748
9251
|
endIndex: number;
|
|
8749
9252
|
}
|
|
8750
|
-
export interface
|
|
8751
|
-
|
|
9253
|
+
export interface HttpRequest2 {
|
|
9254
|
+
httpRequest: HttpRequest3;
|
|
8752
9255
|
[k: string]: unknown;
|
|
8753
9256
|
}
|
|
8754
|
-
export interface RunShellCommandDetailed1 {
|
|
8755
|
-
/**
|
|
8756
|
-
* Command to perform in the machine's default shell.
|
|
8757
|
-
*/
|
|
8758
|
-
command: string;
|
|
8759
|
-
/**
|
|
8760
|
-
* Arguments for the command.
|
|
8761
|
-
*/
|
|
8762
|
-
args?: string[];
|
|
8763
|
-
/**
|
|
8764
|
-
* Working directory for the command.
|
|
8765
|
-
*/
|
|
8766
|
-
workingDirectory?: string;
|
|
8767
|
-
/**
|
|
8768
|
-
* Expected exit codes of the command. If the command's actual exit code isn't in this list, the step fails.
|
|
8769
|
-
*/
|
|
8770
|
-
exitCodes?: number[];
|
|
8771
|
-
/**
|
|
8772
|
-
* Content expected in the command's stdout or stderr. If the expected content can't be found in the command's stdout or stderr, the step fails. Supports strings and regular expressions. To use a regular expression, the string must start and end with a forward slash, like in `/^hello-world.* /`.
|
|
8773
|
-
*/
|
|
8774
|
-
stdio?: string;
|
|
8775
|
-
/**
|
|
8776
|
-
* File path to save the command's output, relative to `directory`.
|
|
8777
|
-
*/
|
|
8778
|
-
path?: string;
|
|
8779
|
-
/**
|
|
8780
|
-
* Directory to save the command's output. If the directory doesn't exist, creates the directory. If not specified, the directory is your media directory.
|
|
8781
|
-
*/
|
|
8782
|
-
directory?: string;
|
|
8783
|
-
/**
|
|
8784
|
-
* Allowed variation as a fraction (0 to 1) of text different between the current output and previously saved output. For example, 0.1 means 10%. If the difference between the current output and the previous output is greater than `maxVariation`, the step fails. If output doesn't exist at `path`, this value is ignored.
|
|
8785
|
-
*/
|
|
8786
|
-
maxVariation?: number;
|
|
8787
|
-
/**
|
|
8788
|
-
* If `true`, overwrites the existing output at `path` if it exists.
|
|
8789
|
-
* If `aboveVariation`, overwrites the existing output at `path` if the difference between the new output and the existing output is greater than `maxVariation`.
|
|
8790
|
-
*/
|
|
8791
|
-
overwrite?: "true" | "false" | "aboveVariation";
|
|
8792
|
-
/**
|
|
8793
|
-
* Max time in milliseconds the command is allowed to run. If the command runs longer than this, the step fails. When `background` is set, this is instead the max time to wait for `background.waitUntil` to be satisfied before the step fails.
|
|
8794
|
-
*/
|
|
8795
|
-
timeout?: number;
|
|
8796
|
-
/**
|
|
8797
|
-
* Start the command as a long-running background process and return as soon as it is ready, instead of waiting for it to exit. When set, `exitCodes`, `stdio`, and output saving (`path`, `directory`, `maxVariation`, `overwrite`) are ignored, and `timeout` is the max time to wait for `waitUntil`. The process is owned by the run and is stopped by a `closeSurface` step or automatically when the run finishes.
|
|
8798
|
-
*/
|
|
8799
|
-
background?: {
|
|
8800
|
-
/**
|
|
8801
|
-
* Unique identifier for this background process within the run. Reference it from a `closeSurface` step to stop it.
|
|
8802
|
-
*/
|
|
8803
|
-
name: string;
|
|
8804
|
-
/**
|
|
8805
|
-
* Conditions that must all be met before the process is considered ready and the step proceeds. Omit to consider the process ready as soon as it is spawned. Specify any combination; every condition given must pass before `timeout` elapses. Note: a process that forks a daemon and then exits (common for some Docker images and databases) is treated as having exited before becoming ready and the step fails — use `port`, `httpGet`, or `delayMs` for those rather than a condition that depends on the foreground process staying alive.
|
|
8806
|
-
*/
|
|
8807
|
-
waitUntil?: {
|
|
8808
|
-
/**
|
|
8809
|
-
* Wait until this TCP port accepts connections on localhost.
|
|
8810
|
-
*/
|
|
8811
|
-
port?: number;
|
|
8812
|
-
/**
|
|
8813
|
-
* Wait until the process's output contains this content. Searches both stdout and stderr. Supports strings and regular expressions. To use a regular expression, the string must start and end with a forward slash, like in `/ready on \d+/`.
|
|
8814
|
-
*/
|
|
8815
|
-
stdio?: string;
|
|
8816
|
-
/**
|
|
8817
|
-
* Wait until an HTTP GET request to this URL returns a 2xx status.
|
|
8818
|
-
*/
|
|
8819
|
-
httpGet?: string;
|
|
8820
|
-
/**
|
|
8821
|
-
* Wait at least this many milliseconds.
|
|
8822
|
-
*/
|
|
8823
|
-
delayMs?: number;
|
|
8824
|
-
};
|
|
8825
|
-
/**
|
|
8826
|
-
* Run the process in a pseudo-terminal (PTY) instead of a pipe, so full-screen/interactive TUIs (those that check `isTTY`) render and accept keystrokes. Requires the PTY backend `@homebridge/node-pty-prebuilt-multiarch` to be installed (`npm install @homebridge/node-pty-prebuilt-multiarch`); it is not bundled, and if it is unavailable the step is skipped. `stdout` and `stderr` are merged into one stream in PTY mode. PTY output includes raw ANSI escape sequences (colors, cursor movement); `waitUntil.stdio` patterns should target text that renders without interleaved control codes, or use a regex that tolerates them.
|
|
8827
|
-
*/
|
|
8828
|
-
tty?: boolean;
|
|
8829
|
-
};
|
|
8830
|
-
}
|
|
8831
9257
|
export interface Common25 {
|
|
8832
9258
|
/**
|
|
8833
9259
|
* JSON Schema for this object.
|
|
@@ -8961,19 +9387,15 @@ export interface SourceLocation25 {
|
|
|
8961
9387
|
*/
|
|
8962
9388
|
endIndex: number;
|
|
8963
9389
|
}
|
|
8964
|
-
export interface
|
|
8965
|
-
|
|
9390
|
+
export interface RunShell2 {
|
|
9391
|
+
runShell: RunShell3;
|
|
8966
9392
|
[k: string]: unknown;
|
|
8967
9393
|
}
|
|
8968
|
-
export interface
|
|
8969
|
-
/**
|
|
8970
|
-
* Language of the code to run.
|
|
8971
|
-
*/
|
|
8972
|
-
language: "python" | "bash" | "javascript";
|
|
9394
|
+
export interface RunShellCommandDetailed1 {
|
|
8973
9395
|
/**
|
|
8974
|
-
*
|
|
9396
|
+
* Command to perform in the machine's default shell.
|
|
8975
9397
|
*/
|
|
8976
|
-
|
|
9398
|
+
command: string;
|
|
8977
9399
|
/**
|
|
8978
9400
|
* Arguments for the command.
|
|
8979
9401
|
*/
|
|
@@ -8987,7 +9409,7 @@ export interface RunCodeDetailed1 {
|
|
|
8987
9409
|
*/
|
|
8988
9410
|
exitCodes?: number[];
|
|
8989
9411
|
/**
|
|
8990
|
-
* Content expected in the command's
|
|
9412
|
+
* Content expected in the command's stdout or stderr. If the expected content can't be found in the command's stdout or stderr, the step fails. Supports strings and regular expressions. To use a regular expression, the string must start and end with a forward slash, like in `/^hello-world.* /`.
|
|
8991
9413
|
*/
|
|
8992
9414
|
stdio?: string;
|
|
8993
9415
|
/**
|
|
@@ -9012,7 +9434,7 @@ export interface RunCodeDetailed1 {
|
|
|
9012
9434
|
*/
|
|
9013
9435
|
timeout?: number;
|
|
9014
9436
|
/**
|
|
9015
|
-
* Start the
|
|
9437
|
+
* Start the command as a long-running background process and return as soon as it is ready, instead of waiting for it to exit. When set, `exitCodes`, `stdio`, and output saving (`path`, `directory`, `maxVariation`, `overwrite`) are ignored, and `timeout` is the max time to wait for `waitUntil`. The process is owned by the run and is stopped by a `closeSurface` step or automatically when the run finishes.
|
|
9016
9438
|
*/
|
|
9017
9439
|
background?: {
|
|
9018
9440
|
/**
|
|
@@ -9045,7 +9467,6 @@ export interface RunCodeDetailed1 {
|
|
|
9045
9467
|
*/
|
|
9046
9468
|
tty?: boolean;
|
|
9047
9469
|
};
|
|
9048
|
-
[k: string]: unknown;
|
|
9049
9470
|
}
|
|
9050
9471
|
export interface Common26 {
|
|
9051
9472
|
/**
|
|
@@ -9180,37 +9601,45 @@ export interface SourceLocation26 {
|
|
|
9180
9601
|
*/
|
|
9181
9602
|
endIndex: number;
|
|
9182
9603
|
}
|
|
9183
|
-
export interface
|
|
9184
|
-
|
|
9604
|
+
export interface RunCode2 {
|
|
9605
|
+
runCode: RunCode3;
|
|
9185
9606
|
[k: string]: unknown;
|
|
9186
9607
|
}
|
|
9187
|
-
export interface
|
|
9608
|
+
export interface RunCodeDetailed1 {
|
|
9188
9609
|
/**
|
|
9189
|
-
*
|
|
9610
|
+
* Language of the code to run.
|
|
9190
9611
|
*/
|
|
9191
|
-
|
|
9612
|
+
language: "python" | "bash" | "javascript";
|
|
9192
9613
|
/**
|
|
9193
|
-
*
|
|
9614
|
+
* Code to run.
|
|
9194
9615
|
*/
|
|
9195
|
-
|
|
9616
|
+
code: string;
|
|
9196
9617
|
/**
|
|
9197
|
-
* Arguments
|
|
9618
|
+
* Arguments for the command.
|
|
9198
9619
|
*/
|
|
9199
|
-
args?:
|
|
9620
|
+
args?: string[];
|
|
9200
9621
|
/**
|
|
9201
|
-
*
|
|
9622
|
+
* Working directory for the command.
|
|
9202
9623
|
*/
|
|
9203
|
-
|
|
9624
|
+
workingDirectory?: string;
|
|
9204
9625
|
/**
|
|
9205
|
-
*
|
|
9626
|
+
* Expected exit codes of the command. If the command's actual exit code isn't in this list, the step fails.
|
|
9627
|
+
*/
|
|
9628
|
+
exitCodes?: number[];
|
|
9629
|
+
/**
|
|
9630
|
+
* Content expected in the command's output. If the expected content can't be found in the command's output (either stdout or stderr), the step fails. Supports strings and regular expressions. To use a regular expression, the string must start and end with a forward slash, like in `/^hello-world.* /`.
|
|
9631
|
+
*/
|
|
9632
|
+
stdio?: string;
|
|
9633
|
+
/**
|
|
9634
|
+
* File path to save the command's output, relative to `directory`.
|
|
9206
9635
|
*/
|
|
9207
9636
|
path?: string;
|
|
9208
9637
|
/**
|
|
9209
|
-
* Directory to save the
|
|
9638
|
+
* Directory to save the command's output. If the directory doesn't exist, creates the directory. If not specified, the directory is your media directory.
|
|
9210
9639
|
*/
|
|
9211
9640
|
directory?: string;
|
|
9212
9641
|
/**
|
|
9213
|
-
* Allowed variation as a fraction (0 to 1) of text different between the current
|
|
9642
|
+
* Allowed variation as a fraction (0 to 1) of text different between the current output and previously saved output. For example, 0.1 means 10%. If the difference between the current output and the previous output is greater than `maxVariation`, the step fails. If output doesn't exist at `path`, this value is ignored.
|
|
9214
9643
|
*/
|
|
9215
9644
|
maxVariation?: number;
|
|
9216
9645
|
/**
|
|
@@ -9219,57 +9648,44 @@ export interface RunBrowserScriptDetailed1 {
|
|
|
9219
9648
|
*/
|
|
9220
9649
|
overwrite?: "true" | "false" | "aboveVariation";
|
|
9221
9650
|
/**
|
|
9222
|
-
*
|
|
9651
|
+
* Max time in milliseconds the command is allowed to run. If the command runs longer than this, the step fails. When `background` is set, this is instead the max time to wait for `background.waitUntil` to be satisfied before the step fails.
|
|
9223
9652
|
*/
|
|
9224
9653
|
timeout?: number;
|
|
9225
|
-
}
|
|
9226
|
-
export interface BrowserSurface9 {
|
|
9227
9654
|
/**
|
|
9228
|
-
*
|
|
9655
|
+
* Start the code as a long-running background process and return as soon as it is ready, instead of waiting for it to exit. When set, `exitCodes`, `stdio`, and output saving (`path`, `directory`, `maxVariation`, `overwrite`) are ignored, and `timeout` is the max time to wait for `waitUntil`. The process is owned by the run and is stopped by a `closeSurface` step or automatically when the run finishes.
|
|
9229
9656
|
*/
|
|
9230
|
-
|
|
9231
|
-
|
|
9232
|
-
|
|
9233
|
-
|
|
9234
|
-
|
|
9235
|
-
|
|
9236
|
-
|
|
9237
|
-
|
|
9238
|
-
|
|
9239
|
-
|
|
9240
|
-
|
|
9241
|
-
|
|
9242
|
-
|
|
9243
|
-
|
|
9244
|
-
|
|
9245
|
-
|
|
9246
|
-
|
|
9247
|
-
|
|
9248
|
-
|
|
9249
|
-
|
|
9250
|
-
|
|
9251
|
-
|
|
9252
|
-
|
|
9253
|
-
|
|
9254
|
-
|
|
9255
|
-
}
|
|
9256
|
-
|
|
9257
|
-
|
|
9258
|
-
|
|
9259
|
-
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
* Index in creation order. Negative counts from the end.
|
|
9263
|
-
*/
|
|
9264
|
-
index?: number;
|
|
9265
|
-
/**
|
|
9266
|
-
* Page title to match. Substring, or /regex/.
|
|
9267
|
-
*/
|
|
9268
|
-
title?: string;
|
|
9269
|
-
/**
|
|
9270
|
-
* Page URL to match. Substring, or /regex/.
|
|
9271
|
-
*/
|
|
9272
|
-
url?: string;
|
|
9657
|
+
background?: {
|
|
9658
|
+
/**
|
|
9659
|
+
* Unique identifier for this background process within the run. Reference it from a `closeSurface` step to stop it.
|
|
9660
|
+
*/
|
|
9661
|
+
name: string;
|
|
9662
|
+
/**
|
|
9663
|
+
* Conditions that must all be met before the process is considered ready and the step proceeds. Omit to consider the process ready as soon as it is spawned. Specify any combination; every condition given must pass before `timeout` elapses. Note: a process that forks a daemon and then exits (common for some Docker images and databases) is treated as having exited before becoming ready and the step fails — use `port`, `httpGet`, or `delayMs` for those rather than a condition that depends on the foreground process staying alive.
|
|
9664
|
+
*/
|
|
9665
|
+
waitUntil?: {
|
|
9666
|
+
/**
|
|
9667
|
+
* Wait until this TCP port accepts connections on localhost.
|
|
9668
|
+
*/
|
|
9669
|
+
port?: number;
|
|
9670
|
+
/**
|
|
9671
|
+
* Wait until the process's output contains this content. Searches both stdout and stderr. Supports strings and regular expressions. To use a regular expression, the string must start and end with a forward slash, like in `/ready on \d+/`.
|
|
9672
|
+
*/
|
|
9673
|
+
stdio?: string;
|
|
9674
|
+
/**
|
|
9675
|
+
* Wait until an HTTP GET request to this URL returns a 2xx status.
|
|
9676
|
+
*/
|
|
9677
|
+
httpGet?: string;
|
|
9678
|
+
/**
|
|
9679
|
+
* Wait at least this many milliseconds.
|
|
9680
|
+
*/
|
|
9681
|
+
delayMs?: number;
|
|
9682
|
+
};
|
|
9683
|
+
/**
|
|
9684
|
+
* Run the process in a pseudo-terminal (PTY) instead of a pipe, so full-screen/interactive TUIs (those that check `isTTY`) render and accept keystrokes. Requires the PTY backend `@homebridge/node-pty-prebuilt-multiarch` to be installed (`npm install @homebridge/node-pty-prebuilt-multiarch`); it is not bundled, and if it is unavailable the step is skipped. `stdout` and `stderr` are merged into one stream in PTY mode. PTY output includes raw ANSI escape sequences (colors, cursor movement); `waitUntil.stdio` patterns should target text that renders without interleaved control codes, or use a regex that tolerates them.
|
|
9685
|
+
*/
|
|
9686
|
+
tty?: boolean;
|
|
9687
|
+
};
|
|
9688
|
+
[k: string]: unknown;
|
|
9273
9689
|
}
|
|
9274
9690
|
export interface Common27 {
|
|
9275
9691
|
/**
|
|
@@ -9404,17 +9820,50 @@ export interface SourceLocation27 {
|
|
|
9404
9820
|
*/
|
|
9405
9821
|
endIndex: number;
|
|
9406
9822
|
}
|
|
9407
|
-
export interface
|
|
9408
|
-
|
|
9823
|
+
export interface RunBrowserScript2 {
|
|
9824
|
+
runBrowserScript: RunBrowserScript3;
|
|
9409
9825
|
[k: string]: unknown;
|
|
9410
9826
|
}
|
|
9411
|
-
export interface
|
|
9827
|
+
export interface RunBrowserScriptDetailed1 {
|
|
9412
9828
|
/**
|
|
9413
|
-
*
|
|
9829
|
+
* The browser window/tab the script runs in. Omit to run in the active tab. The targeted tab stays focused afterward.
|
|
9414
9830
|
*/
|
|
9415
|
-
|
|
9831
|
+
surface?: SurfaceByBrowserEngine8 | BrowserSurface11;
|
|
9832
|
+
/**
|
|
9833
|
+
* JavaScript to evaluate in the browser page context. Supports `return` to capture a value into `outputs.result`. The script reads arguments supplied in `args` through the `arguments` object (`arguments[0]`, `arguments[1]`, and so on).
|
|
9834
|
+
*/
|
|
9835
|
+
script: string;
|
|
9836
|
+
/**
|
|
9837
|
+
* Arguments passed positionally to the script and exposed through the `arguments` object. Each item may be any JSON-serializable value (string, number, boolean, null, object, or array), matching what `executeScript` accepts.
|
|
9838
|
+
*/
|
|
9839
|
+
args?: unknown[];
|
|
9840
|
+
/**
|
|
9841
|
+
* Content expected in the script's serialized return value. Doc Detective serializes non-string return values to JSON before matching. If the serialized return value doesn't contain the expected content, the step fails. Supports strings and regular expressions. To use a regular expression, the string must start and end with a forward slash, like in `/^hello-world.* /`.
|
|
9842
|
+
*/
|
|
9843
|
+
output?: string;
|
|
9844
|
+
/**
|
|
9845
|
+
* File path to save the script's serialized return value, relative to `directory`.
|
|
9846
|
+
*/
|
|
9847
|
+
path?: string;
|
|
9848
|
+
/**
|
|
9849
|
+
* Directory to save the script's return value. If the directory doesn't exist, creates the directory. If not specified, the directory is your media directory.
|
|
9850
|
+
*/
|
|
9851
|
+
directory?: string;
|
|
9852
|
+
/**
|
|
9853
|
+
* Allowed variation as a fraction (0 to 1) of text different between the current return value and previously saved value. For example, 0.1 means 10%. If the difference between the current value and the previous value is greater than `maxVariation`, the step returns a warning. If no output exists at `path`, Doc Detective ignores this value.
|
|
9854
|
+
*/
|
|
9855
|
+
maxVariation?: number;
|
|
9856
|
+
/**
|
|
9857
|
+
* If `true`, overwrites the existing output at `path` if it exists.
|
|
9858
|
+
* If `aboveVariation`, overwrites the existing output at `path` if the difference between the new output and the existing output is greater than `maxVariation`.
|
|
9859
|
+
*/
|
|
9860
|
+
overwrite?: "true" | "false" | "aboveVariation";
|
|
9861
|
+
/**
|
|
9862
|
+
* Maximum time in milliseconds the script may run. If the script runs longer than this, the step fails.
|
|
9863
|
+
*/
|
|
9864
|
+
timeout?: number;
|
|
9416
9865
|
}
|
|
9417
|
-
export interface
|
|
9866
|
+
export interface BrowserSurface11 {
|
|
9418
9867
|
/**
|
|
9419
9868
|
* Browser engine. Selects the browser surface with that engine (or the one named by `name`). A goTo step opens the browser if it isn't open yet; other steps require it to already be open.
|
|
9420
9869
|
*/
|
|
@@ -9423,10 +9872,10 @@ export interface BrowserSurface10 {
|
|
|
9423
9872
|
* Name of the browser surface. Defaults to the engine name (the context's default browser registers under its engine). Assign distinct names to drive multiple browsers at once, including several of the same engine.
|
|
9424
9873
|
*/
|
|
9425
9874
|
name?: string;
|
|
9426
|
-
window?:
|
|
9427
|
-
tab?:
|
|
9875
|
+
window?: WindowTabSelector22;
|
|
9876
|
+
tab?: WindowTabSelector23;
|
|
9428
9877
|
}
|
|
9429
|
-
export interface
|
|
9878
|
+
export interface ByCriteria28 {
|
|
9430
9879
|
/**
|
|
9431
9880
|
* Name assigned when the window/tab was opened.
|
|
9432
9881
|
*/
|
|
@@ -9444,7 +9893,7 @@ export interface ByCriteria24 {
|
|
|
9444
9893
|
*/
|
|
9445
9894
|
url?: string;
|
|
9446
9895
|
}
|
|
9447
|
-
export interface
|
|
9896
|
+
export interface ByCriteria29 {
|
|
9448
9897
|
/**
|
|
9449
9898
|
* Name assigned when the window/tab was opened.
|
|
9450
9899
|
*/
|
|
@@ -9462,73 +9911,6 @@ export interface ByCriteria25 {
|
|
|
9462
9911
|
*/
|
|
9463
9912
|
url?: string;
|
|
9464
9913
|
}
|
|
9465
|
-
export interface AppSurface4 {
|
|
9466
|
-
/**
|
|
9467
|
-
* Name of an app surface opened by `startSurface` (its `name`, or the default derived from the app identifier).
|
|
9468
|
-
*/
|
|
9469
|
-
app: string;
|
|
9470
|
-
window?: AppWindowSelector4;
|
|
9471
|
-
}
|
|
9472
|
-
export interface ByCriteria26 {
|
|
9473
|
-
/**
|
|
9474
|
-
* Assigned window name.
|
|
9475
|
-
*/
|
|
9476
|
-
name?: string;
|
|
9477
|
-
/**
|
|
9478
|
-
* Index in creation order. Negative counts from the end.
|
|
9479
|
-
*/
|
|
9480
|
-
index?: number;
|
|
9481
|
-
/**
|
|
9482
|
-
* Window title to match. Substring, or /regex/.
|
|
9483
|
-
*/
|
|
9484
|
-
title?: string;
|
|
9485
|
-
}
|
|
9486
|
-
export interface ProcessReadiness1 {
|
|
9487
|
-
/**
|
|
9488
|
-
* Wait until combined stdout+stderr matches. Substring, or /regex/.
|
|
9489
|
-
*/
|
|
9490
|
-
stdio?: string;
|
|
9491
|
-
/**
|
|
9492
|
-
* Fixed delay (ms).
|
|
9493
|
-
*/
|
|
9494
|
-
delayMs?: number;
|
|
9495
|
-
}
|
|
9496
|
-
export interface BrowserReadiness1 {
|
|
9497
|
-
/**
|
|
9498
|
-
* Wait for network activity to be idle (no new requests) for this duration in milliseconds.
|
|
9499
|
-
*/
|
|
9500
|
-
networkIdleTime?: number;
|
|
9501
|
-
/**
|
|
9502
|
-
* Wait for DOM mutations to stop for this duration in milliseconds.
|
|
9503
|
-
*/
|
|
9504
|
-
domIdleTime?: number;
|
|
9505
|
-
find?: ElementCriteria3;
|
|
9506
|
-
}
|
|
9507
|
-
export interface AppReadiness2 {
|
|
9508
|
-
/**
|
|
9509
|
-
* Fixed delay (ms).
|
|
9510
|
-
*/
|
|
9511
|
-
delayMs?: number;
|
|
9512
|
-
find?: ElementCriteria4;
|
|
9513
|
-
}
|
|
9514
|
-
export interface WaitUntilRequiresASurface1 {
|
|
9515
|
-
[k: string]: unknown;
|
|
9516
|
-
}
|
|
9517
|
-
export interface AProcessSurfaceForbidsElementTargeting1 {
|
|
9518
|
-
[k: string]: unknown;
|
|
9519
|
-
}
|
|
9520
|
-
export interface AProcessSurfaceTakesProcessReadiness1 {
|
|
9521
|
-
[k: string]: unknown;
|
|
9522
|
-
}
|
|
9523
|
-
export interface ABrowserSurfaceTakesBrowserReadiness1 {
|
|
9524
|
-
[k: string]: unknown;
|
|
9525
|
-
}
|
|
9526
|
-
export interface AnAppSurfaceTakesAppReadiness1 {
|
|
9527
|
-
[k: string]: unknown;
|
|
9528
|
-
}
|
|
9529
|
-
export interface ABrowserEngineStringSurfaceTakesBrowserReadiness1 {
|
|
9530
|
-
[k: string]: unknown;
|
|
9531
|
-
}
|
|
9532
9914
|
export interface Common28 {
|
|
9533
9915
|
/**
|
|
9534
9916
|
* JSON Schema for this object.
|
|
@@ -9662,33 +10044,17 @@ export interface SourceLocation28 {
|
|
|
9662
10044
|
*/
|
|
9663
10045
|
endIndex: number;
|
|
9664
10046
|
}
|
|
9665
|
-
export interface
|
|
9666
|
-
|
|
10047
|
+
export interface Type1 {
|
|
10048
|
+
type: TypeKeys1;
|
|
9667
10049
|
[k: string]: unknown;
|
|
9668
10050
|
}
|
|
9669
|
-
export interface
|
|
9670
|
-
/**
|
|
9671
|
-
* The browser window/tab or app window to capture. Omit to capture the active tab. The targeted surface stays focused afterward. App surfaces use the object form ({ "app": … }). App captures don't support `crop` yet.
|
|
9672
|
-
*/
|
|
9673
|
-
surface?: SurfaceByBrowserEngine7 | BrowserSurface11 | AppSurface5;
|
|
9674
|
-
path?: ScreenshotSimple3;
|
|
9675
|
-
/**
|
|
9676
|
-
* Directory of the PNG file. If the directory doesn't exist, creates the directory.
|
|
9677
|
-
*/
|
|
9678
|
-
directory?: string;
|
|
9679
|
-
/**
|
|
9680
|
-
* Allowed variation in percentage of pixels between the new screenshot and the existing screenshot at `path`. If the difference between the new screenshot and the existing screenshot is greater than `maxVariation`, the step fails. If a screenshot doesn't exist at `path`, this value is ignored.
|
|
9681
|
-
*/
|
|
9682
|
-
maxVariation?: number;
|
|
10051
|
+
export interface ProcessSurface3 {
|
|
9683
10052
|
/**
|
|
9684
|
-
*
|
|
9685
|
-
* If `aboveVariation`, overwrites the existing screenshot at `path` if the difference between the new screenshot and the existing screenshot is greater than `maxVariation`.
|
|
10053
|
+
* Name of a background process started by a runShell/runCode `background` step.
|
|
9686
10054
|
*/
|
|
9687
|
-
|
|
9688
|
-
crop?: CropByElementSimple1 | CropByElementDetailed1;
|
|
9689
|
-
sourceIntegration?: SourceIntegration1;
|
|
10055
|
+
process: string;
|
|
9690
10056
|
}
|
|
9691
|
-
export interface
|
|
10057
|
+
export interface BrowserSurface12 {
|
|
9692
10058
|
/**
|
|
9693
10059
|
* Browser engine. Selects the browser surface with that engine (or the one named by `name`). A goTo step opens the browser if it isn't open yet; other steps require it to already be open.
|
|
9694
10060
|
*/
|
|
@@ -9697,10 +10063,10 @@ export interface BrowserSurface11 {
|
|
|
9697
10063
|
* Name of the browser surface. Defaults to the engine name (the context's default browser registers under its engine). Assign distinct names to drive multiple browsers at once, including several of the same engine.
|
|
9698
10064
|
*/
|
|
9699
10065
|
name?: string;
|
|
9700
|
-
window?:
|
|
9701
|
-
tab?:
|
|
10066
|
+
window?: WindowTabSelector24;
|
|
10067
|
+
tab?: WindowTabSelector25;
|
|
9702
10068
|
}
|
|
9703
|
-
export interface
|
|
10069
|
+
export interface ByCriteria30 {
|
|
9704
10070
|
/**
|
|
9705
10071
|
* Name assigned when the window/tab was opened.
|
|
9706
10072
|
*/
|
|
@@ -9718,7 +10084,7 @@ export interface ByCriteria27 {
|
|
|
9718
10084
|
*/
|
|
9719
10085
|
url?: string;
|
|
9720
10086
|
}
|
|
9721
|
-
export interface
|
|
10087
|
+
export interface ByCriteria31 {
|
|
9722
10088
|
/**
|
|
9723
10089
|
* Name assigned when the window/tab was opened.
|
|
9724
10090
|
*/
|
|
@@ -9736,14 +10102,14 @@ export interface ByCriteria28 {
|
|
|
9736
10102
|
*/
|
|
9737
10103
|
url?: string;
|
|
9738
10104
|
}
|
|
9739
|
-
export interface
|
|
10105
|
+
export interface AppSurface6 {
|
|
9740
10106
|
/**
|
|
9741
10107
|
* Name of an app surface opened by `startSurface` (its `name`, or the default derived from the app identifier).
|
|
9742
10108
|
*/
|
|
9743
10109
|
app: string;
|
|
9744
|
-
window?:
|
|
10110
|
+
window?: AppWindowSelector6;
|
|
9745
10111
|
}
|
|
9746
|
-
export interface
|
|
10112
|
+
export interface ByCriteria32 {
|
|
9747
10113
|
/**
|
|
9748
10114
|
* Assigned window name.
|
|
9749
10115
|
*/
|
|
@@ -9757,32 +10123,50 @@ export interface ByCriteria29 {
|
|
|
9757
10123
|
*/
|
|
9758
10124
|
title?: string;
|
|
9759
10125
|
}
|
|
9760
|
-
|
|
9761
|
-
* Information about the source integration for this screenshot, enabling upload of changed files back to the source CMS. Set automatically during test resolution for files from integrations.
|
|
9762
|
-
*/
|
|
9763
|
-
export interface SourceIntegration1 {
|
|
10126
|
+
export interface ProcessReadiness1 {
|
|
9764
10127
|
/**
|
|
9765
|
-
*
|
|
10128
|
+
* Wait until combined stdout+stderr matches. Substring, or /regex/.
|
|
9766
10129
|
*/
|
|
9767
|
-
|
|
10130
|
+
stdio?: string;
|
|
9768
10131
|
/**
|
|
9769
|
-
*
|
|
10132
|
+
* Fixed delay (ms).
|
|
9770
10133
|
*/
|
|
9771
|
-
|
|
10134
|
+
delayMs?: number;
|
|
10135
|
+
}
|
|
10136
|
+
export interface BrowserReadiness1 {
|
|
9772
10137
|
/**
|
|
9773
|
-
*
|
|
10138
|
+
* Wait for network activity to be idle (no new requests) for this duration in milliseconds.
|
|
9774
10139
|
*/
|
|
9775
|
-
|
|
10140
|
+
networkIdleTime?: number;
|
|
9776
10141
|
/**
|
|
9777
|
-
*
|
|
10142
|
+
* Wait for DOM mutations to stop for this duration in milliseconds.
|
|
9778
10143
|
*/
|
|
9779
|
-
|
|
10144
|
+
domIdleTime?: number;
|
|
10145
|
+
find?: ElementCriteria3;
|
|
10146
|
+
}
|
|
10147
|
+
export interface AppReadiness2 {
|
|
9780
10148
|
/**
|
|
9781
|
-
*
|
|
10149
|
+
* Fixed delay (ms).
|
|
9782
10150
|
*/
|
|
9783
|
-
|
|
10151
|
+
delayMs?: number;
|
|
10152
|
+
find?: ElementCriteria4;
|
|
9784
10153
|
}
|
|
9785
|
-
export interface
|
|
10154
|
+
export interface WaitUntilRequiresASurface1 {
|
|
10155
|
+
[k: string]: unknown;
|
|
10156
|
+
}
|
|
10157
|
+
export interface AProcessSurfaceForbidsElementTargeting1 {
|
|
10158
|
+
[k: string]: unknown;
|
|
10159
|
+
}
|
|
10160
|
+
export interface AProcessSurfaceTakesProcessReadiness1 {
|
|
10161
|
+
[k: string]: unknown;
|
|
10162
|
+
}
|
|
10163
|
+
export interface ABrowserSurfaceTakesBrowserReadiness1 {
|
|
10164
|
+
[k: string]: unknown;
|
|
10165
|
+
}
|
|
10166
|
+
export interface AnAppSurfaceTakesAppReadiness1 {
|
|
10167
|
+
[k: string]: unknown;
|
|
10168
|
+
}
|
|
10169
|
+
export interface ABrowserEngineStringSurfaceTakesBrowserReadiness1 {
|
|
9786
10170
|
[k: string]: unknown;
|
|
9787
10171
|
}
|
|
9788
10172
|
export interface Common29 {
|
|
@@ -9918,8 +10302,127 @@ export interface SourceLocation29 {
|
|
|
9918
10302
|
*/
|
|
9919
10303
|
endIndex: number;
|
|
9920
10304
|
}
|
|
9921
|
-
export interface
|
|
9922
|
-
|
|
10305
|
+
export interface Screenshot2 {
|
|
10306
|
+
screenshot: Screenshot3;
|
|
10307
|
+
[k: string]: unknown;
|
|
10308
|
+
}
|
|
10309
|
+
export interface CaptureScreenshotFields1 {
|
|
10310
|
+
/**
|
|
10311
|
+
* The browser window/tab or app window to capture. Omit to capture the active tab. The targeted surface stays focused afterward. App surfaces use the object form ({ "app": … }). App captures don't support `crop` yet.
|
|
10312
|
+
*/
|
|
10313
|
+
surface?: SurfaceByBrowserEngine9 | BrowserSurface13 | AppSurface7;
|
|
10314
|
+
path?: ScreenshotSimple3;
|
|
10315
|
+
/**
|
|
10316
|
+
* Directory of the PNG file. If the directory doesn't exist, creates the directory.
|
|
10317
|
+
*/
|
|
10318
|
+
directory?: string;
|
|
10319
|
+
/**
|
|
10320
|
+
* Allowed variation in percentage of pixels between the new screenshot and the existing screenshot at `path`. If the difference between the new screenshot and the existing screenshot is greater than `maxVariation`, the step fails. If a screenshot doesn't exist at `path`, this value is ignored.
|
|
10321
|
+
*/
|
|
10322
|
+
maxVariation?: number;
|
|
10323
|
+
/**
|
|
10324
|
+
* If `true`, overwrites the existing screenshot at `path` if it exists.
|
|
10325
|
+
* If `aboveVariation`, overwrites the existing screenshot at `path` if the difference between the new screenshot and the existing screenshot is greater than `maxVariation`.
|
|
10326
|
+
*/
|
|
10327
|
+
overwrite?: "true" | "false" | "aboveVariation";
|
|
10328
|
+
crop?: CropByElementSimple1 | CropByElementDetailed1;
|
|
10329
|
+
sourceIntegration?: SourceIntegration1;
|
|
10330
|
+
}
|
|
10331
|
+
export interface BrowserSurface13 {
|
|
10332
|
+
/**
|
|
10333
|
+
* Browser engine. Selects the browser surface with that engine (or the one named by `name`). A goTo step opens the browser if it isn't open yet; other steps require it to already be open.
|
|
10334
|
+
*/
|
|
10335
|
+
browser: "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
10336
|
+
/**
|
|
10337
|
+
* Name of the browser surface. Defaults to the engine name (the context's default browser registers under its engine). Assign distinct names to drive multiple browsers at once, including several of the same engine.
|
|
10338
|
+
*/
|
|
10339
|
+
name?: string;
|
|
10340
|
+
window?: WindowTabSelector26;
|
|
10341
|
+
tab?: WindowTabSelector27;
|
|
10342
|
+
}
|
|
10343
|
+
export interface ByCriteria33 {
|
|
10344
|
+
/**
|
|
10345
|
+
* Name assigned when the window/tab was opened.
|
|
10346
|
+
*/
|
|
10347
|
+
name?: string;
|
|
10348
|
+
/**
|
|
10349
|
+
* Index in creation order. Negative counts from the end.
|
|
10350
|
+
*/
|
|
10351
|
+
index?: number;
|
|
10352
|
+
/**
|
|
10353
|
+
* Page title to match. Substring, or /regex/.
|
|
10354
|
+
*/
|
|
10355
|
+
title?: string;
|
|
10356
|
+
/**
|
|
10357
|
+
* Page URL to match. Substring, or /regex/.
|
|
10358
|
+
*/
|
|
10359
|
+
url?: string;
|
|
10360
|
+
}
|
|
10361
|
+
export interface ByCriteria34 {
|
|
10362
|
+
/**
|
|
10363
|
+
* Name assigned when the window/tab was opened.
|
|
10364
|
+
*/
|
|
10365
|
+
name?: string;
|
|
10366
|
+
/**
|
|
10367
|
+
* Index in creation order. Negative counts from the end.
|
|
10368
|
+
*/
|
|
10369
|
+
index?: number;
|
|
10370
|
+
/**
|
|
10371
|
+
* Page title to match. Substring, or /regex/.
|
|
10372
|
+
*/
|
|
10373
|
+
title?: string;
|
|
10374
|
+
/**
|
|
10375
|
+
* Page URL to match. Substring, or /regex/.
|
|
10376
|
+
*/
|
|
10377
|
+
url?: string;
|
|
10378
|
+
}
|
|
10379
|
+
export interface AppSurface7 {
|
|
10380
|
+
/**
|
|
10381
|
+
* Name of an app surface opened by `startSurface` (its `name`, or the default derived from the app identifier).
|
|
10382
|
+
*/
|
|
10383
|
+
app: string;
|
|
10384
|
+
window?: AppWindowSelector7;
|
|
10385
|
+
}
|
|
10386
|
+
export interface ByCriteria35 {
|
|
10387
|
+
/**
|
|
10388
|
+
* Assigned window name.
|
|
10389
|
+
*/
|
|
10390
|
+
name?: string;
|
|
10391
|
+
/**
|
|
10392
|
+
* Index in creation order. Negative counts from the end.
|
|
10393
|
+
*/
|
|
10394
|
+
index?: number;
|
|
10395
|
+
/**
|
|
10396
|
+
* Window title to match. Substring, or /regex/.
|
|
10397
|
+
*/
|
|
10398
|
+
title?: string;
|
|
10399
|
+
}
|
|
10400
|
+
/**
|
|
10401
|
+
* Information about the source integration for this screenshot, enabling upload of changed files back to the source CMS. Set automatically during test resolution for files from integrations.
|
|
10402
|
+
*/
|
|
10403
|
+
export interface SourceIntegration1 {
|
|
10404
|
+
/**
|
|
10405
|
+
* The type of integration. Currently supported: 'heretto'. Additional types may be added in the future.
|
|
10406
|
+
*/
|
|
10407
|
+
type: "heretto";
|
|
10408
|
+
/**
|
|
10409
|
+
* The name of the integration configuration in the config file. Used to look up authentication credentials.
|
|
10410
|
+
*/
|
|
10411
|
+
integrationName: string;
|
|
10412
|
+
/**
|
|
10413
|
+
* The unique identifier (UUID) of the file in the source CMS. If not provided, the file will be looked up by path.
|
|
10414
|
+
*/
|
|
10415
|
+
fileId?: string;
|
|
10416
|
+
/**
|
|
10417
|
+
* The path of the file in the source CMS. Used for lookup if fileId is not available.
|
|
10418
|
+
*/
|
|
10419
|
+
filePath?: string;
|
|
10420
|
+
/**
|
|
10421
|
+
* The local path to the file that references this source. Used for resolving relative paths.
|
|
10422
|
+
*/
|
|
10423
|
+
contentPath?: string;
|
|
10424
|
+
}
|
|
10425
|
+
export interface AppCapturesDonTSupportCropYet1 {
|
|
9923
10426
|
[k: string]: unknown;
|
|
9924
10427
|
}
|
|
9925
10428
|
export interface Common30 {
|
|
@@ -10055,96 +10558,10 @@ export interface SourceLocation30 {
|
|
|
10055
10558
|
*/
|
|
10056
10559
|
endIndex: number;
|
|
10057
10560
|
}
|
|
10058
|
-
export interface
|
|
10059
|
-
|
|
10060
|
-
[k: string]: unknown;
|
|
10061
|
-
}
|
|
10062
|
-
export interface RecordDetailed1 {
|
|
10063
|
-
/**
|
|
10064
|
-
* The browser window/tab to record. Omit to record the active tab. The targeted tab stays focused afterward.
|
|
10065
|
-
*/
|
|
10066
|
-
surface?: SurfaceByBrowserEngine8 | BrowserSurface12;
|
|
10067
|
-
/**
|
|
10068
|
-
* File path of the recording. Supports the `.mp4`, `.webm`, and `.gif` extensions. If not specified, the file name is the ID of the step, and the extension is `.mp4`.
|
|
10069
|
-
*/
|
|
10070
|
-
path?: string;
|
|
10071
|
-
/**
|
|
10072
|
-
* Directory of the file. If the directory doesn't exist, creates the directory.
|
|
10073
|
-
*/
|
|
10074
|
-
directory?: string;
|
|
10075
|
-
/**
|
|
10076
|
-
* If `true`, overwrites the existing recording at `path` if it exists.
|
|
10077
|
-
*/
|
|
10078
|
-
overwrite?: "true" | "false";
|
|
10079
|
-
/**
|
|
10080
|
-
* Identifier for this recording. A later `stopRecord` step can target it by name (`stopRecord: "<name>"`), which is how you stop a specific recording when several overlap. Names must be unique among recordings that are active at the same time. If omitted, the recording is anonymous and is stopped LIFO by an untargeted `stopRecord`.
|
|
10081
|
-
*/
|
|
10082
|
-
name?: string;
|
|
10083
|
-
engine?: RecordingEngine1;
|
|
10561
|
+
export interface SaveCookie2 {
|
|
10562
|
+
saveCookie: SaveCookie3;
|
|
10084
10563
|
[k: string]: unknown;
|
|
10085
10564
|
}
|
|
10086
|
-
export interface BrowserSurface12 {
|
|
10087
|
-
/**
|
|
10088
|
-
* Browser engine. Selects the browser surface with that engine (or the one named by `name`). A goTo step opens the browser if it isn't open yet; other steps require it to already be open.
|
|
10089
|
-
*/
|
|
10090
|
-
browser: "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
10091
|
-
/**
|
|
10092
|
-
* Name of the browser surface. Defaults to the engine name (the context's default browser registers under its engine). Assign distinct names to drive multiple browsers at once, including several of the same engine.
|
|
10093
|
-
*/
|
|
10094
|
-
name?: string;
|
|
10095
|
-
window?: WindowTabSelector24;
|
|
10096
|
-
tab?: WindowTabSelector25;
|
|
10097
|
-
}
|
|
10098
|
-
export interface ByCriteria30 {
|
|
10099
|
-
/**
|
|
10100
|
-
* Name assigned when the window/tab was opened.
|
|
10101
|
-
*/
|
|
10102
|
-
name?: string;
|
|
10103
|
-
/**
|
|
10104
|
-
* Index in creation order. Negative counts from the end.
|
|
10105
|
-
*/
|
|
10106
|
-
index?: number;
|
|
10107
|
-
/**
|
|
10108
|
-
* Page title to match. Substring, or /regex/.
|
|
10109
|
-
*/
|
|
10110
|
-
title?: string;
|
|
10111
|
-
/**
|
|
10112
|
-
* Page URL to match. Substring, or /regex/.
|
|
10113
|
-
*/
|
|
10114
|
-
url?: string;
|
|
10115
|
-
}
|
|
10116
|
-
export interface ByCriteria31 {
|
|
10117
|
-
/**
|
|
10118
|
-
* Name assigned when the window/tab was opened.
|
|
10119
|
-
*/
|
|
10120
|
-
name?: string;
|
|
10121
|
-
/**
|
|
10122
|
-
* Index in creation order. Negative counts from the end.
|
|
10123
|
-
*/
|
|
10124
|
-
index?: number;
|
|
10125
|
-
/**
|
|
10126
|
-
* Page title to match. Substring, or /regex/.
|
|
10127
|
-
*/
|
|
10128
|
-
title?: string;
|
|
10129
|
-
/**
|
|
10130
|
-
* Page URL to match. Substring, or /regex/.
|
|
10131
|
-
*/
|
|
10132
|
-
url?: string;
|
|
10133
|
-
}
|
|
10134
|
-
export interface RecordingEngineDetailed1 {
|
|
10135
|
-
/**
|
|
10136
|
-
* Recording engine. `browser` records the Chrome viewport (concurrency-safe); `ffmpeg` records the screen and supports any application.
|
|
10137
|
-
*/
|
|
10138
|
-
name: "browser" | "ffmpeg";
|
|
10139
|
-
/**
|
|
10140
|
-
* What the `ffmpeg` engine captures. `display` records the full screen, `window` the active window, `viewport` the browser content area. Ignored by the `browser` engine, which always captures its tab. `window` and `viewport` are best-effort (captured full-screen, then cropped).
|
|
10141
|
-
*/
|
|
10142
|
-
target?: "display" | "window" | "viewport";
|
|
10143
|
-
/**
|
|
10144
|
-
* Capture frame rate for the `ffmpeg` engine.
|
|
10145
|
-
*/
|
|
10146
|
-
fps?: number;
|
|
10147
|
-
}
|
|
10148
10565
|
export interface Common31 {
|
|
10149
10566
|
/**
|
|
10150
10567
|
* JSON Schema for this object.
|
|
@@ -10278,25 +10695,105 @@ export interface SourceLocation31 {
|
|
|
10278
10695
|
*/
|
|
10279
10696
|
endIndex: number;
|
|
10280
10697
|
}
|
|
10281
|
-
export interface
|
|
10282
|
-
|
|
10698
|
+
export interface Record2 {
|
|
10699
|
+
record: Record3;
|
|
10283
10700
|
[k: string]: unknown;
|
|
10284
10701
|
}
|
|
10285
|
-
export interface
|
|
10702
|
+
export interface RecordDetailed1 {
|
|
10286
10703
|
/**
|
|
10287
|
-
*
|
|
10704
|
+
* The browser window/tab to record. Omit to record the active tab. The targeted tab stays focused afterward.
|
|
10288
10705
|
*/
|
|
10289
|
-
|
|
10290
|
-
}
|
|
10291
|
-
export interface Common32 {
|
|
10706
|
+
surface?: SurfaceByBrowserEngine10 | BrowserSurface14;
|
|
10292
10707
|
/**
|
|
10293
|
-
*
|
|
10708
|
+
* File path of the recording. Supports the `.mp4`, `.webm`, and `.gif` extensions. If not specified, the file name is the ID of the step, and the extension is `.mp4`.
|
|
10294
10709
|
*/
|
|
10295
|
-
|
|
10710
|
+
path?: string;
|
|
10296
10711
|
/**
|
|
10297
|
-
*
|
|
10712
|
+
* Directory of the file. If the directory doesn't exist, creates the directory.
|
|
10298
10713
|
*/
|
|
10299
|
-
|
|
10714
|
+
directory?: string;
|
|
10715
|
+
/**
|
|
10716
|
+
* If `true`, overwrites the existing recording at `path` if it exists.
|
|
10717
|
+
*/
|
|
10718
|
+
overwrite?: "true" | "false";
|
|
10719
|
+
/**
|
|
10720
|
+
* Identifier for this recording. A later `stopRecord` step can target it by name (`stopRecord: "<name>"`), which is how you stop a specific recording when several overlap. Names must be unique among recordings that are active at the same time. If omitted, the recording is anonymous and is stopped LIFO by an untargeted `stopRecord`.
|
|
10721
|
+
*/
|
|
10722
|
+
name?: string;
|
|
10723
|
+
engine?: RecordingEngine1;
|
|
10724
|
+
[k: string]: unknown;
|
|
10725
|
+
}
|
|
10726
|
+
export interface BrowserSurface14 {
|
|
10727
|
+
/**
|
|
10728
|
+
* Browser engine. Selects the browser surface with that engine (or the one named by `name`). A goTo step opens the browser if it isn't open yet; other steps require it to already be open.
|
|
10729
|
+
*/
|
|
10730
|
+
browser: "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
10731
|
+
/**
|
|
10732
|
+
* Name of the browser surface. Defaults to the engine name (the context's default browser registers under its engine). Assign distinct names to drive multiple browsers at once, including several of the same engine.
|
|
10733
|
+
*/
|
|
10734
|
+
name?: string;
|
|
10735
|
+
window?: WindowTabSelector28;
|
|
10736
|
+
tab?: WindowTabSelector29;
|
|
10737
|
+
}
|
|
10738
|
+
export interface ByCriteria36 {
|
|
10739
|
+
/**
|
|
10740
|
+
* Name assigned when the window/tab was opened.
|
|
10741
|
+
*/
|
|
10742
|
+
name?: string;
|
|
10743
|
+
/**
|
|
10744
|
+
* Index in creation order. Negative counts from the end.
|
|
10745
|
+
*/
|
|
10746
|
+
index?: number;
|
|
10747
|
+
/**
|
|
10748
|
+
* Page title to match. Substring, or /regex/.
|
|
10749
|
+
*/
|
|
10750
|
+
title?: string;
|
|
10751
|
+
/**
|
|
10752
|
+
* Page URL to match. Substring, or /regex/.
|
|
10753
|
+
*/
|
|
10754
|
+
url?: string;
|
|
10755
|
+
}
|
|
10756
|
+
export interface ByCriteria37 {
|
|
10757
|
+
/**
|
|
10758
|
+
* Name assigned when the window/tab was opened.
|
|
10759
|
+
*/
|
|
10760
|
+
name?: string;
|
|
10761
|
+
/**
|
|
10762
|
+
* Index in creation order. Negative counts from the end.
|
|
10763
|
+
*/
|
|
10764
|
+
index?: number;
|
|
10765
|
+
/**
|
|
10766
|
+
* Page title to match. Substring, or /regex/.
|
|
10767
|
+
*/
|
|
10768
|
+
title?: string;
|
|
10769
|
+
/**
|
|
10770
|
+
* Page URL to match. Substring, or /regex/.
|
|
10771
|
+
*/
|
|
10772
|
+
url?: string;
|
|
10773
|
+
}
|
|
10774
|
+
export interface RecordingEngineDetailed1 {
|
|
10775
|
+
/**
|
|
10776
|
+
* Recording engine. `browser` records the Chrome viewport (concurrency-safe); `ffmpeg` records the screen and supports any application.
|
|
10777
|
+
*/
|
|
10778
|
+
name: "browser" | "ffmpeg";
|
|
10779
|
+
/**
|
|
10780
|
+
* What the `ffmpeg` engine captures. `display` records the full screen, `window` the active window, `viewport` the browser content area. Ignored by the `browser` engine, which always captures its tab. `window` and `viewport` are best-effort (captured full-screen, then cropped).
|
|
10781
|
+
*/
|
|
10782
|
+
target?: "display" | "window" | "viewport";
|
|
10783
|
+
/**
|
|
10784
|
+
* Capture frame rate for the `ffmpeg` engine.
|
|
10785
|
+
*/
|
|
10786
|
+
fps?: number;
|
|
10787
|
+
}
|
|
10788
|
+
export interface Common32 {
|
|
10789
|
+
/**
|
|
10790
|
+
* JSON Schema for this object.
|
|
10791
|
+
*/
|
|
10792
|
+
$schema?: "https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/step_v3.schema.json";
|
|
10793
|
+
/**
|
|
10794
|
+
* ID of the step.
|
|
10795
|
+
*/
|
|
10796
|
+
stepId?: string;
|
|
10300
10797
|
/**
|
|
10301
10798
|
* Description of the step.
|
|
10302
10799
|
*/
|
|
@@ -10421,6 +10918,149 @@ export interface SourceLocation32 {
|
|
|
10421
10918
|
*/
|
|
10422
10919
|
endIndex: number;
|
|
10423
10920
|
}
|
|
10921
|
+
export interface StopRecord2 {
|
|
10922
|
+
stopRecord: StopRecord3;
|
|
10923
|
+
[k: string]: unknown;
|
|
10924
|
+
}
|
|
10925
|
+
export interface StopRecordDetailed1 {
|
|
10926
|
+
/**
|
|
10927
|
+
* Name of the recording to stop. Matches the `name` given to a `record` step.
|
|
10928
|
+
*/
|
|
10929
|
+
name: string;
|
|
10930
|
+
}
|
|
10931
|
+
export interface Common33 {
|
|
10932
|
+
/**
|
|
10933
|
+
* JSON Schema for this object.
|
|
10934
|
+
*/
|
|
10935
|
+
$schema?: "https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/step_v3.schema.json";
|
|
10936
|
+
/**
|
|
10937
|
+
* ID of the step.
|
|
10938
|
+
*/
|
|
10939
|
+
stepId?: string;
|
|
10940
|
+
/**
|
|
10941
|
+
* Description of the step.
|
|
10942
|
+
*/
|
|
10943
|
+
description?: string;
|
|
10944
|
+
/**
|
|
10945
|
+
* Whether or not the step may be unsafe. Unsafe steps may perform actions that could modify the system or environment in unexpected ways. Unsafe steps are only performed within Docker containers or if unsafe steps are enabled with the `allowUnsafeSteps` config property or the `--allow-unsafe` flag.
|
|
10946
|
+
*/
|
|
10947
|
+
unsafe?: boolean;
|
|
10948
|
+
outputs?: OutputsStep33;
|
|
10949
|
+
variables?: VariablesStep33;
|
|
10950
|
+
/**
|
|
10951
|
+
* Whether or not this step should act as a breakpoint when debugging is enabled. When `true`, execution will pause at this step when debug mode is enabled.
|
|
10952
|
+
*/
|
|
10953
|
+
breakpoint?: boolean;
|
|
10954
|
+
if?: Condition67;
|
|
10955
|
+
/**
|
|
10956
|
+
* Assertions for this step. As authored input, a custom condition expression (or array of expressions, combined with logical AND). In a test result, the runner replaces this with the array of articulated assertion records it evaluated (implicit then custom).
|
|
10957
|
+
*/
|
|
10958
|
+
assertions?: Condition68 | Assertion33[];
|
|
10959
|
+
/**
|
|
10960
|
+
* Routing entries evaluated when this step passes. The first entry whose `if` matches applies. `continue`, `stop`, `retry`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed.
|
|
10961
|
+
*/
|
|
10962
|
+
onPass?: Routing136[];
|
|
10963
|
+
/**
|
|
10964
|
+
* Routing entries evaluated when this step fails. The first entry whose `if` matches applies; the default when none is set stops the test. `continue`, `stop`, `retry`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed.
|
|
10965
|
+
*/
|
|
10966
|
+
onFail?: Routing137[];
|
|
10967
|
+
/**
|
|
10968
|
+
* Routing entries evaluated when this step produces a warning. The first entry whose `if` matches applies. `continue`, `stop`, `retry`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed.
|
|
10969
|
+
*/
|
|
10970
|
+
onWarning?: Routing138[];
|
|
10971
|
+
/**
|
|
10972
|
+
* Routing entries evaluated when this step is skipped (reached but not run — unsafe-blocked or guard-`if` false). The first entry whose `if` matches applies. `continue`, `stop`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed. (`retry` is a no-op here — a step that never ran cannot be re-run.)
|
|
10973
|
+
*/
|
|
10974
|
+
onSkip?: Routing139[];
|
|
10975
|
+
location?: SourceLocation33;
|
|
10976
|
+
/**
|
|
10977
|
+
* Path, relative to the run's artifact directory (the report's `runDir`), of the screenshot captured automatically after this step. Always a non-empty, forward-slash, relative path. Present only in test results, when `autoScreenshot` is enabled and the capture succeeded. This is system-populated metadata and should not be set manually.
|
|
10978
|
+
*/
|
|
10979
|
+
autoScreenshot?: string;
|
|
10980
|
+
/**
|
|
10981
|
+
* Total number of times this step ran (the initial attempt plus retries) when a routing `retry` action re-ran it. Present only in test results, and only when the step was retried at least once (so the value is always >= 2). This is system-populated metadata and should not be set manually.
|
|
10982
|
+
*/
|
|
10983
|
+
attempts?: number;
|
|
10984
|
+
/**
|
|
10985
|
+
* Which visit of this step produced this report, when a routing goToStep re-ran it (the first visit omits this field). Present only in test results; system-populated.
|
|
10986
|
+
*/
|
|
10987
|
+
visit?: number;
|
|
10988
|
+
[k: string]: unknown;
|
|
10989
|
+
}
|
|
10990
|
+
/**
|
|
10991
|
+
* Outputs from step processes and user-defined expressions. Use the `outputs` object to reference outputs in subsequent steps. If a user-defined output matches the key for a step-defined output, the user-defined output takes precedence.
|
|
10992
|
+
*/
|
|
10993
|
+
export interface OutputsStep33 {
|
|
10994
|
+
/**
|
|
10995
|
+
* Runtime expression for a user-defined output value.
|
|
10996
|
+
*
|
|
10997
|
+
* This interface was referenced by `OutputsStep33`'s JSON-Schema definition
|
|
10998
|
+
* via the `patternProperty` "^[A-Za-z0-9_]+$".
|
|
10999
|
+
*/
|
|
11000
|
+
[k: string]: string;
|
|
11001
|
+
}
|
|
11002
|
+
/**
|
|
11003
|
+
* Environment variables to set from user-defined expressions.
|
|
11004
|
+
*/
|
|
11005
|
+
export interface VariablesStep33 {
|
|
11006
|
+
/**
|
|
11007
|
+
* Runtime expression for a user-defined output value.
|
|
11008
|
+
*
|
|
11009
|
+
* This interface was referenced by `VariablesStep33`'s JSON-Schema definition
|
|
11010
|
+
* via the `patternProperty` "^[A-Za-z0-9_]+$".
|
|
11011
|
+
*/
|
|
11012
|
+
[k: string]: string;
|
|
11013
|
+
}
|
|
11014
|
+
/**
|
|
11015
|
+
* An articulated assertion record produced by the runner for a step result. Each record names a single verification check, whether it passed, and the values it compared. The step's result is the roll-up of its assertion results (FAIL > WARNING > all-SKIPPED > PASS). System-populated; appears in test results, not in authored specs.
|
|
11016
|
+
*/
|
|
11017
|
+
export interface Assertion33 {
|
|
11018
|
+
/**
|
|
11019
|
+
* Human-readable articulation of the check, e.g. `exitCode in [0]`.
|
|
11020
|
+
*/
|
|
11021
|
+
statement: string;
|
|
11022
|
+
/**
|
|
11023
|
+
* Who defined the assertion: `implicit` (runner-defined) or `custom` (user-defined).
|
|
11024
|
+
*/
|
|
11025
|
+
source: "implicit" | "custom";
|
|
11026
|
+
/**
|
|
11027
|
+
* Outcome of evaluating the assertion.
|
|
11028
|
+
*/
|
|
11029
|
+
result: "PASS" | "FAIL" | "WARNING" | "SKIPPED";
|
|
11030
|
+
/**
|
|
11031
|
+
* The value (or values) the assertion expected. Optional.
|
|
11032
|
+
*/
|
|
11033
|
+
expected?: unknown[] | boolean | number | null | number | {
|
|
11034
|
+
[k: string]: unknown;
|
|
11035
|
+
} | string;
|
|
11036
|
+
/**
|
|
11037
|
+
* The value actually observed. Optional.
|
|
11038
|
+
*/
|
|
11039
|
+
actual?: unknown[] | boolean | number | null | number | {
|
|
11040
|
+
[k: string]: unknown;
|
|
11041
|
+
} | string;
|
|
11042
|
+
/**
|
|
11043
|
+
* Human-readable explanation of the outcome. Optional.
|
|
11044
|
+
*/
|
|
11045
|
+
description?: string;
|
|
11046
|
+
}
|
|
11047
|
+
/**
|
|
11048
|
+
* Source location where this step was detected in the original file. This is system-populated metadata and should not be set manually.
|
|
11049
|
+
*/
|
|
11050
|
+
export interface SourceLocation33 {
|
|
11051
|
+
/**
|
|
11052
|
+
* 1-indexed line number in the source file where the step was detected.
|
|
11053
|
+
*/
|
|
11054
|
+
line: number;
|
|
11055
|
+
/**
|
|
11056
|
+
* 0-indexed character offset from the start of the source file where the step begins.
|
|
11057
|
+
*/
|
|
11058
|
+
startIndex: number;
|
|
11059
|
+
/**
|
|
11060
|
+
* 0-indexed character offset from the start of the source file where the step ends (exclusive).
|
|
11061
|
+
*/
|
|
11062
|
+
endIndex: number;
|
|
11063
|
+
}
|
|
10424
11064
|
export interface CloseSurface2 {
|
|
10425
11065
|
closeSurface: CloseSurface3;
|
|
10426
11066
|
[k: string]: unknown;
|
|
@@ -10431,7 +11071,7 @@ export interface ProcessSurface4 {
|
|
|
10431
11071
|
*/
|
|
10432
11072
|
process: string;
|
|
10433
11073
|
}
|
|
10434
|
-
export interface
|
|
11074
|
+
export interface BrowserSurface15 {
|
|
10435
11075
|
/**
|
|
10436
11076
|
* Browser engine. Selects the browser surface with that engine (or the one named by `name`). A goTo step opens the browser if it isn't open yet; other steps require it to already be open.
|
|
10437
11077
|
*/
|
|
@@ -10440,10 +11080,10 @@ export interface BrowserSurface13 {
|
|
|
10440
11080
|
* Name of the browser surface. Defaults to the engine name (the context's default browser registers under its engine). Assign distinct names to drive multiple browsers at once, including several of the same engine.
|
|
10441
11081
|
*/
|
|
10442
11082
|
name?: string;
|
|
10443
|
-
window?:
|
|
10444
|
-
tab?:
|
|
11083
|
+
window?: WindowTabSelector30;
|
|
11084
|
+
tab?: WindowTabSelector31;
|
|
10445
11085
|
}
|
|
10446
|
-
export interface
|
|
11086
|
+
export interface ByCriteria38 {
|
|
10447
11087
|
/**
|
|
10448
11088
|
* Name assigned when the window/tab was opened.
|
|
10449
11089
|
*/
|
|
@@ -10461,7 +11101,7 @@ export interface ByCriteria32 {
|
|
|
10461
11101
|
*/
|
|
10462
11102
|
url?: string;
|
|
10463
11103
|
}
|
|
10464
|
-
export interface
|
|
11104
|
+
export interface ByCriteria39 {
|
|
10465
11105
|
/**
|
|
10466
11106
|
* Name assigned when the window/tab was opened.
|
|
10467
11107
|
*/
|
|
@@ -10479,14 +11119,14 @@ export interface ByCriteria33 {
|
|
|
10479
11119
|
*/
|
|
10480
11120
|
url?: string;
|
|
10481
11121
|
}
|
|
10482
|
-
export interface
|
|
11122
|
+
export interface AppSurface8 {
|
|
10483
11123
|
/**
|
|
10484
11124
|
* Name of an app surface opened by `startSurface` (its `name`, or the default derived from the app identifier).
|
|
10485
11125
|
*/
|
|
10486
11126
|
app: string;
|
|
10487
|
-
window?:
|
|
11127
|
+
window?: AppWindowSelector8;
|
|
10488
11128
|
}
|
|
10489
|
-
export interface
|
|
11129
|
+
export interface ByCriteria40 {
|
|
10490
11130
|
/**
|
|
10491
11131
|
* Assigned window name.
|
|
10492
11132
|
*/
|
|
@@ -10506,7 +11146,7 @@ export interface ProcessSurface5 {
|
|
|
10506
11146
|
*/
|
|
10507
11147
|
process: string;
|
|
10508
11148
|
}
|
|
10509
|
-
export interface
|
|
11149
|
+
export interface BrowserSurface16 {
|
|
10510
11150
|
/**
|
|
10511
11151
|
* Browser engine. Selects the browser surface with that engine (or the one named by `name`). A goTo step opens the browser if it isn't open yet; other steps require it to already be open.
|
|
10512
11152
|
*/
|
|
@@ -10515,10 +11155,10 @@ export interface BrowserSurface14 {
|
|
|
10515
11155
|
* Name of the browser surface. Defaults to the engine name (the context's default browser registers under its engine). Assign distinct names to drive multiple browsers at once, including several of the same engine.
|
|
10516
11156
|
*/
|
|
10517
11157
|
name?: string;
|
|
10518
|
-
window?:
|
|
10519
|
-
tab?:
|
|
11158
|
+
window?: WindowTabSelector32;
|
|
11159
|
+
tab?: WindowTabSelector33;
|
|
10520
11160
|
}
|
|
10521
|
-
export interface
|
|
11161
|
+
export interface ByCriteria41 {
|
|
10522
11162
|
/**
|
|
10523
11163
|
* Name assigned when the window/tab was opened.
|
|
10524
11164
|
*/
|
|
@@ -10536,7 +11176,7 @@ export interface ByCriteria35 {
|
|
|
10536
11176
|
*/
|
|
10537
11177
|
url?: string;
|
|
10538
11178
|
}
|
|
10539
|
-
export interface
|
|
11179
|
+
export interface ByCriteria42 {
|
|
10540
11180
|
/**
|
|
10541
11181
|
* Name assigned when the window/tab was opened.
|
|
10542
11182
|
*/
|
|
@@ -10554,14 +11194,14 @@ export interface ByCriteria36 {
|
|
|
10554
11194
|
*/
|
|
10555
11195
|
url?: string;
|
|
10556
11196
|
}
|
|
10557
|
-
export interface
|
|
11197
|
+
export interface AppSurface9 {
|
|
10558
11198
|
/**
|
|
10559
11199
|
* Name of an app surface opened by `startSurface` (its `name`, or the default derived from the app identifier).
|
|
10560
11200
|
*/
|
|
10561
11201
|
app: string;
|
|
10562
|
-
window?:
|
|
11202
|
+
window?: AppWindowSelector9;
|
|
10563
11203
|
}
|
|
10564
|
-
export interface
|
|
11204
|
+
export interface ByCriteria43 {
|
|
10565
11205
|
/**
|
|
10566
11206
|
* Assigned window name.
|
|
10567
11207
|
*/
|
|
@@ -10575,7 +11215,7 @@ export interface ByCriteria37 {
|
|
|
10575
11215
|
*/
|
|
10576
11216
|
title?: string;
|
|
10577
11217
|
}
|
|
10578
|
-
export interface
|
|
11218
|
+
export interface Common34 {
|
|
10579
11219
|
/**
|
|
10580
11220
|
* JSON Schema for this object.
|
|
10581
11221
|
*/
|
|
@@ -10592,34 +11232,34 @@ export interface Common33 {
|
|
|
10592
11232
|
* Whether or not the step may be unsafe. Unsafe steps may perform actions that could modify the system or environment in unexpected ways. Unsafe steps are only performed within Docker containers or if unsafe steps are enabled with the `allowUnsafeSteps` config property or the `--allow-unsafe` flag.
|
|
10593
11233
|
*/
|
|
10594
11234
|
unsafe?: boolean;
|
|
10595
|
-
outputs?:
|
|
10596
|
-
variables?:
|
|
11235
|
+
outputs?: OutputsStep34;
|
|
11236
|
+
variables?: VariablesStep34;
|
|
10597
11237
|
/**
|
|
10598
11238
|
* Whether or not this step should act as a breakpoint when debugging is enabled. When `true`, execution will pause at this step when debug mode is enabled.
|
|
10599
11239
|
*/
|
|
10600
11240
|
breakpoint?: boolean;
|
|
10601
|
-
if?:
|
|
11241
|
+
if?: Condition69;
|
|
10602
11242
|
/**
|
|
10603
11243
|
* Assertions for this step. As authored input, a custom condition expression (or array of expressions, combined with logical AND). In a test result, the runner replaces this with the array of articulated assertion records it evaluated (implicit then custom).
|
|
10604
11244
|
*/
|
|
10605
|
-
assertions?:
|
|
11245
|
+
assertions?: Condition70 | Assertion34[];
|
|
10606
11246
|
/**
|
|
10607
11247
|
* Routing entries evaluated when this step passes. The first entry whose `if` matches applies. `continue`, `stop`, `retry`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed.
|
|
10608
11248
|
*/
|
|
10609
|
-
onPass?:
|
|
11249
|
+
onPass?: Routing140[];
|
|
10610
11250
|
/**
|
|
10611
11251
|
* Routing entries evaluated when this step fails. The first entry whose `if` matches applies; the default when none is set stops the test. `continue`, `stop`, `retry`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed.
|
|
10612
11252
|
*/
|
|
10613
|
-
onFail?:
|
|
11253
|
+
onFail?: Routing141[];
|
|
10614
11254
|
/**
|
|
10615
11255
|
* Routing entries evaluated when this step produces a warning. The first entry whose `if` matches applies. `continue`, `stop`, `retry`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed.
|
|
10616
11256
|
*/
|
|
10617
|
-
onWarning?:
|
|
11257
|
+
onWarning?: Routing142[];
|
|
10618
11258
|
/**
|
|
10619
11259
|
* Routing entries evaluated when this step is skipped (reached but not run — unsafe-blocked or guard-`if` false). The first entry whose `if` matches applies. `continue`, `stop`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed. (`retry` is a no-op here — a step that never ran cannot be re-run.)
|
|
10620
11260
|
*/
|
|
10621
|
-
onSkip?:
|
|
10622
|
-
location?:
|
|
11261
|
+
onSkip?: Routing143[];
|
|
11262
|
+
location?: SourceLocation34;
|
|
10623
11263
|
/**
|
|
10624
11264
|
* Path, relative to the run's artifact directory (the report's `runDir`), of the screenshot captured automatically after this step. Always a non-empty, forward-slash, relative path. Present only in test results, when `autoScreenshot` is enabled and the capture succeeded. This is system-populated metadata and should not be set manually.
|
|
10625
11265
|
*/
|
|
@@ -10637,11 +11277,11 @@ export interface Common33 {
|
|
|
10637
11277
|
/**
|
|
10638
11278
|
* Outputs from step processes and user-defined expressions. Use the `outputs` object to reference outputs in subsequent steps. If a user-defined output matches the key for a step-defined output, the user-defined output takes precedence.
|
|
10639
11279
|
*/
|
|
10640
|
-
export interface
|
|
11280
|
+
export interface OutputsStep34 {
|
|
10641
11281
|
/**
|
|
10642
11282
|
* Runtime expression for a user-defined output value.
|
|
10643
11283
|
*
|
|
10644
|
-
* This interface was referenced by `
|
|
11284
|
+
* This interface was referenced by `OutputsStep34`'s JSON-Schema definition
|
|
10645
11285
|
* via the `patternProperty` "^[A-Za-z0-9_]+$".
|
|
10646
11286
|
*/
|
|
10647
11287
|
[k: string]: string;
|
|
@@ -10649,11 +11289,11 @@ export interface OutputsStep33 {
|
|
|
10649
11289
|
/**
|
|
10650
11290
|
* Environment variables to set from user-defined expressions.
|
|
10651
11291
|
*/
|
|
10652
|
-
export interface
|
|
11292
|
+
export interface VariablesStep34 {
|
|
10653
11293
|
/**
|
|
10654
11294
|
* Runtime expression for a user-defined output value.
|
|
10655
11295
|
*
|
|
10656
|
-
* This interface was referenced by `
|
|
11296
|
+
* This interface was referenced by `VariablesStep34`'s JSON-Schema definition
|
|
10657
11297
|
* via the `patternProperty` "^[A-Za-z0-9_]+$".
|
|
10658
11298
|
*/
|
|
10659
11299
|
[k: string]: string;
|
|
@@ -10661,7 +11301,7 @@ export interface VariablesStep33 {
|
|
|
10661
11301
|
/**
|
|
10662
11302
|
* An articulated assertion record produced by the runner for a step result. Each record names a single verification check, whether it passed, and the values it compared. The step's result is the roll-up of its assertion results (FAIL > WARNING > all-SKIPPED > PASS). System-populated; appears in test results, not in authored specs.
|
|
10663
11303
|
*/
|
|
10664
|
-
export interface
|
|
11304
|
+
export interface Assertion34 {
|
|
10665
11305
|
/**
|
|
10666
11306
|
* Human-readable articulation of the check, e.g. `exitCode in [0]`.
|
|
10667
11307
|
*/
|
|
@@ -10694,7 +11334,7 @@ export interface Assertion33 {
|
|
|
10694
11334
|
/**
|
|
10695
11335
|
* Source location where this step was detected in the original file. This is system-populated metadata and should not be set manually.
|
|
10696
11336
|
*/
|
|
10697
|
-
export interface
|
|
11337
|
+
export interface SourceLocation34 {
|
|
10698
11338
|
/**
|
|
10699
11339
|
* 1-indexed line number in the source file where the step was detected.
|
|
10700
11340
|
*/
|
|
@@ -10780,37 +11420,381 @@ export interface DeviceDescriptor2 {
|
|
|
10780
11420
|
/**
|
|
10781
11421
|
* Platform version used when creating a device; must match an installed image/runtime for the target platform (install more with `doc-detective install android` or `doc-detective install ios`). Ignored when `name` already matches an existing device. Default: the newest installed version.
|
|
10782
11422
|
*/
|
|
10783
|
-
osVersion?: string;
|
|
11423
|
+
osVersion?: string;
|
|
11424
|
+
/**
|
|
11425
|
+
* Run the Android emulator without a window. No-op on iOS (simulators boot without the Simulator UI on CI) and ignored where not applicable.
|
|
11426
|
+
*/
|
|
11427
|
+
headless?: boolean;
|
|
11428
|
+
/**
|
|
11429
|
+
* Initial orientation. Reserved; validated now, not yet implemented.
|
|
11430
|
+
*/
|
|
11431
|
+
orientation?: "portrait" | "landscape";
|
|
11432
|
+
/**
|
|
11433
|
+
* Pin a specific device/emulator instance by UDID. Reserved; validated now, not yet implemented.
|
|
11434
|
+
*/
|
|
11435
|
+
udid?: string;
|
|
11436
|
+
/**
|
|
11437
|
+
* Cloud device farm configuration, keyed by provider. Reserved; validated now, not yet implemented.
|
|
11438
|
+
*/
|
|
11439
|
+
provider?: {
|
|
11440
|
+
[k: string]: unknown;
|
|
11441
|
+
};
|
|
11442
|
+
}
|
|
11443
|
+
/**
|
|
11444
|
+
* Startup readiness: a fixed delay and/or an element that must exist before the surface is considered open. No condition applies by default.
|
|
11445
|
+
*/
|
|
11446
|
+
export interface AppReadiness3 {
|
|
11447
|
+
/**
|
|
11448
|
+
* Fixed delay (ms).
|
|
11449
|
+
*/
|
|
11450
|
+
delayMs?: number;
|
|
11451
|
+
find?: ElementCriteria5;
|
|
11452
|
+
}
|
|
11453
|
+
export interface Common35 {
|
|
11454
|
+
/**
|
|
11455
|
+
* JSON Schema for this object.
|
|
11456
|
+
*/
|
|
11457
|
+
$schema?: "https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/step_v3.schema.json";
|
|
11458
|
+
/**
|
|
11459
|
+
* ID of the step.
|
|
11460
|
+
*/
|
|
11461
|
+
stepId?: string;
|
|
11462
|
+
/**
|
|
11463
|
+
* Description of the step.
|
|
11464
|
+
*/
|
|
11465
|
+
description?: string;
|
|
11466
|
+
/**
|
|
11467
|
+
* Whether or not the step may be unsafe. Unsafe steps may perform actions that could modify the system or environment in unexpected ways. Unsafe steps are only performed within Docker containers or if unsafe steps are enabled with the `allowUnsafeSteps` config property or the `--allow-unsafe` flag.
|
|
11468
|
+
*/
|
|
11469
|
+
unsafe?: boolean;
|
|
11470
|
+
outputs?: OutputsStep35;
|
|
11471
|
+
variables?: VariablesStep35;
|
|
11472
|
+
/**
|
|
11473
|
+
* Whether or not this step should act as a breakpoint when debugging is enabled. When `true`, execution will pause at this step when debug mode is enabled.
|
|
11474
|
+
*/
|
|
11475
|
+
breakpoint?: boolean;
|
|
11476
|
+
if?: Condition71;
|
|
11477
|
+
/**
|
|
11478
|
+
* Assertions for this step. As authored input, a custom condition expression (or array of expressions, combined with logical AND). In a test result, the runner replaces this with the array of articulated assertion records it evaluated (implicit then custom).
|
|
11479
|
+
*/
|
|
11480
|
+
assertions?: Condition72 | Assertion35[];
|
|
11481
|
+
/**
|
|
11482
|
+
* Routing entries evaluated when this step passes. The first entry whose `if` matches applies. `continue`, `stop`, `retry`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed.
|
|
11483
|
+
*/
|
|
11484
|
+
onPass?: Routing144[];
|
|
11485
|
+
/**
|
|
11486
|
+
* Routing entries evaluated when this step fails. The first entry whose `if` matches applies; the default when none is set stops the test. `continue`, `stop`, `retry`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed.
|
|
11487
|
+
*/
|
|
11488
|
+
onFail?: Routing145[];
|
|
11489
|
+
/**
|
|
11490
|
+
* Routing entries evaluated when this step produces a warning. The first entry whose `if` matches applies. `continue`, `stop`, `retry`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed.
|
|
11491
|
+
*/
|
|
11492
|
+
onWarning?: Routing146[];
|
|
11493
|
+
/**
|
|
11494
|
+
* Routing entries evaluated when this step is skipped (reached but not run — unsafe-blocked or guard-`if` false). The first entry whose `if` matches applies. `continue`, `stop`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed. (`retry` is a no-op here — a step that never ran cannot be re-run.)
|
|
11495
|
+
*/
|
|
11496
|
+
onSkip?: Routing147[];
|
|
11497
|
+
location?: SourceLocation35;
|
|
11498
|
+
/**
|
|
11499
|
+
* Path, relative to the run's artifact directory (the report's `runDir`), of the screenshot captured automatically after this step. Always a non-empty, forward-slash, relative path. Present only in test results, when `autoScreenshot` is enabled and the capture succeeded. This is system-populated metadata and should not be set manually.
|
|
11500
|
+
*/
|
|
11501
|
+
autoScreenshot?: string;
|
|
11502
|
+
/**
|
|
11503
|
+
* Total number of times this step ran (the initial attempt plus retries) when a routing `retry` action re-ran it. Present only in test results, and only when the step was retried at least once (so the value is always >= 2). This is system-populated metadata and should not be set manually.
|
|
11504
|
+
*/
|
|
11505
|
+
attempts?: number;
|
|
11506
|
+
/**
|
|
11507
|
+
* Which visit of this step produced this report, when a routing goToStep re-ran it (the first visit omits this field). Present only in test results; system-populated.
|
|
11508
|
+
*/
|
|
11509
|
+
visit?: number;
|
|
11510
|
+
[k: string]: unknown;
|
|
11511
|
+
}
|
|
11512
|
+
/**
|
|
11513
|
+
* Outputs from step processes and user-defined expressions. Use the `outputs` object to reference outputs in subsequent steps. If a user-defined output matches the key for a step-defined output, the user-defined output takes precedence.
|
|
11514
|
+
*/
|
|
11515
|
+
export interface OutputsStep35 {
|
|
11516
|
+
/**
|
|
11517
|
+
* Runtime expression for a user-defined output value.
|
|
11518
|
+
*
|
|
11519
|
+
* This interface was referenced by `OutputsStep35`'s JSON-Schema definition
|
|
11520
|
+
* via the `patternProperty` "^[A-Za-z0-9_]+$".
|
|
11521
|
+
*/
|
|
11522
|
+
[k: string]: string;
|
|
11523
|
+
}
|
|
11524
|
+
/**
|
|
11525
|
+
* Environment variables to set from user-defined expressions.
|
|
11526
|
+
*/
|
|
11527
|
+
export interface VariablesStep35 {
|
|
11528
|
+
/**
|
|
11529
|
+
* Runtime expression for a user-defined output value.
|
|
11530
|
+
*
|
|
11531
|
+
* This interface was referenced by `VariablesStep35`'s JSON-Schema definition
|
|
11532
|
+
* via the `patternProperty` "^[A-Za-z0-9_]+$".
|
|
11533
|
+
*/
|
|
11534
|
+
[k: string]: string;
|
|
11535
|
+
}
|
|
11536
|
+
/**
|
|
11537
|
+
* An articulated assertion record produced by the runner for a step result. Each record names a single verification check, whether it passed, and the values it compared. The step's result is the roll-up of its assertion results (FAIL > WARNING > all-SKIPPED > PASS). System-populated; appears in test results, not in authored specs.
|
|
11538
|
+
*/
|
|
11539
|
+
export interface Assertion35 {
|
|
11540
|
+
/**
|
|
11541
|
+
* Human-readable articulation of the check, e.g. `exitCode in [0]`.
|
|
11542
|
+
*/
|
|
11543
|
+
statement: string;
|
|
11544
|
+
/**
|
|
11545
|
+
* Who defined the assertion: `implicit` (runner-defined) or `custom` (user-defined).
|
|
11546
|
+
*/
|
|
11547
|
+
source: "implicit" | "custom";
|
|
11548
|
+
/**
|
|
11549
|
+
* Outcome of evaluating the assertion.
|
|
11550
|
+
*/
|
|
11551
|
+
result: "PASS" | "FAIL" | "WARNING" | "SKIPPED";
|
|
11552
|
+
/**
|
|
11553
|
+
* The value (or values) the assertion expected. Optional.
|
|
11554
|
+
*/
|
|
11555
|
+
expected?: unknown[] | boolean | number | null | number | {
|
|
11556
|
+
[k: string]: unknown;
|
|
11557
|
+
} | string;
|
|
11558
|
+
/**
|
|
11559
|
+
* The value actually observed. Optional.
|
|
11560
|
+
*/
|
|
11561
|
+
actual?: unknown[] | boolean | number | null | number | {
|
|
11562
|
+
[k: string]: unknown;
|
|
11563
|
+
} | string;
|
|
11564
|
+
/**
|
|
11565
|
+
* Human-readable explanation of the outcome. Optional.
|
|
11566
|
+
*/
|
|
11567
|
+
description?: string;
|
|
11568
|
+
}
|
|
11569
|
+
/**
|
|
11570
|
+
* Source location where this step was detected in the original file. This is system-populated metadata and should not be set manually.
|
|
11571
|
+
*/
|
|
11572
|
+
export interface SourceLocation35 {
|
|
11573
|
+
/**
|
|
11574
|
+
* 1-indexed line number in the source file where the step was detected.
|
|
11575
|
+
*/
|
|
11576
|
+
line: number;
|
|
11577
|
+
/**
|
|
11578
|
+
* 0-indexed character offset from the start of the source file where the step begins.
|
|
11579
|
+
*/
|
|
11580
|
+
startIndex: number;
|
|
11581
|
+
/**
|
|
11582
|
+
* 0-indexed character offset from the start of the source file where the step ends (exclusive).
|
|
11583
|
+
*/
|
|
11584
|
+
endIndex: number;
|
|
11585
|
+
}
|
|
11586
|
+
export interface LoadVariables2 {
|
|
11587
|
+
loadVariables: LoadVariables3;
|
|
11588
|
+
[k: string]: unknown;
|
|
11589
|
+
}
|
|
11590
|
+
export interface Common36 {
|
|
11591
|
+
/**
|
|
11592
|
+
* JSON Schema for this object.
|
|
11593
|
+
*/
|
|
11594
|
+
$schema?: "https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/step_v3.schema.json";
|
|
11595
|
+
/**
|
|
11596
|
+
* ID of the step.
|
|
11597
|
+
*/
|
|
11598
|
+
stepId?: string;
|
|
11599
|
+
/**
|
|
11600
|
+
* Description of the step.
|
|
11601
|
+
*/
|
|
11602
|
+
description?: string;
|
|
11603
|
+
/**
|
|
11604
|
+
* Whether or not the step may be unsafe. Unsafe steps may perform actions that could modify the system or environment in unexpected ways. Unsafe steps are only performed within Docker containers or if unsafe steps are enabled with the `allowUnsafeSteps` config property or the `--allow-unsafe` flag.
|
|
11605
|
+
*/
|
|
11606
|
+
unsafe?: boolean;
|
|
11607
|
+
outputs?: OutputsStep36;
|
|
11608
|
+
variables?: VariablesStep36;
|
|
11609
|
+
/**
|
|
11610
|
+
* Whether or not this step should act as a breakpoint when debugging is enabled. When `true`, execution will pause at this step when debug mode is enabled.
|
|
11611
|
+
*/
|
|
11612
|
+
breakpoint?: boolean;
|
|
11613
|
+
if?: Condition73;
|
|
11614
|
+
/**
|
|
11615
|
+
* Assertions for this step. As authored input, a custom condition expression (or array of expressions, combined with logical AND). In a test result, the runner replaces this with the array of articulated assertion records it evaluated (implicit then custom).
|
|
11616
|
+
*/
|
|
11617
|
+
assertions?: Condition74 | Assertion36[];
|
|
11618
|
+
/**
|
|
11619
|
+
* Routing entries evaluated when this step passes. The first entry whose `if` matches applies. `continue`, `stop`, `retry`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed.
|
|
11620
|
+
*/
|
|
11621
|
+
onPass?: Routing148[];
|
|
11622
|
+
/**
|
|
11623
|
+
* Routing entries evaluated when this step fails. The first entry whose `if` matches applies; the default when none is set stops the test. `continue`, `stop`, `retry`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed.
|
|
11624
|
+
*/
|
|
11625
|
+
onFail?: Routing149[];
|
|
11626
|
+
/**
|
|
11627
|
+
* Routing entries evaluated when this step produces a warning. The first entry whose `if` matches applies. `continue`, `stop`, `retry`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed.
|
|
11628
|
+
*/
|
|
11629
|
+
onWarning?: Routing150[];
|
|
11630
|
+
/**
|
|
11631
|
+
* Routing entries evaluated when this step is skipped (reached but not run — unsafe-blocked or guard-`if` false). The first entry whose `if` matches applies. `continue`, `stop`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed. (`retry` is a no-op here — a step that never ran cannot be re-run.)
|
|
11632
|
+
*/
|
|
11633
|
+
onSkip?: Routing151[];
|
|
11634
|
+
location?: SourceLocation36;
|
|
11635
|
+
/**
|
|
11636
|
+
* Path, relative to the run's artifact directory (the report's `runDir`), of the screenshot captured automatically after this step. Always a non-empty, forward-slash, relative path. Present only in test results, when `autoScreenshot` is enabled and the capture succeeded. This is system-populated metadata and should not be set manually.
|
|
11637
|
+
*/
|
|
11638
|
+
autoScreenshot?: string;
|
|
11639
|
+
/**
|
|
11640
|
+
* Total number of times this step ran (the initial attempt plus retries) when a routing `retry` action re-ran it. Present only in test results, and only when the step was retried at least once (so the value is always >= 2). This is system-populated metadata and should not be set manually.
|
|
11641
|
+
*/
|
|
11642
|
+
attempts?: number;
|
|
11643
|
+
/**
|
|
11644
|
+
* Which visit of this step produced this report, when a routing goToStep re-ran it (the first visit omits this field). Present only in test results; system-populated.
|
|
11645
|
+
*/
|
|
11646
|
+
visit?: number;
|
|
11647
|
+
[k: string]: unknown;
|
|
11648
|
+
}
|
|
11649
|
+
/**
|
|
11650
|
+
* Outputs from step processes and user-defined expressions. Use the `outputs` object to reference outputs in subsequent steps. If a user-defined output matches the key for a step-defined output, the user-defined output takes precedence.
|
|
11651
|
+
*/
|
|
11652
|
+
export interface OutputsStep36 {
|
|
11653
|
+
/**
|
|
11654
|
+
* Runtime expression for a user-defined output value.
|
|
11655
|
+
*
|
|
11656
|
+
* This interface was referenced by `OutputsStep36`'s JSON-Schema definition
|
|
11657
|
+
* via the `patternProperty` "^[A-Za-z0-9_]+$".
|
|
11658
|
+
*/
|
|
11659
|
+
[k: string]: string;
|
|
11660
|
+
}
|
|
11661
|
+
/**
|
|
11662
|
+
* Environment variables to set from user-defined expressions.
|
|
11663
|
+
*/
|
|
11664
|
+
export interface VariablesStep36 {
|
|
11665
|
+
/**
|
|
11666
|
+
* Runtime expression for a user-defined output value.
|
|
11667
|
+
*
|
|
11668
|
+
* This interface was referenced by `VariablesStep36`'s JSON-Schema definition
|
|
11669
|
+
* via the `patternProperty` "^[A-Za-z0-9_]+$".
|
|
11670
|
+
*/
|
|
11671
|
+
[k: string]: string;
|
|
11672
|
+
}
|
|
11673
|
+
/**
|
|
11674
|
+
* An articulated assertion record produced by the runner for a step result. Each record names a single verification check, whether it passed, and the values it compared. The step's result is the roll-up of its assertion results (FAIL > WARNING > all-SKIPPED > PASS). System-populated; appears in test results, not in authored specs.
|
|
11675
|
+
*/
|
|
11676
|
+
export interface Assertion36 {
|
|
11677
|
+
/**
|
|
11678
|
+
* Human-readable articulation of the check, e.g. `exitCode in [0]`.
|
|
11679
|
+
*/
|
|
11680
|
+
statement: string;
|
|
11681
|
+
/**
|
|
11682
|
+
* Who defined the assertion: `implicit` (runner-defined) or `custom` (user-defined).
|
|
11683
|
+
*/
|
|
11684
|
+
source: "implicit" | "custom";
|
|
11685
|
+
/**
|
|
11686
|
+
* Outcome of evaluating the assertion.
|
|
11687
|
+
*/
|
|
11688
|
+
result: "PASS" | "FAIL" | "WARNING" | "SKIPPED";
|
|
11689
|
+
/**
|
|
11690
|
+
* The value (or values) the assertion expected. Optional.
|
|
11691
|
+
*/
|
|
11692
|
+
expected?: unknown[] | boolean | number | null | number | {
|
|
11693
|
+
[k: string]: unknown;
|
|
11694
|
+
} | string;
|
|
11695
|
+
/**
|
|
11696
|
+
* The value actually observed. Optional.
|
|
11697
|
+
*/
|
|
11698
|
+
actual?: unknown[] | boolean | number | null | number | {
|
|
11699
|
+
[k: string]: unknown;
|
|
11700
|
+
} | string;
|
|
11701
|
+
/**
|
|
11702
|
+
* Human-readable explanation of the outcome. Optional.
|
|
11703
|
+
*/
|
|
11704
|
+
description?: string;
|
|
11705
|
+
}
|
|
11706
|
+
/**
|
|
11707
|
+
* Source location where this step was detected in the original file. This is system-populated metadata and should not be set manually.
|
|
11708
|
+
*/
|
|
11709
|
+
export interface SourceLocation36 {
|
|
11710
|
+
/**
|
|
11711
|
+
* 1-indexed line number in the source file where the step was detected.
|
|
11712
|
+
*/
|
|
11713
|
+
line: number;
|
|
11714
|
+
/**
|
|
11715
|
+
* 0-indexed character offset from the start of the source file where the step begins.
|
|
11716
|
+
*/
|
|
11717
|
+
startIndex: number;
|
|
11718
|
+
/**
|
|
11719
|
+
* 0-indexed character offset from the start of the source file where the step ends (exclusive).
|
|
11720
|
+
*/
|
|
11721
|
+
endIndex: number;
|
|
11722
|
+
}
|
|
11723
|
+
export interface DragAndDrop2 {
|
|
11724
|
+
dragAndDrop: DragAndDrop3;
|
|
11725
|
+
[k: string]: unknown;
|
|
11726
|
+
}
|
|
11727
|
+
/**
|
|
11728
|
+
* Drag and drop an element from source to target.
|
|
11729
|
+
*/
|
|
11730
|
+
export interface DragAndDrop3 {
|
|
11731
|
+
/**
|
|
11732
|
+
* The element to drag.
|
|
11733
|
+
*/
|
|
11734
|
+
source: ElementSimple2 | ElementDetailed2;
|
|
11735
|
+
/**
|
|
11736
|
+
* The target location to drop the element.
|
|
11737
|
+
*/
|
|
11738
|
+
target: ElementSimple3 | ElementDetailed3;
|
|
11739
|
+
/**
|
|
11740
|
+
* Duration of the drag operation in milliseconds.
|
|
11741
|
+
*/
|
|
11742
|
+
duration?: number;
|
|
11743
|
+
/**
|
|
11744
|
+
* The browser window/tab the source and target elements live in. Omit to act on the active tab. The targeted tab stays focused afterward.
|
|
11745
|
+
*/
|
|
11746
|
+
surface?: SurfaceByBrowserEngine11 | BrowserSurface17;
|
|
11747
|
+
[k: string]: unknown;
|
|
11748
|
+
}
|
|
11749
|
+
export interface BrowserSurface17 {
|
|
11750
|
+
/**
|
|
11751
|
+
* Browser engine. Selects the browser surface with that engine (or the one named by `name`). A goTo step opens the browser if it isn't open yet; other steps require it to already be open.
|
|
11752
|
+
*/
|
|
11753
|
+
browser: "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
11754
|
+
/**
|
|
11755
|
+
* Name of the browser surface. Defaults to the engine name (the context's default browser registers under its engine). Assign distinct names to drive multiple browsers at once, including several of the same engine.
|
|
11756
|
+
*/
|
|
11757
|
+
name?: string;
|
|
11758
|
+
window?: WindowTabSelector34;
|
|
11759
|
+
tab?: WindowTabSelector35;
|
|
11760
|
+
}
|
|
11761
|
+
export interface ByCriteria44 {
|
|
11762
|
+
/**
|
|
11763
|
+
* Name assigned when the window/tab was opened.
|
|
11764
|
+
*/
|
|
11765
|
+
name?: string;
|
|
11766
|
+
/**
|
|
11767
|
+
* Index in creation order. Negative counts from the end.
|
|
11768
|
+
*/
|
|
11769
|
+
index?: number;
|
|
11770
|
+
/**
|
|
11771
|
+
* Page title to match. Substring, or /regex/.
|
|
11772
|
+
*/
|
|
11773
|
+
title?: string;
|
|
10784
11774
|
/**
|
|
10785
|
-
*
|
|
11775
|
+
* Page URL to match. Substring, or /regex/.
|
|
10786
11776
|
*/
|
|
10787
|
-
|
|
11777
|
+
url?: string;
|
|
11778
|
+
}
|
|
11779
|
+
export interface ByCriteria45 {
|
|
10788
11780
|
/**
|
|
10789
|
-
*
|
|
11781
|
+
* Name assigned when the window/tab was opened.
|
|
10790
11782
|
*/
|
|
10791
|
-
|
|
11783
|
+
name?: string;
|
|
10792
11784
|
/**
|
|
10793
|
-
*
|
|
11785
|
+
* Index in creation order. Negative counts from the end.
|
|
10794
11786
|
*/
|
|
10795
|
-
|
|
11787
|
+
index?: number;
|
|
10796
11788
|
/**
|
|
10797
|
-
*
|
|
11789
|
+
* Page title to match. Substring, or /regex/.
|
|
10798
11790
|
*/
|
|
10799
|
-
|
|
10800
|
-
[k: string]: unknown;
|
|
10801
|
-
};
|
|
10802
|
-
}
|
|
10803
|
-
/**
|
|
10804
|
-
* Startup readiness: a fixed delay and/or an element that must exist before the surface is considered open. No condition applies by default.
|
|
10805
|
-
*/
|
|
10806
|
-
export interface AppReadiness3 {
|
|
11791
|
+
title?: string;
|
|
10807
11792
|
/**
|
|
10808
|
-
*
|
|
11793
|
+
* Page URL to match. Substring, or /regex/.
|
|
10809
11794
|
*/
|
|
10810
|
-
|
|
10811
|
-
find?: ElementCriteria5;
|
|
11795
|
+
url?: string;
|
|
10812
11796
|
}
|
|
10813
|
-
export interface
|
|
11797
|
+
export interface Common37 {
|
|
10814
11798
|
/**
|
|
10815
11799
|
* JSON Schema for this object.
|
|
10816
11800
|
*/
|
|
@@ -10827,34 +11811,34 @@ export interface Common34 {
|
|
|
10827
11811
|
* Whether or not the step may be unsafe. Unsafe steps may perform actions that could modify the system or environment in unexpected ways. Unsafe steps are only performed within Docker containers or if unsafe steps are enabled with the `allowUnsafeSteps` config property or the `--allow-unsafe` flag.
|
|
10828
11812
|
*/
|
|
10829
11813
|
unsafe?: boolean;
|
|
10830
|
-
outputs?:
|
|
10831
|
-
variables?:
|
|
11814
|
+
outputs?: OutputsStep37;
|
|
11815
|
+
variables?: VariablesStep37;
|
|
10832
11816
|
/**
|
|
10833
11817
|
* Whether or not this step should act as a breakpoint when debugging is enabled. When `true`, execution will pause at this step when debug mode is enabled.
|
|
10834
11818
|
*/
|
|
10835
11819
|
breakpoint?: boolean;
|
|
10836
|
-
if?:
|
|
11820
|
+
if?: Condition75;
|
|
10837
11821
|
/**
|
|
10838
11822
|
* Assertions for this step. As authored input, a custom condition expression (or array of expressions, combined with logical AND). In a test result, the runner replaces this with the array of articulated assertion records it evaluated (implicit then custom).
|
|
10839
11823
|
*/
|
|
10840
|
-
assertions?:
|
|
11824
|
+
assertions?: Condition76 | Assertion37[];
|
|
10841
11825
|
/**
|
|
10842
11826
|
* Routing entries evaluated when this step passes. The first entry whose `if` matches applies. `continue`, `stop`, `retry`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed.
|
|
10843
11827
|
*/
|
|
10844
|
-
onPass?:
|
|
11828
|
+
onPass?: Routing152[];
|
|
10845
11829
|
/**
|
|
10846
11830
|
* Routing entries evaluated when this step fails. The first entry whose `if` matches applies; the default when none is set stops the test. `continue`, `stop`, `retry`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed.
|
|
10847
11831
|
*/
|
|
10848
|
-
onFail?:
|
|
11832
|
+
onFail?: Routing153[];
|
|
10849
11833
|
/**
|
|
10850
11834
|
* Routing entries evaluated when this step produces a warning. The first entry whose `if` matches applies. `continue`, `stop`, `retry`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed.
|
|
10851
11835
|
*/
|
|
10852
|
-
onWarning?:
|
|
11836
|
+
onWarning?: Routing154[];
|
|
10853
11837
|
/**
|
|
10854
11838
|
* Routing entries evaluated when this step is skipped (reached but not run — unsafe-blocked or guard-`if` false). The first entry whose `if` matches applies. `continue`, `stop`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed. (`retry` is a no-op here — a step that never ran cannot be re-run.)
|
|
10855
11839
|
*/
|
|
10856
|
-
onSkip?:
|
|
10857
|
-
location?:
|
|
11840
|
+
onSkip?: Routing155[];
|
|
11841
|
+
location?: SourceLocation37;
|
|
10858
11842
|
/**
|
|
10859
11843
|
* Path, relative to the run's artifact directory (the report's `runDir`), of the screenshot captured automatically after this step. Always a non-empty, forward-slash, relative path. Present only in test results, when `autoScreenshot` is enabled and the capture succeeded. This is system-populated metadata and should not be set manually.
|
|
10860
11844
|
*/
|
|
@@ -10872,11 +11856,11 @@ export interface Common34 {
|
|
|
10872
11856
|
/**
|
|
10873
11857
|
* Outputs from step processes and user-defined expressions. Use the `outputs` object to reference outputs in subsequent steps. If a user-defined output matches the key for a step-defined output, the user-defined output takes precedence.
|
|
10874
11858
|
*/
|
|
10875
|
-
export interface
|
|
11859
|
+
export interface OutputsStep37 {
|
|
10876
11860
|
/**
|
|
10877
11861
|
* Runtime expression for a user-defined output value.
|
|
10878
11862
|
*
|
|
10879
|
-
* This interface was referenced by `
|
|
11863
|
+
* This interface was referenced by `OutputsStep37`'s JSON-Schema definition
|
|
10880
11864
|
* via the `patternProperty` "^[A-Za-z0-9_]+$".
|
|
10881
11865
|
*/
|
|
10882
11866
|
[k: string]: string;
|
|
@@ -10884,11 +11868,11 @@ export interface OutputsStep34 {
|
|
|
10884
11868
|
/**
|
|
10885
11869
|
* Environment variables to set from user-defined expressions.
|
|
10886
11870
|
*/
|
|
10887
|
-
export interface
|
|
11871
|
+
export interface VariablesStep37 {
|
|
10888
11872
|
/**
|
|
10889
11873
|
* Runtime expression for a user-defined output value.
|
|
10890
11874
|
*
|
|
10891
|
-
* This interface was referenced by `
|
|
11875
|
+
* This interface was referenced by `VariablesStep37`'s JSON-Schema definition
|
|
10892
11876
|
* via the `patternProperty` "^[A-Za-z0-9_]+$".
|
|
10893
11877
|
*/
|
|
10894
11878
|
[k: string]: string;
|
|
@@ -10896,7 +11880,7 @@ export interface VariablesStep34 {
|
|
|
10896
11880
|
/**
|
|
10897
11881
|
* An articulated assertion record produced by the runner for a step result. Each record names a single verification check, whether it passed, and the values it compared. The step's result is the roll-up of its assertion results (FAIL > WARNING > all-SKIPPED > PASS). System-populated; appears in test results, not in authored specs.
|
|
10898
11882
|
*/
|
|
10899
|
-
export interface
|
|
11883
|
+
export interface Assertion37 {
|
|
10900
11884
|
/**
|
|
10901
11885
|
* Human-readable articulation of the check, e.g. `exitCode in [0]`.
|
|
10902
11886
|
*/
|
|
@@ -10929,7 +11913,7 @@ export interface Assertion34 {
|
|
|
10929
11913
|
/**
|
|
10930
11914
|
* Source location where this step was detected in the original file. This is system-populated metadata and should not be set manually.
|
|
10931
11915
|
*/
|
|
10932
|
-
export interface
|
|
11916
|
+
export interface SourceLocation37 {
|
|
10933
11917
|
/**
|
|
10934
11918
|
* 1-indexed line number in the source file where the step was detected.
|
|
10935
11919
|
*/
|
|
@@ -10943,11 +11927,11 @@ export interface SourceLocation34 {
|
|
|
10943
11927
|
*/
|
|
10944
11928
|
endIndex: number;
|
|
10945
11929
|
}
|
|
10946
|
-
export interface
|
|
10947
|
-
|
|
11930
|
+
export interface LoadCookie2 {
|
|
11931
|
+
loadCookie: LoadCookie3;
|
|
10948
11932
|
[k: string]: unknown;
|
|
10949
11933
|
}
|
|
10950
|
-
export interface
|
|
11934
|
+
export interface Common38 {
|
|
10951
11935
|
/**
|
|
10952
11936
|
* JSON Schema for this object.
|
|
10953
11937
|
*/
|
|
@@ -10964,34 +11948,34 @@ export interface Common35 {
|
|
|
10964
11948
|
* Whether or not the step may be unsafe. Unsafe steps may perform actions that could modify the system or environment in unexpected ways. Unsafe steps are only performed within Docker containers or if unsafe steps are enabled with the `allowUnsafeSteps` config property or the `--allow-unsafe` flag.
|
|
10965
11949
|
*/
|
|
10966
11950
|
unsafe?: boolean;
|
|
10967
|
-
outputs?:
|
|
10968
|
-
variables?:
|
|
11951
|
+
outputs?: OutputsStep38;
|
|
11952
|
+
variables?: VariablesStep38;
|
|
10969
11953
|
/**
|
|
10970
11954
|
* Whether or not this step should act as a breakpoint when debugging is enabled. When `true`, execution will pause at this step when debug mode is enabled.
|
|
10971
11955
|
*/
|
|
10972
11956
|
breakpoint?: boolean;
|
|
10973
|
-
if?:
|
|
11957
|
+
if?: Condition77;
|
|
10974
11958
|
/**
|
|
10975
11959
|
* Assertions for this step. As authored input, a custom condition expression (or array of expressions, combined with logical AND). In a test result, the runner replaces this with the array of articulated assertion records it evaluated (implicit then custom).
|
|
10976
11960
|
*/
|
|
10977
|
-
assertions?:
|
|
11961
|
+
assertions?: Condition78 | Assertion38[];
|
|
10978
11962
|
/**
|
|
10979
11963
|
* Routing entries evaluated when this step passes. The first entry whose `if` matches applies. `continue`, `stop`, `retry`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed.
|
|
10980
11964
|
*/
|
|
10981
|
-
onPass?:
|
|
11965
|
+
onPass?: Routing156[];
|
|
10982
11966
|
/**
|
|
10983
11967
|
* Routing entries evaluated when this step fails. The first entry whose `if` matches applies; the default when none is set stops the test. `continue`, `stop`, `retry`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed.
|
|
10984
11968
|
*/
|
|
10985
|
-
onFail?:
|
|
11969
|
+
onFail?: Routing157[];
|
|
10986
11970
|
/**
|
|
10987
11971
|
* Routing entries evaluated when this step produces a warning. The first entry whose `if` matches applies. `continue`, `stop`, `retry`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed.
|
|
10988
11972
|
*/
|
|
10989
|
-
onWarning?:
|
|
11973
|
+
onWarning?: Routing158[];
|
|
10990
11974
|
/**
|
|
10991
11975
|
* Routing entries evaluated when this step is skipped (reached but not run — unsafe-blocked or guard-`if` false). The first entry whose `if` matches applies. `continue`, `stop`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed. (`retry` is a no-op here — a step that never ran cannot be re-run.)
|
|
10992
11976
|
*/
|
|
10993
|
-
onSkip?:
|
|
10994
|
-
location?:
|
|
11977
|
+
onSkip?: Routing159[];
|
|
11978
|
+
location?: SourceLocation38;
|
|
10995
11979
|
/**
|
|
10996
11980
|
* Path, relative to the run's artifact directory (the report's `runDir`), of the screenshot captured automatically after this step. Always a non-empty, forward-slash, relative path. Present only in test results, when `autoScreenshot` is enabled and the capture succeeded. This is system-populated metadata and should not be set manually.
|
|
10997
11981
|
*/
|
|
@@ -11009,11 +11993,11 @@ export interface Common35 {
|
|
|
11009
11993
|
/**
|
|
11010
11994
|
* Outputs from step processes and user-defined expressions. Use the `outputs` object to reference outputs in subsequent steps. If a user-defined output matches the key for a step-defined output, the user-defined output takes precedence.
|
|
11011
11995
|
*/
|
|
11012
|
-
export interface
|
|
11996
|
+
export interface OutputsStep38 {
|
|
11013
11997
|
/**
|
|
11014
11998
|
* Runtime expression for a user-defined output value.
|
|
11015
11999
|
*
|
|
11016
|
-
* This interface was referenced by `
|
|
12000
|
+
* This interface was referenced by `OutputsStep38`'s JSON-Schema definition
|
|
11017
12001
|
* via the `patternProperty` "^[A-Za-z0-9_]+$".
|
|
11018
12002
|
*/
|
|
11019
12003
|
[k: string]: string;
|
|
@@ -11021,11 +12005,11 @@ export interface OutputsStep35 {
|
|
|
11021
12005
|
/**
|
|
11022
12006
|
* Environment variables to set from user-defined expressions.
|
|
11023
12007
|
*/
|
|
11024
|
-
export interface
|
|
12008
|
+
export interface VariablesStep38 {
|
|
11025
12009
|
/**
|
|
11026
12010
|
* Runtime expression for a user-defined output value.
|
|
11027
12011
|
*
|
|
11028
|
-
* This interface was referenced by `
|
|
12012
|
+
* This interface was referenced by `VariablesStep38`'s JSON-Schema definition
|
|
11029
12013
|
* via the `patternProperty` "^[A-Za-z0-9_]+$".
|
|
11030
12014
|
*/
|
|
11031
12015
|
[k: string]: string;
|
|
@@ -11033,7 +12017,7 @@ export interface VariablesStep35 {
|
|
|
11033
12017
|
/**
|
|
11034
12018
|
* An articulated assertion record produced by the runner for a step result. Each record names a single verification check, whether it passed, and the values it compared. The step's result is the roll-up of its assertion results (FAIL > WARNING > all-SKIPPED > PASS). System-populated; appears in test results, not in authored specs.
|
|
11035
12019
|
*/
|
|
11036
|
-
export interface
|
|
12020
|
+
export interface Assertion38 {
|
|
11037
12021
|
/**
|
|
11038
12022
|
* Human-readable articulation of the check, e.g. `exitCode in [0]`.
|
|
11039
12023
|
*/
|
|
@@ -11066,7 +12050,7 @@ export interface Assertion35 {
|
|
|
11066
12050
|
/**
|
|
11067
12051
|
* Source location where this step was detected in the original file. This is system-populated metadata and should not be set manually.
|
|
11068
12052
|
*/
|
|
11069
|
-
export interface
|
|
12053
|
+
export interface SourceLocation38 {
|
|
11070
12054
|
/**
|
|
11071
12055
|
* 1-indexed line number in the source file where the step was detected.
|
|
11072
12056
|
*/
|
|
@@ -11080,33 +12064,26 @@ export interface SourceLocation35 {
|
|
|
11080
12064
|
*/
|
|
11081
12065
|
endIndex: number;
|
|
11082
12066
|
}
|
|
11083
|
-
export interface
|
|
11084
|
-
|
|
12067
|
+
export interface Swipe2 {
|
|
12068
|
+
swipe: Swipe3;
|
|
11085
12069
|
[k: string]: unknown;
|
|
11086
12070
|
}
|
|
11087
|
-
|
|
11088
|
-
|
|
11089
|
-
*/
|
|
11090
|
-
export interface DragAndDrop3 {
|
|
11091
|
-
/**
|
|
11092
|
-
* The element to drag.
|
|
11093
|
-
*/
|
|
11094
|
-
source: ElementSimple2 | ElementDetailed2;
|
|
12071
|
+
export interface SwipeDirectional1 {
|
|
12072
|
+
direction: SwipeSimple3;
|
|
11095
12073
|
/**
|
|
11096
|
-
*
|
|
12074
|
+
* How far to swipe, as a fraction of the surface's height (for up/down) or width (for left/right).
|
|
11097
12075
|
*/
|
|
11098
|
-
|
|
12076
|
+
distance?: number;
|
|
11099
12077
|
/**
|
|
11100
|
-
* Duration of the
|
|
12078
|
+
* Duration of the swipe movement in milliseconds.
|
|
11101
12079
|
*/
|
|
11102
12080
|
duration?: number;
|
|
11103
12081
|
/**
|
|
11104
|
-
* The browser window/tab
|
|
12082
|
+
* The browser window/tab or app window this step acts on. Omit to act on the active tab. The targeted surface stays focused afterward. App surfaces use the object form ({ "app": … }).
|
|
11105
12083
|
*/
|
|
11106
|
-
surface?:
|
|
11107
|
-
[k: string]: unknown;
|
|
12084
|
+
surface?: SurfaceByBrowserEngine12 | BrowserSurface18 | AppSurface10;
|
|
11108
12085
|
}
|
|
11109
|
-
export interface
|
|
12086
|
+
export interface BrowserSurface18 {
|
|
11110
12087
|
/**
|
|
11111
12088
|
* Browser engine. Selects the browser surface with that engine (or the one named by `name`). A goTo step opens the browser if it isn't open yet; other steps require it to already be open.
|
|
11112
12089
|
*/
|
|
@@ -11115,10 +12092,10 @@ export interface BrowserSurface15 {
|
|
|
11115
12092
|
* Name of the browser surface. Defaults to the engine name (the context's default browser registers under its engine). Assign distinct names to drive multiple browsers at once, including several of the same engine.
|
|
11116
12093
|
*/
|
|
11117
12094
|
name?: string;
|
|
11118
|
-
window?:
|
|
11119
|
-
tab?:
|
|
12095
|
+
window?: WindowTabSelector36;
|
|
12096
|
+
tab?: WindowTabSelector37;
|
|
11120
12097
|
}
|
|
11121
|
-
export interface
|
|
12098
|
+
export interface ByCriteria46 {
|
|
11122
12099
|
/**
|
|
11123
12100
|
* Name assigned when the window/tab was opened.
|
|
11124
12101
|
*/
|
|
@@ -11136,7 +12113,7 @@ export interface ByCriteria38 {
|
|
|
11136
12113
|
*/
|
|
11137
12114
|
url?: string;
|
|
11138
12115
|
}
|
|
11139
|
-
export interface
|
|
12116
|
+
export interface ByCriteria47 {
|
|
11140
12117
|
/**
|
|
11141
12118
|
* Name assigned when the window/tab was opened.
|
|
11142
12119
|
*/
|
|
@@ -11154,144 +12131,135 @@ export interface ByCriteria39 {
|
|
|
11154
12131
|
*/
|
|
11155
12132
|
url?: string;
|
|
11156
12133
|
}
|
|
11157
|
-
export interface
|
|
12134
|
+
export interface AppSurface10 {
|
|
11158
12135
|
/**
|
|
11159
|
-
*
|
|
12136
|
+
* Name of an app surface opened by `startSurface` (its `name`, or the default derived from the app identifier).
|
|
11160
12137
|
*/
|
|
11161
|
-
|
|
12138
|
+
app: string;
|
|
12139
|
+
window?: AppWindowSelector10;
|
|
12140
|
+
}
|
|
12141
|
+
export interface ByCriteria48 {
|
|
11162
12142
|
/**
|
|
11163
|
-
*
|
|
12143
|
+
* Assigned window name.
|
|
11164
12144
|
*/
|
|
11165
|
-
|
|
12145
|
+
name?: string;
|
|
11166
12146
|
/**
|
|
11167
|
-
*
|
|
12147
|
+
* Index in creation order. Negative counts from the end.
|
|
11168
12148
|
*/
|
|
11169
|
-
|
|
12149
|
+
index?: number;
|
|
11170
12150
|
/**
|
|
11171
|
-
*
|
|
12151
|
+
* Window title to match. Substring, or /regex/.
|
|
11172
12152
|
*/
|
|
11173
|
-
|
|
11174
|
-
|
|
11175
|
-
|
|
12153
|
+
title?: string;
|
|
12154
|
+
}
|
|
12155
|
+
export interface SwipePointToPoint1 {
|
|
12156
|
+
from: Point2;
|
|
12157
|
+
to: Point3;
|
|
11176
12158
|
/**
|
|
11177
|
-
*
|
|
12159
|
+
* Duration of the swipe movement in milliseconds.
|
|
11178
12160
|
*/
|
|
11179
|
-
|
|
11180
|
-
if?: Condition73;
|
|
12161
|
+
duration?: number;
|
|
11181
12162
|
/**
|
|
11182
|
-
*
|
|
12163
|
+
* The browser window/tab or app window this step acts on. Omit to act on the active tab. The targeted surface stays focused afterward. App surfaces use the object form ({ "app": … }).
|
|
11183
12164
|
*/
|
|
11184
|
-
|
|
12165
|
+
surface?: SurfaceByBrowserEngine13 | BrowserSurface19 | AppSurface11;
|
|
12166
|
+
}
|
|
12167
|
+
/**
|
|
12168
|
+
* A pixel coordinate on the surface, measured from its top-left corner (0, 0).
|
|
12169
|
+
*/
|
|
12170
|
+
export interface Point2 {
|
|
11185
12171
|
/**
|
|
11186
|
-
*
|
|
12172
|
+
* Horizontal position in pixels from the left edge of the surface (the app window, or the browser viewport).
|
|
11187
12173
|
*/
|
|
11188
|
-
|
|
12174
|
+
x: number;
|
|
11189
12175
|
/**
|
|
11190
|
-
*
|
|
12176
|
+
* Vertical position in pixels from the top edge of the surface (the app window, or the browser viewport).
|
|
11191
12177
|
*/
|
|
11192
|
-
|
|
12178
|
+
y: number;
|
|
12179
|
+
}
|
|
12180
|
+
/**
|
|
12181
|
+
* A pixel coordinate on the surface, measured from its top-left corner (0, 0).
|
|
12182
|
+
*/
|
|
12183
|
+
export interface Point3 {
|
|
11193
12184
|
/**
|
|
11194
|
-
*
|
|
12185
|
+
* Horizontal position in pixels from the left edge of the surface (the app window, or the browser viewport).
|
|
11195
12186
|
*/
|
|
11196
|
-
|
|
12187
|
+
x: number;
|
|
11197
12188
|
/**
|
|
11198
|
-
*
|
|
12189
|
+
* Vertical position in pixels from the top edge of the surface (the app window, or the browser viewport).
|
|
11199
12190
|
*/
|
|
11200
|
-
|
|
11201
|
-
|
|
12191
|
+
y: number;
|
|
12192
|
+
}
|
|
12193
|
+
export interface BrowserSurface19 {
|
|
11202
12194
|
/**
|
|
11203
|
-
*
|
|
12195
|
+
* Browser engine. Selects the browser surface with that engine (or the one named by `name`). A goTo step opens the browser if it isn't open yet; other steps require it to already be open.
|
|
11204
12196
|
*/
|
|
11205
|
-
|
|
12197
|
+
browser: "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
11206
12198
|
/**
|
|
11207
|
-
*
|
|
12199
|
+
* Name of the browser surface. Defaults to the engine name (the context's default browser registers under its engine). Assign distinct names to drive multiple browsers at once, including several of the same engine.
|
|
11208
12200
|
*/
|
|
11209
|
-
|
|
12201
|
+
name?: string;
|
|
12202
|
+
window?: WindowTabSelector38;
|
|
12203
|
+
tab?: WindowTabSelector39;
|
|
12204
|
+
}
|
|
12205
|
+
export interface ByCriteria49 {
|
|
11210
12206
|
/**
|
|
11211
|
-
*
|
|
12207
|
+
* Name assigned when the window/tab was opened.
|
|
11212
12208
|
*/
|
|
11213
|
-
|
|
11214
|
-
[k: string]: unknown;
|
|
11215
|
-
}
|
|
11216
|
-
/**
|
|
11217
|
-
* Outputs from step processes and user-defined expressions. Use the `outputs` object to reference outputs in subsequent steps. If a user-defined output matches the key for a step-defined output, the user-defined output takes precedence.
|
|
11218
|
-
*/
|
|
11219
|
-
export interface OutputsStep36 {
|
|
12209
|
+
name?: string;
|
|
11220
12210
|
/**
|
|
11221
|
-
*
|
|
11222
|
-
*
|
|
11223
|
-
* This interface was referenced by `OutputsStep36`'s JSON-Schema definition
|
|
11224
|
-
* via the `patternProperty` "^[A-Za-z0-9_]+$".
|
|
12211
|
+
* Index in creation order. Negative counts from the end.
|
|
11225
12212
|
*/
|
|
11226
|
-
|
|
11227
|
-
}
|
|
11228
|
-
/**
|
|
11229
|
-
* Environment variables to set from user-defined expressions.
|
|
11230
|
-
*/
|
|
11231
|
-
export interface VariablesStep36 {
|
|
12213
|
+
index?: number;
|
|
11232
12214
|
/**
|
|
11233
|
-
*
|
|
11234
|
-
*
|
|
11235
|
-
* This interface was referenced by `VariablesStep36`'s JSON-Schema definition
|
|
11236
|
-
* via the `patternProperty` "^[A-Za-z0-9_]+$".
|
|
12215
|
+
* Page title to match. Substring, or /regex/.
|
|
11237
12216
|
*/
|
|
11238
|
-
|
|
11239
|
-
}
|
|
11240
|
-
/**
|
|
11241
|
-
* An articulated assertion record produced by the runner for a step result. Each record names a single verification check, whether it passed, and the values it compared. The step's result is the roll-up of its assertion results (FAIL > WARNING > all-SKIPPED > PASS). System-populated; appears in test results, not in authored specs.
|
|
11242
|
-
*/
|
|
11243
|
-
export interface Assertion36 {
|
|
12217
|
+
title?: string;
|
|
11244
12218
|
/**
|
|
11245
|
-
*
|
|
12219
|
+
* Page URL to match. Substring, or /regex/.
|
|
11246
12220
|
*/
|
|
11247
|
-
|
|
12221
|
+
url?: string;
|
|
12222
|
+
}
|
|
12223
|
+
export interface ByCriteria50 {
|
|
11248
12224
|
/**
|
|
11249
|
-
*
|
|
12225
|
+
* Name assigned when the window/tab was opened.
|
|
11250
12226
|
*/
|
|
11251
|
-
|
|
12227
|
+
name?: string;
|
|
11252
12228
|
/**
|
|
11253
|
-
*
|
|
12229
|
+
* Index in creation order. Negative counts from the end.
|
|
11254
12230
|
*/
|
|
11255
|
-
|
|
12231
|
+
index?: number;
|
|
11256
12232
|
/**
|
|
11257
|
-
*
|
|
12233
|
+
* Page title to match. Substring, or /regex/.
|
|
11258
12234
|
*/
|
|
11259
|
-
|
|
11260
|
-
[k: string]: unknown;
|
|
11261
|
-
} | string;
|
|
12235
|
+
title?: string;
|
|
11262
12236
|
/**
|
|
11263
|
-
*
|
|
12237
|
+
* Page URL to match. Substring, or /regex/.
|
|
11264
12238
|
*/
|
|
11265
|
-
|
|
11266
|
-
|
|
11267
|
-
|
|
12239
|
+
url?: string;
|
|
12240
|
+
}
|
|
12241
|
+
export interface AppSurface11 {
|
|
11268
12242
|
/**
|
|
11269
|
-
*
|
|
12243
|
+
* Name of an app surface opened by `startSurface` (its `name`, or the default derived from the app identifier).
|
|
11270
12244
|
*/
|
|
11271
|
-
|
|
12245
|
+
app: string;
|
|
12246
|
+
window?: AppWindowSelector11;
|
|
11272
12247
|
}
|
|
11273
|
-
|
|
11274
|
-
* Source location where this step was detected in the original file. This is system-populated metadata and should not be set manually.
|
|
11275
|
-
*/
|
|
11276
|
-
export interface SourceLocation36 {
|
|
12248
|
+
export interface ByCriteria51 {
|
|
11277
12249
|
/**
|
|
11278
|
-
*
|
|
12250
|
+
* Assigned window name.
|
|
11279
12251
|
*/
|
|
11280
|
-
|
|
12252
|
+
name?: string;
|
|
11281
12253
|
/**
|
|
11282
|
-
*
|
|
12254
|
+
* Index in creation order. Negative counts from the end.
|
|
11283
12255
|
*/
|
|
11284
|
-
|
|
12256
|
+
index?: number;
|
|
11285
12257
|
/**
|
|
11286
|
-
*
|
|
12258
|
+
* Window title to match. Substring, or /regex/.
|
|
11287
12259
|
*/
|
|
11288
|
-
|
|
11289
|
-
}
|
|
11290
|
-
export interface LoadCookie2 {
|
|
11291
|
-
loadCookie: LoadCookie3;
|
|
11292
|
-
[k: string]: unknown;
|
|
12260
|
+
title?: string;
|
|
11293
12261
|
}
|
|
11294
|
-
export interface
|
|
12262
|
+
export interface Common39 {
|
|
11295
12263
|
/**
|
|
11296
12264
|
* JSON Schema for this object.
|
|
11297
12265
|
*/
|
|
@@ -11308,34 +12276,34 @@ export interface Common37 {
|
|
|
11308
12276
|
* Whether or not the step may be unsafe. Unsafe steps may perform actions that could modify the system or environment in unexpected ways. Unsafe steps are only performed within Docker containers or if unsafe steps are enabled with the `allowUnsafeSteps` config property or the `--allow-unsafe` flag.
|
|
11309
12277
|
*/
|
|
11310
12278
|
unsafe?: boolean;
|
|
11311
|
-
outputs?:
|
|
11312
|
-
variables?:
|
|
12279
|
+
outputs?: OutputsStep39;
|
|
12280
|
+
variables?: VariablesStep39;
|
|
11313
12281
|
/**
|
|
11314
12282
|
* Whether or not this step should act as a breakpoint when debugging is enabled. When `true`, execution will pause at this step when debug mode is enabled.
|
|
11315
12283
|
*/
|
|
11316
12284
|
breakpoint?: boolean;
|
|
11317
|
-
if?:
|
|
12285
|
+
if?: Condition79;
|
|
11318
12286
|
/**
|
|
11319
12287
|
* Assertions for this step. As authored input, a custom condition expression (or array of expressions, combined with logical AND). In a test result, the runner replaces this with the array of articulated assertion records it evaluated (implicit then custom).
|
|
11320
12288
|
*/
|
|
11321
|
-
assertions?:
|
|
12289
|
+
assertions?: Condition80 | Assertion39[];
|
|
11322
12290
|
/**
|
|
11323
12291
|
* Routing entries evaluated when this step passes. The first entry whose `if` matches applies. `continue`, `stop`, `retry`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed.
|
|
11324
12292
|
*/
|
|
11325
|
-
onPass?:
|
|
12293
|
+
onPass?: Routing160[];
|
|
11326
12294
|
/**
|
|
11327
12295
|
* Routing entries evaluated when this step fails. The first entry whose `if` matches applies; the default when none is set stops the test. `continue`, `stop`, `retry`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed.
|
|
11328
12296
|
*/
|
|
11329
|
-
onFail?:
|
|
12297
|
+
onFail?: Routing161[];
|
|
11330
12298
|
/**
|
|
11331
12299
|
* Routing entries evaluated when this step produces a warning. The first entry whose `if` matches applies. `continue`, `stop`, `retry`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed.
|
|
11332
12300
|
*/
|
|
11333
|
-
onWarning?:
|
|
12301
|
+
onWarning?: Routing162[];
|
|
11334
12302
|
/**
|
|
11335
12303
|
* Routing entries evaluated when this step is skipped (reached but not run — unsafe-blocked or guard-`if` false). The first entry whose `if` matches applies. `continue`, `stop`, and `goToStep` are honored at runtime; `goToTest` is validated but not yet executed. (`retry` is a no-op here — a step that never ran cannot be re-run.)
|
|
11336
12304
|
*/
|
|
11337
|
-
onSkip?:
|
|
11338
|
-
location?:
|
|
12305
|
+
onSkip?: Routing163[];
|
|
12306
|
+
location?: SourceLocation39;
|
|
11339
12307
|
/**
|
|
11340
12308
|
* Path, relative to the run's artifact directory (the report's `runDir`), of the screenshot captured automatically after this step. Always a non-empty, forward-slash, relative path. Present only in test results, when `autoScreenshot` is enabled and the capture succeeded. This is system-populated metadata and should not be set manually.
|
|
11341
12309
|
*/
|
|
@@ -11353,11 +12321,11 @@ export interface Common37 {
|
|
|
11353
12321
|
/**
|
|
11354
12322
|
* Outputs from step processes and user-defined expressions. Use the `outputs` object to reference outputs in subsequent steps. If a user-defined output matches the key for a step-defined output, the user-defined output takes precedence.
|
|
11355
12323
|
*/
|
|
11356
|
-
export interface
|
|
12324
|
+
export interface OutputsStep39 {
|
|
11357
12325
|
/**
|
|
11358
12326
|
* Runtime expression for a user-defined output value.
|
|
11359
12327
|
*
|
|
11360
|
-
* This interface was referenced by `
|
|
12328
|
+
* This interface was referenced by `OutputsStep39`'s JSON-Schema definition
|
|
11361
12329
|
* via the `patternProperty` "^[A-Za-z0-9_]+$".
|
|
11362
12330
|
*/
|
|
11363
12331
|
[k: string]: string;
|
|
@@ -11365,11 +12333,11 @@ export interface OutputsStep37 {
|
|
|
11365
12333
|
/**
|
|
11366
12334
|
* Environment variables to set from user-defined expressions.
|
|
11367
12335
|
*/
|
|
11368
|
-
export interface
|
|
12336
|
+
export interface VariablesStep39 {
|
|
11369
12337
|
/**
|
|
11370
12338
|
* Runtime expression for a user-defined output value.
|
|
11371
12339
|
*
|
|
11372
|
-
* This interface was referenced by `
|
|
12340
|
+
* This interface was referenced by `VariablesStep39`'s JSON-Schema definition
|
|
11373
12341
|
* via the `patternProperty` "^[A-Za-z0-9_]+$".
|
|
11374
12342
|
*/
|
|
11375
12343
|
[k: string]: string;
|
|
@@ -11377,7 +12345,7 @@ export interface VariablesStep37 {
|
|
|
11377
12345
|
/**
|
|
11378
12346
|
* An articulated assertion record produced by the runner for a step result. Each record names a single verification check, whether it passed, and the values it compared. The step's result is the roll-up of its assertion results (FAIL > WARNING > all-SKIPPED > PASS). System-populated; appears in test results, not in authored specs.
|
|
11379
12347
|
*/
|
|
11380
|
-
export interface
|
|
12348
|
+
export interface Assertion39 {
|
|
11381
12349
|
/**
|
|
11382
12350
|
* Human-readable articulation of the check, e.g. `exitCode in [0]`.
|
|
11383
12351
|
*/
|
|
@@ -11410,7 +12378,7 @@ export interface Assertion37 {
|
|
|
11410
12378
|
/**
|
|
11411
12379
|
* Source location where this step was detected in the original file. This is system-populated metadata and should not be set manually.
|
|
11412
12380
|
*/
|
|
11413
|
-
export interface
|
|
12381
|
+
export interface SourceLocation39 {
|
|
11414
12382
|
/**
|
|
11415
12383
|
* 1-indexed line number in the source file where the step was detected.
|
|
11416
12384
|
*/
|