screw-bugs 0.1.8 → 0.1.10

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.
Files changed (107) hide show
  1. package/README.md +49 -34
  2. package/dist/browser-playwright/capture.js +1 -1
  3. package/dist/browser-playwright/launch.js +27 -10
  4. package/dist/browser-playwright/page.d.ts +48 -26
  5. package/dist/browser-playwright/page.js +86 -89
  6. package/dist/browser-playwright/recorder.d.ts +154 -0
  7. package/dist/browser-playwright/recorder.js +382 -0
  8. package/dist/build-info.json +3 -3
  9. package/dist/cli/app.js +6 -2
  10. package/dist/cli/commands.js +4 -3
  11. package/dist/cli/doctor.d.ts +17 -2
  12. package/dist/cli/doctor.js +62 -4
  13. package/dist/cli/mcp.js +2 -2
  14. package/dist/cli/report-server.d.ts +19 -10
  15. package/dist/cli/report-server.js +43 -18
  16. package/dist/cli/share.js +2 -2
  17. package/dist/cli/sign-in.d.ts +9 -3
  18. package/dist/cli/sign-in.js +12 -9
  19. package/dist/cli/tailnet.d.ts +57 -0
  20. package/dist/cli/tailnet.js +82 -0
  21. package/dist/core/index.d.ts +1 -14
  22. package/dist/core/index.js +3 -14
  23. package/dist/report/index.d.ts +1 -10
  24. package/dist/report/index.js +3 -10
  25. package/dist/schema/index.d.ts +1 -9
  26. package/dist/schema/index.js +3 -9
  27. package/package.json +14 -14
  28. package/dist/core/accounts.d.ts +0 -40
  29. package/dist/core/accounts.js +0 -95
  30. package/dist/core/css.d.ts +0 -95
  31. package/dist/core/css.js +0 -436
  32. package/dist/core/engine.d.ts +0 -75
  33. package/dist/core/engine.js +0 -554
  34. package/dist/core/errors.d.ts +0 -85
  35. package/dist/core/errors.js +0 -36
  36. package/dist/core/evidence.d.ts +0 -14
  37. package/dist/core/evidence.js +0 -131
  38. package/dist/core/labels.d.ts +0 -47
  39. package/dist/core/labels.js +0 -199
  40. package/dist/core/liveness.d.ts +0 -45
  41. package/dist/core/liveness.js +0 -66
  42. package/dist/core/marks.d.ts +0 -63
  43. package/dist/core/marks.js +0 -410
  44. package/dist/core/services.d.ts +0 -574
  45. package/dist/core/services.js +0 -25
  46. package/dist/core/share.d.ts +0 -68
  47. package/dist/core/share.js +0 -318
  48. package/dist/core/steps.d.ts +0 -106
  49. package/dist/core/steps.js +0 -722
  50. package/dist/core/uploads.d.ts +0 -49
  51. package/dist/core/uploads.js +0 -133
  52. package/dist/core/video.d.ts +0 -47
  53. package/dist/core/video.js +0 -233
  54. package/dist/core/viewport.d.ts +0 -28
  55. package/dist/core/viewport.js +0 -50
  56. package/dist/report/assets.d.ts +0 -34
  57. package/dist/report/assets.js +0 -105
  58. package/dist/report/bug.d.ts +0 -11
  59. package/dist/report/bug.js +0 -20
  60. package/dist/report/html.d.ts +0 -47
  61. package/dist/report/html.js +0 -923
  62. package/dist/report/icons.d.ts +0 -51
  63. package/dist/report/icons.js +0 -93
  64. package/dist/report/live.d.ts +0 -7
  65. package/dist/report/live.js +0 -135
  66. package/dist/report/logos.d.ts +0 -4
  67. package/dist/report/logos.js +0 -19
  68. package/dist/report/markup.d.ts +0 -50
  69. package/dist/report/markup.js +0 -156
  70. package/dist/report/menu-bar.d.ts +0 -60
  71. package/dist/report/menu-bar.js +0 -157
  72. package/dist/report/player.d.ts +0 -102
  73. package/dist/report/player.js +0 -315
  74. package/dist/report/pr-summary.d.ts +0 -11
  75. package/dist/report/pr-summary.js +0 -119
  76. package/dist/report/sha256.d.ts +0 -9
  77. package/dist/report/sha256.js +0 -97
  78. package/dist/report/share-page.d.ts +0 -48
  79. package/dist/report/share-page.js +0 -291
  80. package/dist/report/shots.d.ts +0 -59
  81. package/dist/report/shots.js +0 -280
  82. package/dist/report/sign-in.d.ts +0 -41
  83. package/dist/report/sign-in.js +0 -568
  84. package/dist/report/styles.d.ts +0 -3
  85. package/dist/report/styles.js +0 -274
  86. package/dist/report/view.d.ts +0 -296
  87. package/dist/report/view.js +0 -702
  88. package/dist/report/walkthrough.d.ts +0 -93
  89. package/dist/report/walkthrough.js +0 -716
  90. package/dist/schema/accounts.d.ts +0 -137
  91. package/dist/schema/accounts.js +0 -121
  92. package/dist/schema/config.d.ts +0 -7
  93. package/dist/schema/config.js +0 -6
  94. package/dist/schema/doctor.d.ts +0 -46
  95. package/dist/schema/doctor.js +0 -30
  96. package/dist/schema/evidence.d.ts +0 -1115
  97. package/dist/schema/evidence.js +0 -565
  98. package/dist/schema/findings.d.ts +0 -161
  99. package/dist/schema/findings.js +0 -82
  100. package/dist/schema/job.d.ts +0 -1905
  101. package/dist/schema/job.js +0 -577
  102. package/dist/schema/ledger.d.ts +0 -1124
  103. package/dist/schema/ledger.js +0 -285
  104. package/dist/schema/share.d.ts +0 -55
  105. package/dist/schema/share.js +0 -64
  106. package/dist/schema/status.d.ts +0 -7
  107. package/dist/schema/status.js +0 -11
@@ -1,1905 +0,0 @@
1
- import { Schema } from 'effect';
2
- /** Sortable by creation time and safe as a folder name, for example `20261029-104857-3f9a01c2`. */
3
- export declare const JobId: Schema.brand<Schema.String, "JobId">;
4
- export type JobId = typeof JobId.Type;
5
- /** One short line of plain text: not blank, at most `max` characters. */
6
- export declare const ShortLine: (max: number, description?: string) => Schema.String;
7
- /**
8
- * The only schemes screw-bugs opens: web pages, including local dev servers. Never local files,
9
- * `data:`, `blob:` or `javascript:` URLs, or the browser's own pages (`chrome:`, `view-source:`),
10
- * so a job cannot read anything off the machine into its evidence.
11
- */
12
- export declare const WEB_SCHEMES: ReadonlyArray<string>;
13
- /** The scheme of an absolute URL, such as `file:`; undefined when it is not one. */
14
- export declare const schemeOf: (url: string) => string | undefined;
15
- export declare const isWebUrl: (url: string) => boolean;
16
- export declare const Device: Schema.Literals<readonly ["desktop", "mobile"]>;
17
- export type Device = typeof Device.Type;
18
- /** The most frames a target may be nested in. */
19
- export declare const FRAME_DEPTH_MAX = 4;
20
- /**
21
- * An `<iframe>` element, found like a target. It has no `frame` of its own: frames inside frames
22
- * are given as a list, outermost first.
23
- */
24
- export declare const FrameTarget: Schema.Struct<{
25
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
26
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
27
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
28
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
29
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
30
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
31
- readonly frame: Schema.optionalKey<Schema.Unknown>;
32
- }>;
33
- export type FrameTarget = typeof FrameTarget.Type;
34
- /** The frame a target or text is in: one `<iframe>`, or a list for frames inside frames. */
35
- export declare const FramePath: Schema.Union<readonly [Schema.Struct<{
36
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
37
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
38
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
39
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
40
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
41
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
42
- readonly frame: Schema.optionalKey<Schema.Unknown>;
43
- }>, Schema.$Array<Schema.Struct<{
44
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
45
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
46
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
47
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
48
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
49
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
50
- readonly frame: Schema.optionalKey<Schema.Unknown>;
51
- }>>]>;
52
- export type FramePath = typeof FramePath.Type;
53
- /**
54
- * The element a step acts on. Exactly one way of finding it; when several elements match, the
55
- * first visible one in page order is used. With `frame`, it is looked for inside that `<iframe>`.
56
- */
57
- export declare const Target: Schema.Struct<{
58
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
59
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
60
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
61
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
62
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
63
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
64
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
65
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
66
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
67
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
68
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
69
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
70
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
71
- readonly frame: Schema.optionalKey<Schema.Unknown>;
72
- }>, Schema.$Array<Schema.Struct<{
73
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
74
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
75
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
76
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
77
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
78
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
79
- readonly frame: Schema.optionalKey<Schema.Unknown>;
80
- }>>]>>;
81
- }>;
82
- export type Target = typeof Target.Type;
83
- /** An element target without its frame: the part that is matched inside one document. */
84
- export type ElementTarget = Omit<Target, 'frame'>;
85
- /** The frames of a `frame` field, outermost first; empty without one. */
86
- export declare const framesOf: (frame: FramePath | undefined) => ReadonlyArray<ElementTarget>;
87
- /** A target without its `frame`. */
88
- export declare const elementOf: (target: Target | FrameTarget) => ElementTarget;
89
- /** How long an element or expectation step waits by default (see `timeoutMs`). */
90
- export declare const DEFAULT_WAIT_MS = 5000;
91
- /** How long a page load may take by default, from its start (see `timeoutMs`). */
92
- export declare const DEFAULT_LOAD_MS = 15000;
93
- /** The bounds of `timeoutMs`. */
94
- export declare const TIMEOUT_MIN_MS = 100;
95
- export declare const TIMEOUT_MAX_MS = 180000;
96
- /** The most files one upload step may give, and the largest a file may be. */
97
- export declare const UPLOAD_FILES_MAX = 10;
98
- export declare const UPLOAD_MAX_BYTES: number;
99
- /** The longest `about` an upload file may have. */
100
- export declare const ABOUT_MAX = 200;
101
- /**
102
- * Why an upload path is not one screw-bugs takes, judged from its text alone: it must be relative
103
- * to the project and stay inside it. Whether the file is there, and what it holds, is checked
104
- * against the disk before a run starts (see `FileNeeded`).
105
- */
106
- export declare const uploadPathProblem: (path: string) => string | undefined;
107
- /**
108
- * One file an upload step sends: its path, or its path and what it is. `about` is the caller's
109
- * plain sentence of what the file holds, shown next to the step in the report and in the reply
110
- * that asks for a missing file; never interpreted.
111
- */
112
- export declare const UploadFile: Schema.Union<readonly [Schema.NonEmptyString, Schema.Struct<{
113
- readonly path: Schema.NonEmptyString;
114
- readonly about: Schema.optionalKey<Schema.String>;
115
- readonly allowMismatch: Schema.optionalKey<Schema.Boolean>;
116
- }>]>;
117
- export type UploadFile = typeof UploadFile.Type;
118
- /** An upload file as `UploadFile` gives it, in its object form. */
119
- export interface UploadFileInfo {
120
- readonly path: string;
121
- readonly about?: string;
122
- /** Its content is not checked against its extension, on purpose. */
123
- readonly allowMismatch?: boolean;
124
- }
125
- /** An upload file as path, `about` and `allowMismatch`, whichever form it was given in. */
126
- export declare const uploadFileOf: (file: UploadFile) => UploadFileInfo;
127
- /** The last part of a path, such as `resume.pdf` for `fixtures/resume.pdf`. */
128
- export declare const baseName: (path: string) => string;
129
- /** The states `waitFor` waits for; see the step. */
130
- export declare const WaitState: Schema.Literals<readonly ["visible", "hidden", "attached", "detached"]>;
131
- export type WaitState = typeof WaitState.Type;
132
- /** How `expectLink` compares a link's address with its `href`. */
133
- export declare const LinkMatch: Schema.Literals<readonly ["contains", "exact"]>;
134
- export type LinkMatch = typeof LinkMatch.Type;
135
- /**
136
- * How long `expectNoText` watches for its text once there is something to look at: long enough
137
- * for what a page renders a moment after it loads to show up.
138
- */
139
- export declare const ABSENCE_WATCH_MS = 1000;
140
- /** The most pixels one `scroll` step may scroll by. */
141
- export declare const SCROLL_BY_MAX = 20000;
142
- /**
143
- * One deterministic browser action or check. The vocabulary is deliberately small: the caller
144
- * (usually a coding agent) decides what to test and writes these; screw-bugs only executes them.
145
- */
146
- export declare const Step: Schema.Union<readonly [Schema.Struct<{
147
- readonly action: Schema.Literal<"goto">;
148
- readonly url: Schema.NonEmptyString;
149
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
150
- }>, Schema.Struct<{
151
- readonly action: Schema.Literal<"reload">;
152
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
153
- }>, Schema.Struct<{
154
- readonly action: Schema.Literal<"click">;
155
- readonly target: Schema.Struct<{
156
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
157
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
158
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
159
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
160
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
161
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
162
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
163
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
164
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
165
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
166
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
167
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
168
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
169
- readonly frame: Schema.optionalKey<Schema.Unknown>;
170
- }>, Schema.$Array<Schema.Struct<{
171
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
172
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
173
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
174
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
175
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
176
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
177
- readonly frame: Schema.optionalKey<Schema.Unknown>;
178
- }>>]>>;
179
- }>;
180
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
181
- }>, Schema.Struct<{
182
- readonly action: Schema.Literal<"hover">;
183
- readonly target: Schema.Struct<{
184
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
185
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
186
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
187
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
188
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
189
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
190
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
191
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
192
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
193
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
194
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
195
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
196
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
197
- readonly frame: Schema.optionalKey<Schema.Unknown>;
198
- }>, Schema.$Array<Schema.Struct<{
199
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
200
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
201
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
202
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
203
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
204
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
205
- readonly frame: Schema.optionalKey<Schema.Unknown>;
206
- }>>]>>;
207
- }>;
208
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
209
- }>, Schema.Struct<{
210
- readonly action: Schema.Literal<"fill">;
211
- readonly target: Schema.Struct<{
212
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
213
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
214
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
215
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
216
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
217
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
218
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
219
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
220
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
221
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
222
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
223
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
224
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
225
- readonly frame: Schema.optionalKey<Schema.Unknown>;
226
- }>, Schema.$Array<Schema.Struct<{
227
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
228
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
229
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
230
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
231
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
232
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
233
- readonly frame: Schema.optionalKey<Schema.Unknown>;
234
- }>>]>>;
235
- }>;
236
- readonly value: Schema.String;
237
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
238
- }>, Schema.Struct<{
239
- readonly action: Schema.Literal<"upload">;
240
- readonly target: Schema.Struct<{
241
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
242
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
243
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
244
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
245
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
246
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
247
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
248
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
249
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
250
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
251
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
252
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
253
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
254
- readonly frame: Schema.optionalKey<Schema.Unknown>;
255
- }>, Schema.$Array<Schema.Struct<{
256
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
257
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
258
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
259
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
260
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
261
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
262
- readonly frame: Schema.optionalKey<Schema.Unknown>;
263
- }>>]>>;
264
- }>;
265
- readonly files: Schema.$Array<Schema.Union<readonly [Schema.NonEmptyString, Schema.Struct<{
266
- readonly path: Schema.NonEmptyString;
267
- readonly about: Schema.optionalKey<Schema.String>;
268
- readonly allowMismatch: Schema.optionalKey<Schema.Boolean>;
269
- }>]>>;
270
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
271
- }>, Schema.Struct<{
272
- readonly action: Schema.Literal<"press">;
273
- readonly key: Schema.NonEmptyString;
274
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
275
- }>, Schema.Struct<{
276
- readonly action: Schema.Literal<"expectText">;
277
- readonly text: Schema.NonEmptyString;
278
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
279
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
280
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
281
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
282
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
283
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
284
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
285
- readonly frame: Schema.optionalKey<Schema.Unknown>;
286
- }>, Schema.$Array<Schema.Struct<{
287
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
288
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
289
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
290
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
291
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
292
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
293
- readonly frame: Schema.optionalKey<Schema.Unknown>;
294
- }>>]>>;
295
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
296
- }>, Schema.Struct<{
297
- readonly action: Schema.Literal<"expectNoText">;
298
- readonly text: Schema.NonEmptyString;
299
- readonly target: Schema.optionalKey<Schema.Struct<{
300
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
301
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
302
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
303
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
304
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
305
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
306
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
307
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
308
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
309
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
310
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
311
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
312
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
313
- readonly frame: Schema.optionalKey<Schema.Unknown>;
314
- }>, Schema.$Array<Schema.Struct<{
315
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
316
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
317
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
318
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
319
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
320
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
321
- readonly frame: Schema.optionalKey<Schema.Unknown>;
322
- }>>]>>;
323
- }>>;
324
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
325
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
326
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
327
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
328
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
329
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
330
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
331
- readonly frame: Schema.optionalKey<Schema.Unknown>;
332
- }>, Schema.$Array<Schema.Struct<{
333
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
334
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
335
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
336
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
337
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
338
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
339
- readonly frame: Schema.optionalKey<Schema.Unknown>;
340
- }>>]>>;
341
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
342
- }>, Schema.Struct<{
343
- readonly action: Schema.Literal<"waitFor">;
344
- readonly target: Schema.Struct<{
345
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
346
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
347
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
348
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
349
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
350
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
351
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
352
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
353
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
354
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
355
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
356
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
357
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
358
- readonly frame: Schema.optionalKey<Schema.Unknown>;
359
- }>, Schema.$Array<Schema.Struct<{
360
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
361
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
362
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
363
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
364
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
365
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
366
- readonly frame: Schema.optionalKey<Schema.Unknown>;
367
- }>>]>>;
368
- }>;
369
- readonly state: Schema.optionalKey<Schema.Literals<readonly ["visible", "hidden", "attached", "detached"]>>;
370
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
371
- }>, Schema.Struct<{
372
- readonly action: Schema.Literal<"scroll">;
373
- readonly target: Schema.optionalKey<Schema.Struct<{
374
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
375
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
376
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
377
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
378
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
379
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
380
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
381
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
382
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
383
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
384
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
385
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
386
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
387
- readonly frame: Schema.optionalKey<Schema.Unknown>;
388
- }>, Schema.$Array<Schema.Struct<{
389
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
390
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
391
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
392
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
393
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
394
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
395
- readonly frame: Schema.optionalKey<Schema.Unknown>;
396
- }>>]>>;
397
- }>>;
398
- readonly to: Schema.optionalKey<Schema.Literals<readonly ["top", "bottom"]>>;
399
- readonly by: Schema.optionalKey<Schema.Finite>;
400
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
401
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
402
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
403
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
404
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
405
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
406
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
407
- readonly frame: Schema.optionalKey<Schema.Unknown>;
408
- }>, Schema.$Array<Schema.Struct<{
409
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
410
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
411
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
412
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
413
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
414
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
415
- readonly frame: Schema.optionalKey<Schema.Unknown>;
416
- }>>]>>;
417
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
418
- }>, Schema.Struct<{
419
- readonly action: Schema.Literal<"expectUrl">;
420
- readonly includes: Schema.NonEmptyString;
421
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
422
- }>, Schema.Struct<{
423
- readonly action: Schema.Literal<"expectLink">;
424
- readonly target: Schema.Struct<{
425
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
426
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
427
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
428
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
429
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
430
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
431
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
432
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
433
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
434
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
435
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
436
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
437
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
438
- readonly frame: Schema.optionalKey<Schema.Unknown>;
439
- }>, Schema.$Array<Schema.Struct<{
440
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
441
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
442
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
443
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
444
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
445
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
446
- readonly frame: Schema.optionalKey<Schema.Unknown>;
447
- }>>]>>;
448
- }>;
449
- readonly href: Schema.NonEmptyString;
450
- readonly match: Schema.optionalKey<Schema.Literals<readonly ["contains", "exact"]>>;
451
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
452
- }>, Schema.Struct<{
453
- readonly action: Schema.Literal<"screenshot">;
454
- readonly name: Schema.String;
455
- }>]>;
456
- export type Step = typeof Step.Type;
457
- /**
458
- * How long a page load that starts during `step` may take, from its start to its response:
459
- * `timeoutMs` for steps that load a page themselves (goto, reload, press), and for other steps at
460
- * least `DEFAULT_LOAD_MS`, so a long wait for an element never shortens one.
461
- */
462
- export declare const loadTimeoutOf: (step: Step | undefined) => number;
463
- /** The `timeoutMs` of a step when it is not that step's default, for reports to mention. */
464
- export declare const customTimeoutOf: (step: Step) => number | undefined;
465
- /**
466
- * Every upload file the steps of `cases` give, in order, each path once: with the first `about`
467
- * given for it, and `allowMismatch` only when every step that sends it allows it.
468
- */
469
- export declare const uploadFilesOf: (cases: ReadonlyArray<CaseSpec>) => ReadonlyArray<UploadFileInfo>;
470
- /** The longest `success` sentence a case may have. */
471
- export declare const SUCCESS_MAX = 300;
472
- /** One thing to check, written by the caller. */
473
- export declare const CaseSpec: Schema.Struct<{
474
- readonly id: Schema.String;
475
- readonly title: Schema.NonEmptyString;
476
- readonly steps: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
477
- readonly action: Schema.Literal<"goto">;
478
- readonly url: Schema.NonEmptyString;
479
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
480
- }>, Schema.Struct<{
481
- readonly action: Schema.Literal<"reload">;
482
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
483
- }>, Schema.Struct<{
484
- readonly action: Schema.Literal<"click">;
485
- readonly target: Schema.Struct<{
486
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
487
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
488
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
489
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
490
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
491
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
492
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
493
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
494
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
495
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
496
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
497
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
498
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
499
- readonly frame: Schema.optionalKey<Schema.Unknown>;
500
- }>, Schema.$Array<Schema.Struct<{
501
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
502
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
503
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
504
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
505
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
506
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
507
- readonly frame: Schema.optionalKey<Schema.Unknown>;
508
- }>>]>>;
509
- }>;
510
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
511
- }>, Schema.Struct<{
512
- readonly action: Schema.Literal<"hover">;
513
- readonly target: Schema.Struct<{
514
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
515
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
516
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
517
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
518
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
519
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
520
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
521
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
522
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
523
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
524
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
525
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
526
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
527
- readonly frame: Schema.optionalKey<Schema.Unknown>;
528
- }>, Schema.$Array<Schema.Struct<{
529
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
530
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
531
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
532
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
533
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
534
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
535
- readonly frame: Schema.optionalKey<Schema.Unknown>;
536
- }>>]>>;
537
- }>;
538
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
539
- }>, Schema.Struct<{
540
- readonly action: Schema.Literal<"fill">;
541
- readonly target: Schema.Struct<{
542
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
543
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
544
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
545
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
546
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
547
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
548
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
549
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
550
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
551
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
552
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
553
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
554
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
555
- readonly frame: Schema.optionalKey<Schema.Unknown>;
556
- }>, Schema.$Array<Schema.Struct<{
557
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
558
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
559
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
560
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
561
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
562
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
563
- readonly frame: Schema.optionalKey<Schema.Unknown>;
564
- }>>]>>;
565
- }>;
566
- readonly value: Schema.String;
567
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
568
- }>, Schema.Struct<{
569
- readonly action: Schema.Literal<"upload">;
570
- readonly target: Schema.Struct<{
571
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
572
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
573
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
574
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
575
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
576
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
577
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
578
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
579
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
580
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
581
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
582
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
583
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
584
- readonly frame: Schema.optionalKey<Schema.Unknown>;
585
- }>, Schema.$Array<Schema.Struct<{
586
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
587
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
588
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
589
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
590
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
591
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
592
- readonly frame: Schema.optionalKey<Schema.Unknown>;
593
- }>>]>>;
594
- }>;
595
- readonly files: Schema.$Array<Schema.Union<readonly [Schema.NonEmptyString, Schema.Struct<{
596
- readonly path: Schema.NonEmptyString;
597
- readonly about: Schema.optionalKey<Schema.String>;
598
- readonly allowMismatch: Schema.optionalKey<Schema.Boolean>;
599
- }>]>>;
600
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
601
- }>, Schema.Struct<{
602
- readonly action: Schema.Literal<"press">;
603
- readonly key: Schema.NonEmptyString;
604
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
605
- }>, Schema.Struct<{
606
- readonly action: Schema.Literal<"expectText">;
607
- readonly text: Schema.NonEmptyString;
608
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
609
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
610
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
611
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
612
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
613
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
614
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
615
- readonly frame: Schema.optionalKey<Schema.Unknown>;
616
- }>, Schema.$Array<Schema.Struct<{
617
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
618
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
619
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
620
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
621
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
622
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
623
- readonly frame: Schema.optionalKey<Schema.Unknown>;
624
- }>>]>>;
625
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
626
- }>, Schema.Struct<{
627
- readonly action: Schema.Literal<"expectNoText">;
628
- readonly text: Schema.NonEmptyString;
629
- readonly target: Schema.optionalKey<Schema.Struct<{
630
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
631
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
632
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
633
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
634
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
635
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
636
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
637
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
638
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
639
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
640
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
641
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
642
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
643
- readonly frame: Schema.optionalKey<Schema.Unknown>;
644
- }>, Schema.$Array<Schema.Struct<{
645
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
646
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
647
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
648
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
649
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
650
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
651
- readonly frame: Schema.optionalKey<Schema.Unknown>;
652
- }>>]>>;
653
- }>>;
654
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
655
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
656
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
657
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
658
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
659
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
660
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
661
- readonly frame: Schema.optionalKey<Schema.Unknown>;
662
- }>, Schema.$Array<Schema.Struct<{
663
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
664
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
665
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
666
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
667
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
668
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
669
- readonly frame: Schema.optionalKey<Schema.Unknown>;
670
- }>>]>>;
671
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
672
- }>, Schema.Struct<{
673
- readonly action: Schema.Literal<"waitFor">;
674
- readonly target: Schema.Struct<{
675
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
676
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
677
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
678
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
679
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
680
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
681
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
682
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
683
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
684
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
685
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
686
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
687
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
688
- readonly frame: Schema.optionalKey<Schema.Unknown>;
689
- }>, Schema.$Array<Schema.Struct<{
690
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
691
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
692
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
693
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
694
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
695
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
696
- readonly frame: Schema.optionalKey<Schema.Unknown>;
697
- }>>]>>;
698
- }>;
699
- readonly state: Schema.optionalKey<Schema.Literals<readonly ["visible", "hidden", "attached", "detached"]>>;
700
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
701
- }>, Schema.Struct<{
702
- readonly action: Schema.Literal<"scroll">;
703
- readonly target: Schema.optionalKey<Schema.Struct<{
704
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
705
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
706
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
707
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
708
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
709
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
710
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
711
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
712
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
713
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
714
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
715
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
716
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
717
- readonly frame: Schema.optionalKey<Schema.Unknown>;
718
- }>, Schema.$Array<Schema.Struct<{
719
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
720
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
721
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
722
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
723
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
724
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
725
- readonly frame: Schema.optionalKey<Schema.Unknown>;
726
- }>>]>>;
727
- }>>;
728
- readonly to: Schema.optionalKey<Schema.Literals<readonly ["top", "bottom"]>>;
729
- readonly by: Schema.optionalKey<Schema.Finite>;
730
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
731
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
732
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
733
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
734
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
735
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
736
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
737
- readonly frame: Schema.optionalKey<Schema.Unknown>;
738
- }>, Schema.$Array<Schema.Struct<{
739
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
740
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
741
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
742
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
743
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
744
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
745
- readonly frame: Schema.optionalKey<Schema.Unknown>;
746
- }>>]>>;
747
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
748
- }>, Schema.Struct<{
749
- readonly action: Schema.Literal<"expectUrl">;
750
- readonly includes: Schema.NonEmptyString;
751
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
752
- }>, Schema.Struct<{
753
- readonly action: Schema.Literal<"expectLink">;
754
- readonly target: Schema.Struct<{
755
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
756
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
757
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
758
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
759
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
760
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
761
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
762
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
763
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
764
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
765
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
766
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
767
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
768
- readonly frame: Schema.optionalKey<Schema.Unknown>;
769
- }>, Schema.$Array<Schema.Struct<{
770
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
771
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
772
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
773
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
774
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
775
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
776
- readonly frame: Schema.optionalKey<Schema.Unknown>;
777
- }>>]>>;
778
- }>;
779
- readonly href: Schema.NonEmptyString;
780
- readonly match: Schema.optionalKey<Schema.Literals<readonly ["contains", "exact"]>>;
781
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
782
- }>, Schema.Struct<{
783
- readonly action: Schema.Literal<"screenshot">;
784
- readonly name: Schema.String;
785
- }>]>>;
786
- /**
787
- * Starts where the case before it ended, on the same page, rather than at the job URL: for
788
- * what a run makes along the way, such as a page generated at a new URL. Not on a job's first case.
789
- */
790
- readonly continue: Schema.optionalKey<Schema.Boolean>;
791
- /**
792
- * What success looks like, in one plain sentence, written by the caller when it plans the case.
793
- * Shown in the report next to the case; never interpreted, and it decides nothing.
794
- */
795
- readonly success: Schema.optionalKey<Schema.String>;
796
- }>;
797
- export type CaseSpec = typeof CaseSpec.Type;
798
- /** What a run should test. The input to `screw-bugs run` and the `start_run` MCP tool. */
799
- export declare const JobSpec: Schema.Struct<{
800
- readonly version: Schema.Literal<1>;
801
- readonly url: Schema.NonEmptyString;
802
- /**
803
- * What the user asked screw-bugs to do: their original request in their own words, verbatim
804
- * when possible. Provenance only; screw-bugs stores and displays it but never interprets it or
805
- * plans from it. Only `cases` decide what runs.
806
- */
807
- readonly instructions: Schema.optionalKey<Schema.String>;
808
- /**
809
- * A short name for this run, written by the caller, such as "Notes app walkthrough" or
810
- * "Checkout on mobile". Shown as the report's heading; never interpreted. Without one, the heading is the app's own page title as the run recorded it, or
811
- * else the target's host (see `reportHeading`).
812
- */
813
- readonly title: Schema.optionalKey<Schema.String>;
814
- /**
815
- * A high-level summary of what this run tests and why, written by the caller from the cases it
816
- * built: what is being checked, not step by step, so it reads well at the top of a report for
817
- * someone who never saw the steps. screw-bugs stores and displays it but never interprets it.
818
- * Without one, {@link summaryOf} derives one from the case titles.
819
- */
820
- readonly summary: Schema.optionalKey<Schema.String>;
821
- readonly cases: Schema.optionalKey<Schema.$Array<Schema.Struct<{
822
- readonly id: Schema.String;
823
- readonly title: Schema.NonEmptyString;
824
- readonly steps: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
825
- readonly action: Schema.Literal<"goto">;
826
- readonly url: Schema.NonEmptyString;
827
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
828
- }>, Schema.Struct<{
829
- readonly action: Schema.Literal<"reload">;
830
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
831
- }>, Schema.Struct<{
832
- readonly action: Schema.Literal<"click">;
833
- readonly target: Schema.Struct<{
834
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
835
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
836
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
837
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
838
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
839
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
840
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
841
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
842
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
843
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
844
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
845
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
846
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
847
- readonly frame: Schema.optionalKey<Schema.Unknown>;
848
- }>, Schema.$Array<Schema.Struct<{
849
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
850
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
851
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
852
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
853
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
854
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
855
- readonly frame: Schema.optionalKey<Schema.Unknown>;
856
- }>>]>>;
857
- }>;
858
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
859
- }>, Schema.Struct<{
860
- readonly action: Schema.Literal<"hover">;
861
- readonly target: Schema.Struct<{
862
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
863
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
864
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
865
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
866
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
867
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
868
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
869
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
870
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
871
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
872
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
873
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
874
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
875
- readonly frame: Schema.optionalKey<Schema.Unknown>;
876
- }>, Schema.$Array<Schema.Struct<{
877
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
878
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
879
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
880
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
881
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
882
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
883
- readonly frame: Schema.optionalKey<Schema.Unknown>;
884
- }>>]>>;
885
- }>;
886
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
887
- }>, Schema.Struct<{
888
- readonly action: Schema.Literal<"fill">;
889
- readonly target: Schema.Struct<{
890
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
891
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
892
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
893
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
894
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
895
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
896
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
897
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
898
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
899
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
900
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
901
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
902
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
903
- readonly frame: Schema.optionalKey<Schema.Unknown>;
904
- }>, Schema.$Array<Schema.Struct<{
905
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
906
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
907
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
908
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
909
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
910
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
911
- readonly frame: Schema.optionalKey<Schema.Unknown>;
912
- }>>]>>;
913
- }>;
914
- readonly value: Schema.String;
915
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
916
- }>, Schema.Struct<{
917
- readonly action: Schema.Literal<"upload">;
918
- readonly target: Schema.Struct<{
919
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
920
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
921
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
922
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
923
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
924
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
925
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
926
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
927
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
928
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
929
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
930
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
931
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
932
- readonly frame: Schema.optionalKey<Schema.Unknown>;
933
- }>, Schema.$Array<Schema.Struct<{
934
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
935
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
936
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
937
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
938
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
939
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
940
- readonly frame: Schema.optionalKey<Schema.Unknown>;
941
- }>>]>>;
942
- }>;
943
- readonly files: Schema.$Array<Schema.Union<readonly [Schema.NonEmptyString, Schema.Struct<{
944
- readonly path: Schema.NonEmptyString;
945
- readonly about: Schema.optionalKey<Schema.String>;
946
- readonly allowMismatch: Schema.optionalKey<Schema.Boolean>;
947
- }>]>>;
948
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
949
- }>, Schema.Struct<{
950
- readonly action: Schema.Literal<"press">;
951
- readonly key: Schema.NonEmptyString;
952
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
953
- }>, Schema.Struct<{
954
- readonly action: Schema.Literal<"expectText">;
955
- readonly text: Schema.NonEmptyString;
956
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
957
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
958
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
959
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
960
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
961
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
962
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
963
- readonly frame: Schema.optionalKey<Schema.Unknown>;
964
- }>, Schema.$Array<Schema.Struct<{
965
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
966
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
967
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
968
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
969
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
970
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
971
- readonly frame: Schema.optionalKey<Schema.Unknown>;
972
- }>>]>>;
973
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
974
- }>, Schema.Struct<{
975
- readonly action: Schema.Literal<"expectNoText">;
976
- readonly text: Schema.NonEmptyString;
977
- readonly target: Schema.optionalKey<Schema.Struct<{
978
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
979
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
980
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
981
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
982
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
983
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
984
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
985
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
986
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
987
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
988
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
989
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
990
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
991
- readonly frame: Schema.optionalKey<Schema.Unknown>;
992
- }>, Schema.$Array<Schema.Struct<{
993
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
994
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
995
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
996
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
997
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
998
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
999
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1000
- }>>]>>;
1001
- }>>;
1002
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1003
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1004
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1005
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1006
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1007
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1008
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1009
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1010
- }>, Schema.$Array<Schema.Struct<{
1011
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1012
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1013
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1014
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1015
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1016
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1017
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1018
- }>>]>>;
1019
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1020
- }>, Schema.Struct<{
1021
- readonly action: Schema.Literal<"waitFor">;
1022
- readonly target: Schema.Struct<{
1023
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1024
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1025
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1026
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1027
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1028
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1029
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1030
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1031
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1032
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1033
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1034
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1035
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1036
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1037
- }>, Schema.$Array<Schema.Struct<{
1038
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1039
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1040
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1041
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1042
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1043
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1044
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1045
- }>>]>>;
1046
- }>;
1047
- readonly state: Schema.optionalKey<Schema.Literals<readonly ["visible", "hidden", "attached", "detached"]>>;
1048
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1049
- }>, Schema.Struct<{
1050
- readonly action: Schema.Literal<"scroll">;
1051
- readonly target: Schema.optionalKey<Schema.Struct<{
1052
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1053
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1054
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1055
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1056
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1057
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1058
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1059
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1060
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1061
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1062
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1063
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1064
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1065
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1066
- }>, Schema.$Array<Schema.Struct<{
1067
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1068
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1069
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1070
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1071
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1072
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1073
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1074
- }>>]>>;
1075
- }>>;
1076
- readonly to: Schema.optionalKey<Schema.Literals<readonly ["top", "bottom"]>>;
1077
- readonly by: Schema.optionalKey<Schema.Finite>;
1078
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1079
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1080
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1081
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1082
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1083
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1084
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1085
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1086
- }>, Schema.$Array<Schema.Struct<{
1087
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1088
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1089
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1090
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1091
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1092
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1093
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1094
- }>>]>>;
1095
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1096
- }>, Schema.Struct<{
1097
- readonly action: Schema.Literal<"expectUrl">;
1098
- readonly includes: Schema.NonEmptyString;
1099
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1100
- }>, Schema.Struct<{
1101
- readonly action: Schema.Literal<"expectLink">;
1102
- readonly target: Schema.Struct<{
1103
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1104
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1105
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1106
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1107
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1108
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1109
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1110
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1111
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1112
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1113
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1114
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1115
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1116
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1117
- }>, Schema.$Array<Schema.Struct<{
1118
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1119
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1120
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1121
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1122
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1123
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1124
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1125
- }>>]>>;
1126
- }>;
1127
- readonly href: Schema.NonEmptyString;
1128
- readonly match: Schema.optionalKey<Schema.Literals<readonly ["contains", "exact"]>>;
1129
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1130
- }>, Schema.Struct<{
1131
- readonly action: Schema.Literal<"screenshot">;
1132
- readonly name: Schema.String;
1133
- }>]>>;
1134
- /**
1135
- * Starts where the case before it ended, on the same page, rather than at the job URL: for
1136
- * what a run makes along the way, such as a page generated at a new URL. Not on a job's first case.
1137
- */
1138
- readonly continue: Schema.optionalKey<Schema.Boolean>;
1139
- /**
1140
- * What success looks like, in one plain sentence, written by the caller when it plans the case.
1141
- * Shown in the report next to the case; never interpreted, and it decides nothing.
1142
- */
1143
- readonly success: Schema.optionalKey<Schema.String>;
1144
- }>>>;
1145
- readonly device: Schema.optionalKey<Schema.Literals<readonly ["desktop", "mobile"]>>;
1146
- /**
1147
- * The test account the session starts signed in as (see `JobAccount`): a session a person saved
1148
- * once for this origin. Its cases run signed in from the first step.
1149
- */
1150
- readonly account: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Struct<{
1151
- readonly label: Schema.String;
1152
- readonly about: Schema.optionalKey<Schema.String>;
1153
- readonly renew: Schema.optionalKey<Schema.Boolean>;
1154
- }>]>>;
1155
- }>;
1156
- export type JobSpec = typeof JobSpec.Type;
1157
- /**
1158
- * A job as a caller submits it: a {@link JobSpec} whose case IDs are also unique ignoring case,
1159
- * since replies and reports name cases by ID, where `Login` and `login` would read as one case.
1160
- * Only new jobs are checked; a run recorded before this rule still reads as a JobSpec.
1161
- */
1162
- export declare const NewJobSpec: Schema.Struct<{
1163
- readonly version: Schema.Literal<1>;
1164
- readonly url: Schema.NonEmptyString;
1165
- /**
1166
- * What the user asked screw-bugs to do: their original request in their own words, verbatim
1167
- * when possible. Provenance only; screw-bugs stores and displays it but never interprets it or
1168
- * plans from it. Only `cases` decide what runs.
1169
- */
1170
- readonly instructions: Schema.optionalKey<Schema.String>;
1171
- /**
1172
- * A short name for this run, written by the caller, such as "Notes app walkthrough" or
1173
- * "Checkout on mobile". Shown as the report's heading; never interpreted. Without one, the heading is the app's own page title as the run recorded it, or
1174
- * else the target's host (see `reportHeading`).
1175
- */
1176
- readonly title: Schema.optionalKey<Schema.String>;
1177
- /**
1178
- * A high-level summary of what this run tests and why, written by the caller from the cases it
1179
- * built: what is being checked, not step by step, so it reads well at the top of a report for
1180
- * someone who never saw the steps. screw-bugs stores and displays it but never interprets it.
1181
- * Without one, {@link summaryOf} derives one from the case titles.
1182
- */
1183
- readonly summary: Schema.optionalKey<Schema.String>;
1184
- readonly cases: Schema.optionalKey<Schema.$Array<Schema.Struct<{
1185
- readonly id: Schema.String;
1186
- readonly title: Schema.NonEmptyString;
1187
- readonly steps: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1188
- readonly action: Schema.Literal<"goto">;
1189
- readonly url: Schema.NonEmptyString;
1190
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1191
- }>, Schema.Struct<{
1192
- readonly action: Schema.Literal<"reload">;
1193
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1194
- }>, Schema.Struct<{
1195
- readonly action: Schema.Literal<"click">;
1196
- readonly target: Schema.Struct<{
1197
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1198
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1199
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1200
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1201
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1202
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1203
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1204
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1205
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1206
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1207
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1208
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1209
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1210
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1211
- }>, Schema.$Array<Schema.Struct<{
1212
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1213
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1214
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1215
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1216
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1217
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1218
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1219
- }>>]>>;
1220
- }>;
1221
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1222
- }>, Schema.Struct<{
1223
- readonly action: Schema.Literal<"hover">;
1224
- readonly target: Schema.Struct<{
1225
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1226
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1227
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1228
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1229
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1230
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1231
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1232
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1233
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1234
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1235
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1236
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1237
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1238
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1239
- }>, Schema.$Array<Schema.Struct<{
1240
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1241
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1242
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1243
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1244
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1245
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1246
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1247
- }>>]>>;
1248
- }>;
1249
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1250
- }>, Schema.Struct<{
1251
- readonly action: Schema.Literal<"fill">;
1252
- readonly target: Schema.Struct<{
1253
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1254
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1255
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1256
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1257
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1258
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1259
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1260
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1261
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1262
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1263
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1264
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1265
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1266
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1267
- }>, Schema.$Array<Schema.Struct<{
1268
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1269
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1270
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1271
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1272
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1273
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1274
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1275
- }>>]>>;
1276
- }>;
1277
- readonly value: Schema.String;
1278
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1279
- }>, Schema.Struct<{
1280
- readonly action: Schema.Literal<"upload">;
1281
- readonly target: Schema.Struct<{
1282
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1283
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1284
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1285
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1286
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1287
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1288
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1289
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1290
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1291
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1292
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1293
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1294
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1295
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1296
- }>, Schema.$Array<Schema.Struct<{
1297
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1298
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1299
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1300
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1301
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1302
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1303
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1304
- }>>]>>;
1305
- }>;
1306
- readonly files: Schema.$Array<Schema.Union<readonly [Schema.NonEmptyString, Schema.Struct<{
1307
- readonly path: Schema.NonEmptyString;
1308
- readonly about: Schema.optionalKey<Schema.String>;
1309
- readonly allowMismatch: Schema.optionalKey<Schema.Boolean>;
1310
- }>]>>;
1311
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1312
- }>, Schema.Struct<{
1313
- readonly action: Schema.Literal<"press">;
1314
- readonly key: Schema.NonEmptyString;
1315
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1316
- }>, Schema.Struct<{
1317
- readonly action: Schema.Literal<"expectText">;
1318
- readonly text: Schema.NonEmptyString;
1319
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1320
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1321
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1322
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1323
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1324
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1325
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1326
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1327
- }>, Schema.$Array<Schema.Struct<{
1328
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1329
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1330
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1331
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1332
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1333
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1334
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1335
- }>>]>>;
1336
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1337
- }>, Schema.Struct<{
1338
- readonly action: Schema.Literal<"expectNoText">;
1339
- readonly text: Schema.NonEmptyString;
1340
- readonly target: Schema.optionalKey<Schema.Struct<{
1341
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1342
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1343
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1344
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1345
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1346
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1347
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1348
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1349
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1350
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1351
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1352
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1353
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1354
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1355
- }>, Schema.$Array<Schema.Struct<{
1356
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1357
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1358
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1359
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1360
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1361
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1362
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1363
- }>>]>>;
1364
- }>>;
1365
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1366
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1367
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1368
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1369
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1370
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1371
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1372
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1373
- }>, Schema.$Array<Schema.Struct<{
1374
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1375
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1376
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1377
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1378
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1379
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1380
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1381
- }>>]>>;
1382
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1383
- }>, Schema.Struct<{
1384
- readonly action: Schema.Literal<"waitFor">;
1385
- readonly target: Schema.Struct<{
1386
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1387
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1388
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1389
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1390
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1391
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1392
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1393
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1394
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1395
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1396
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1397
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1398
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1399
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1400
- }>, Schema.$Array<Schema.Struct<{
1401
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1402
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1403
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1404
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1405
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1406
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1407
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1408
- }>>]>>;
1409
- }>;
1410
- readonly state: Schema.optionalKey<Schema.Literals<readonly ["visible", "hidden", "attached", "detached"]>>;
1411
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1412
- }>, Schema.Struct<{
1413
- readonly action: Schema.Literal<"scroll">;
1414
- readonly target: Schema.optionalKey<Schema.Struct<{
1415
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1416
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1417
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1418
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1419
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1420
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1421
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1422
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1423
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1424
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1425
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1426
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1427
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1428
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1429
- }>, Schema.$Array<Schema.Struct<{
1430
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1431
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1432
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1433
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1434
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1435
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1436
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1437
- }>>]>>;
1438
- }>>;
1439
- readonly to: Schema.optionalKey<Schema.Literals<readonly ["top", "bottom"]>>;
1440
- readonly by: Schema.optionalKey<Schema.Finite>;
1441
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1442
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1443
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1444
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1445
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1446
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1447
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1448
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1449
- }>, Schema.$Array<Schema.Struct<{
1450
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1451
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1452
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1453
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1454
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1455
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1456
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1457
- }>>]>>;
1458
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1459
- }>, Schema.Struct<{
1460
- readonly action: Schema.Literal<"expectUrl">;
1461
- readonly includes: Schema.NonEmptyString;
1462
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1463
- }>, Schema.Struct<{
1464
- readonly action: Schema.Literal<"expectLink">;
1465
- readonly target: Schema.Struct<{
1466
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1467
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1468
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1469
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1470
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1471
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1472
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1473
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1474
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1475
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1476
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1477
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1478
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1479
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1480
- }>, Schema.$Array<Schema.Struct<{
1481
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1482
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1483
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1484
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1485
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1486
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1487
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1488
- }>>]>>;
1489
- }>;
1490
- readonly href: Schema.NonEmptyString;
1491
- readonly match: Schema.optionalKey<Schema.Literals<readonly ["contains", "exact"]>>;
1492
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1493
- }>, Schema.Struct<{
1494
- readonly action: Schema.Literal<"screenshot">;
1495
- readonly name: Schema.String;
1496
- }>]>>;
1497
- /**
1498
- * Starts where the case before it ended, on the same page, rather than at the job URL: for
1499
- * what a run makes along the way, such as a page generated at a new URL. Not on a job's first case.
1500
- */
1501
- readonly continue: Schema.optionalKey<Schema.Boolean>;
1502
- /**
1503
- * What success looks like, in one plain sentence, written by the caller when it plans the case.
1504
- * Shown in the report next to the case; never interpreted, and it decides nothing.
1505
- */
1506
- readonly success: Schema.optionalKey<Schema.String>;
1507
- }>>>;
1508
- readonly device: Schema.optionalKey<Schema.Literals<readonly ["desktop", "mobile"]>>;
1509
- /**
1510
- * The test account the session starts signed in as (see `JobAccount`): a session a person saved
1511
- * once for this origin. Its cases run signed in from the first step.
1512
- */
1513
- readonly account: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Struct<{
1514
- readonly label: Schema.String;
1515
- readonly about: Schema.optionalKey<Schema.String>;
1516
- readonly renew: Schema.optionalKey<Schema.Boolean>;
1517
- }>]>>;
1518
- }>;
1519
- /** What `job.json` in a run folder holds. */
1520
- export declare const JobRecord: Schema.Struct<{
1521
- readonly jobId: Schema.brand<Schema.String, "JobId">;
1522
- readonly spec: Schema.Struct<{
1523
- readonly version: Schema.Literal<1>;
1524
- readonly url: Schema.NonEmptyString;
1525
- /**
1526
- * What the user asked screw-bugs to do: their original request in their own words, verbatim
1527
- * when possible. Provenance only; screw-bugs stores and displays it but never interprets it or
1528
- * plans from it. Only `cases` decide what runs.
1529
- */
1530
- readonly instructions: Schema.optionalKey<Schema.String>;
1531
- /**
1532
- * A short name for this run, written by the caller, such as "Notes app walkthrough" or
1533
- * "Checkout on mobile". Shown as the report's heading; never interpreted. Without one, the heading is the app's own page title as the run recorded it, or
1534
- * else the target's host (see `reportHeading`).
1535
- */
1536
- readonly title: Schema.optionalKey<Schema.String>;
1537
- /**
1538
- * A high-level summary of what this run tests and why, written by the caller from the cases it
1539
- * built: what is being checked, not step by step, so it reads well at the top of a report for
1540
- * someone who never saw the steps. screw-bugs stores and displays it but never interprets it.
1541
- * Without one, {@link summaryOf} derives one from the case titles.
1542
- */
1543
- readonly summary: Schema.optionalKey<Schema.String>;
1544
- readonly cases: Schema.optionalKey<Schema.$Array<Schema.Struct<{
1545
- readonly id: Schema.String;
1546
- readonly title: Schema.NonEmptyString;
1547
- readonly steps: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
1548
- readonly action: Schema.Literal<"goto">;
1549
- readonly url: Schema.NonEmptyString;
1550
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1551
- }>, Schema.Struct<{
1552
- readonly action: Schema.Literal<"reload">;
1553
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1554
- }>, Schema.Struct<{
1555
- readonly action: Schema.Literal<"click">;
1556
- readonly target: Schema.Struct<{
1557
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1558
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1559
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1560
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1561
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1562
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1563
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1564
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1565
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1566
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1567
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1568
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1569
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1570
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1571
- }>, Schema.$Array<Schema.Struct<{
1572
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1573
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1574
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1575
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1576
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1577
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1578
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1579
- }>>]>>;
1580
- }>;
1581
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1582
- }>, Schema.Struct<{
1583
- readonly action: Schema.Literal<"hover">;
1584
- readonly target: Schema.Struct<{
1585
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1586
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1587
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1588
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1589
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1590
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1591
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1592
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1593
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1594
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1595
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1596
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1597
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1598
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1599
- }>, Schema.$Array<Schema.Struct<{
1600
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1601
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1602
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1603
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1604
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1605
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1606
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1607
- }>>]>>;
1608
- }>;
1609
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1610
- }>, Schema.Struct<{
1611
- readonly action: Schema.Literal<"fill">;
1612
- readonly target: Schema.Struct<{
1613
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1614
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1615
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1616
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1617
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1618
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1619
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1620
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1621
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1622
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1623
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1624
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1625
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1626
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1627
- }>, Schema.$Array<Schema.Struct<{
1628
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1629
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1630
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1631
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1632
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1633
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1634
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1635
- }>>]>>;
1636
- }>;
1637
- readonly value: Schema.String;
1638
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1639
- }>, Schema.Struct<{
1640
- readonly action: Schema.Literal<"upload">;
1641
- readonly target: Schema.Struct<{
1642
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1643
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1644
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1645
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1646
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1647
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1648
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1649
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1650
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1651
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1652
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1653
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1654
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1655
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1656
- }>, Schema.$Array<Schema.Struct<{
1657
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1658
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1659
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1660
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1661
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1662
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1663
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1664
- }>>]>>;
1665
- }>;
1666
- readonly files: Schema.$Array<Schema.Union<readonly [Schema.NonEmptyString, Schema.Struct<{
1667
- readonly path: Schema.NonEmptyString;
1668
- readonly about: Schema.optionalKey<Schema.String>;
1669
- readonly allowMismatch: Schema.optionalKey<Schema.Boolean>;
1670
- }>]>>;
1671
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1672
- }>, Schema.Struct<{
1673
- readonly action: Schema.Literal<"press">;
1674
- readonly key: Schema.NonEmptyString;
1675
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1676
- }>, Schema.Struct<{
1677
- readonly action: Schema.Literal<"expectText">;
1678
- readonly text: Schema.NonEmptyString;
1679
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1680
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1681
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1682
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1683
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1684
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1685
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1686
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1687
- }>, Schema.$Array<Schema.Struct<{
1688
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1689
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1690
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1691
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1692
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1693
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1694
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1695
- }>>]>>;
1696
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1697
- }>, Schema.Struct<{
1698
- readonly action: Schema.Literal<"expectNoText">;
1699
- readonly text: Schema.NonEmptyString;
1700
- readonly target: Schema.optionalKey<Schema.Struct<{
1701
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1702
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1703
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1704
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1705
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1706
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1707
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1708
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1709
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1710
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1711
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1712
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1713
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1714
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1715
- }>, Schema.$Array<Schema.Struct<{
1716
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1717
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1718
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1719
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1720
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1721
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1722
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1723
- }>>]>>;
1724
- }>>;
1725
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1726
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1727
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1728
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1729
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1730
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1731
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1732
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1733
- }>, Schema.$Array<Schema.Struct<{
1734
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1735
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1736
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1737
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1738
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1739
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1740
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1741
- }>>]>>;
1742
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1743
- }>, Schema.Struct<{
1744
- readonly action: Schema.Literal<"waitFor">;
1745
- readonly target: Schema.Struct<{
1746
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1747
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1748
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1749
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1750
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1751
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1752
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1753
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1754
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1755
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1756
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1757
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1758
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1759
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1760
- }>, Schema.$Array<Schema.Struct<{
1761
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1762
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1763
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1764
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1765
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1766
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1767
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1768
- }>>]>>;
1769
- }>;
1770
- readonly state: Schema.optionalKey<Schema.Literals<readonly ["visible", "hidden", "attached", "detached"]>>;
1771
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1772
- }>, Schema.Struct<{
1773
- readonly action: Schema.Literal<"scroll">;
1774
- readonly target: Schema.optionalKey<Schema.Struct<{
1775
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1776
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1777
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1778
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1779
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1780
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1781
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1782
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1783
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1784
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1785
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1786
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1787
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1788
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1789
- }>, Schema.$Array<Schema.Struct<{
1790
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1791
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1792
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1793
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1794
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1795
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1796
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1797
- }>>]>>;
1798
- }>>;
1799
- readonly to: Schema.optionalKey<Schema.Literals<readonly ["top", "bottom"]>>;
1800
- readonly by: Schema.optionalKey<Schema.Finite>;
1801
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1802
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1803
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1804
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1805
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1806
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1807
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1808
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1809
- }>, Schema.$Array<Schema.Struct<{
1810
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1811
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1812
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1813
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1814
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1815
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1816
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1817
- }>>]>>;
1818
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1819
- }>, Schema.Struct<{
1820
- readonly action: Schema.Literal<"expectUrl">;
1821
- readonly includes: Schema.NonEmptyString;
1822
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1823
- }>, Schema.Struct<{
1824
- readonly action: Schema.Literal<"expectLink">;
1825
- readonly target: Schema.Struct<{
1826
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1827
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1828
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1829
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1830
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1831
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1832
- readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1833
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1834
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1835
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1836
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1837
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1838
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1839
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1840
- }>, Schema.$Array<Schema.Struct<{
1841
- readonly role: Schema.optionalKey<Schema.NonEmptyString>;
1842
- readonly name: Schema.optionalKey<Schema.NonEmptyString>;
1843
- readonly text: Schema.optionalKey<Schema.NonEmptyString>;
1844
- readonly label: Schema.optionalKey<Schema.NonEmptyString>;
1845
- readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
1846
- readonly css: Schema.optionalKey<Schema.NonEmptyString>;
1847
- readonly frame: Schema.optionalKey<Schema.Unknown>;
1848
- }>>]>>;
1849
- }>;
1850
- readonly href: Schema.NonEmptyString;
1851
- readonly match: Schema.optionalKey<Schema.Literals<readonly ["contains", "exact"]>>;
1852
- readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
1853
- }>, Schema.Struct<{
1854
- readonly action: Schema.Literal<"screenshot">;
1855
- readonly name: Schema.String;
1856
- }>]>>;
1857
- /**
1858
- * Starts where the case before it ended, on the same page, rather than at the job URL: for
1859
- * what a run makes along the way, such as a page generated at a new URL. Not on a job's first case.
1860
- */
1861
- readonly continue: Schema.optionalKey<Schema.Boolean>;
1862
- /**
1863
- * What success looks like, in one plain sentence, written by the caller when it plans the case.
1864
- * Shown in the report next to the case; never interpreted, and it decides nothing.
1865
- */
1866
- readonly success: Schema.optionalKey<Schema.String>;
1867
- }>>>;
1868
- readonly device: Schema.optionalKey<Schema.Literals<readonly ["desktop", "mobile"]>>;
1869
- /**
1870
- * The test account the session starts signed in as (see `JobAccount`): a session a person saved
1871
- * once for this origin. Its cases run signed in from the first step.
1872
- */
1873
- readonly account: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Struct<{
1874
- readonly label: Schema.String;
1875
- readonly about: Schema.optionalKey<Schema.String>;
1876
- readonly renew: Schema.optionalKey<Schema.Boolean>;
1877
- }>]>>;
1878
- }>;
1879
- readonly createdAt: Schema.String;
1880
- }>;
1881
- export type JobRecord = typeof JobRecord.Type;
1882
- /** The case a job without cases gets: the page loads without an HTTP error, plus a screenshot. */
1883
- export declare const casesOf: (spec: JobSpec) => ReadonlyArray<CaseSpec>;
1884
- /**
1885
- * The summary to show for a job: the caller's own when it gave one, otherwise one derived from
1886
- * the case titles, such as `Checks: page loads; signup with a valid email`. Deterministic; no AI.
1887
- * `derived` tells a report which of the two it got.
1888
- */
1889
- export declare const summaryOf: (spec: JobSpec) => {
1890
- readonly text: string;
1891
- readonly derived: boolean;
1892
- };
1893
- /** A question the engine asks when it cannot continue on its own (for example, a one-time code). */
1894
- export declare const Question: Schema.Struct<{
1895
- readonly id: Schema.NonEmptyString;
1896
- readonly jobId: Schema.brand<Schema.String, "JobId">;
1897
- readonly text: Schema.NonEmptyString;
1898
- }>;
1899
- export type Question = typeof Question.Type;
1900
- export declare const Answer: Schema.Struct<{
1901
- readonly questionId: Schema.NonEmptyString;
1902
- readonly jobId: Schema.brand<Schema.String, "JobId">;
1903
- readonly text: Schema.String;
1904
- }>;
1905
- export type Answer = typeof Answer.Type;