doc-detective-common 4.0.0-beta.0-dev.4 → 4.0.0-beta.0-dev.5

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 (200) hide show
  1. package/package.json +1 -1
  2. package/.c8rc.json +0 -8
  3. package/.mocharc.yml +0 -1
  4. package/icon.png +0 -0
  5. package/scripts/check-coverage-ratchet.cjs +0 -123
  6. package/scripts/createCjsWrapper.js +0 -25
  7. package/scripts/generateTypes.cjs +0 -54
  8. package/src/detectTests.ts +0 -660
  9. package/src/index.ts +0 -3
  10. package/src/schemas/build/checkLink_v2.schema.json +0 -81
  11. package/src/schemas/build/checkLink_v3.schema.json +0 -92
  12. package/src/schemas/build/click_v3.schema.json +0 -145
  13. package/src/schemas/build/config_v2.schema.json +0 -1079
  14. package/src/schemas/build/config_v3.schema.json +0 -696
  15. package/src/schemas/build/context_v2.schema.json +0 -135
  16. package/src/schemas/build/context_v3.schema.json +0 -229
  17. package/src/schemas/build/dragAndDrop_v3.schema.json +0 -189
  18. package/src/schemas/build/find_v2.schema.json +0 -168
  19. package/src/schemas/build/find_v3.schema.json +0 -214
  20. package/src/schemas/build/goTo_v2.schema.json +0 -63
  21. package/src/schemas/build/goTo_v3.schema.json +0 -257
  22. package/src/schemas/build/httpRequest_v2.schema.json +0 -321
  23. package/src/schemas/build/httpRequest_v3.schema.json +0 -439
  24. package/src/schemas/build/loadCookie_v3.schema.json +0 -138
  25. package/src/schemas/build/loadVariables_v3.schema.json +0 -10
  26. package/src/schemas/build/moveTo_v2.schema.json +0 -99
  27. package/src/schemas/build/openApi_v2.schema.json +0 -76
  28. package/src/schemas/build/openApi_v3.schema.json +0 -161
  29. package/src/schemas/build/record_v3.schema.json +0 -70
  30. package/src/schemas/build/report_v3.schema.json +0 -53
  31. package/src/schemas/build/resolvedTests_v3.schema.json +0 -238
  32. package/src/schemas/build/runCode_v2.schema.json +0 -201
  33. package/src/schemas/build/runCode_v3.schema.json +0 -138
  34. package/src/schemas/build/runShell_v2.schema.json +0 -189
  35. package/src/schemas/build/runShell_v3.schema.json +0 -156
  36. package/src/schemas/build/saveCookie_v3.schema.json +0 -149
  37. package/src/schemas/build/saveScreenshot_v2.schema.json +0 -150
  38. package/src/schemas/build/screenshot_v3.schema.json +0 -250
  39. package/src/schemas/build/setVariables_v2.schema.json +0 -39
  40. package/src/schemas/build/sourceIntegration_v3.schema.json +0 -51
  41. package/src/schemas/build/spec_v2.schema.json +0 -199
  42. package/src/schemas/build/spec_v3.schema.json +0 -213
  43. package/src/schemas/build/startRecording_v2.schema.json +0 -57
  44. package/src/schemas/build/step_v3.schema.json +0 -669
  45. package/src/schemas/build/stopRecord_v3.schema.json +0 -13
  46. package/src/schemas/build/stopRecording_v2.schema.json +0 -33
  47. package/src/schemas/build/test_v2.schema.json +0 -244
  48. package/src/schemas/build/test_v3.schema.json +0 -292
  49. package/src/schemas/build/typeKeys_v2.schema.json +0 -72
  50. package/src/schemas/build/type_v3.schema.json +0 -131
  51. package/src/schemas/build/wait_v2.schema.json +0 -42
  52. package/src/schemas/build/wait_v3.schema.json +0 -37
  53. package/src/schemas/dereferenceSchemas.cjs +0 -208
  54. package/src/schemas/index.ts +0 -6
  55. package/src/schemas/output_schemas/analytics_v1.schema.json +0 -585
  56. package/src/schemas/output_schemas/checkLink_v1.schema.json +0 -42
  57. package/src/schemas/output_schemas/checkLink_v2.schema.json +0 -80
  58. package/src/schemas/output_schemas/checkLink_v3.schema.json +0 -145
  59. package/src/schemas/output_schemas/click_v1.schema.json +0 -60
  60. package/src/schemas/output_schemas/click_v3.schema.json +0 -252
  61. package/src/schemas/output_schemas/config_v2.schema.json +0 -2628
  62. package/src/schemas/output_schemas/config_v3.schema.json +0 -16470
  63. package/src/schemas/output_schemas/context_v2.schema.json +0 -134
  64. package/src/schemas/output_schemas/context_v3.schema.json +0 -374
  65. package/src/schemas/output_schemas/dragAndDrop_v3.schema.json +0 -496
  66. package/src/schemas/output_schemas/endRecord_v3.schema.json +0 -12
  67. package/src/schemas/output_schemas/find_v1.schema.json +0 -171
  68. package/src/schemas/output_schemas/find_v2.schema.json +0 -184
  69. package/src/schemas/output_schemas/find_v3.schema.json +0 -1349
  70. package/src/schemas/output_schemas/goTo_v1.schema.json +0 -30
  71. package/src/schemas/output_schemas/goTo_v2.schema.json +0 -62
  72. package/src/schemas/output_schemas/goTo_v3.schema.json +0 -419
  73. package/src/schemas/output_schemas/httpRequest_v1.schema.json +0 -115
  74. package/src/schemas/output_schemas/httpRequest_v2.schema.json +0 -392
  75. package/src/schemas/output_schemas/httpRequest_v3.schema.json +0 -994
  76. package/src/schemas/output_schemas/loadCookie_v3.schema.json +0 -228
  77. package/src/schemas/output_schemas/loadVariables_v3.schema.json +0 -9
  78. package/src/schemas/output_schemas/matchText_v1.schema.json +0 -32
  79. package/src/schemas/output_schemas/moveMouse_v1.schema.json +0 -60
  80. package/src/schemas/output_schemas/moveTo_v2.schema.json +0 -98
  81. package/src/schemas/output_schemas/openApi_v2.schema.json +0 -75
  82. package/src/schemas/output_schemas/openApi_v3.schema.json +0 -162
  83. package/src/schemas/output_schemas/record_v3.schema.json +0 -101
  84. package/src/schemas/output_schemas/report_v3.schema.json +0 -16826
  85. package/src/schemas/output_schemas/resolvedTests_v3.schema.json +0 -33331
  86. package/src/schemas/output_schemas/runCode_v2.schema.json +0 -200
  87. package/src/schemas/output_schemas/runCode_v3.schema.json +0 -222
  88. package/src/schemas/output_schemas/runShell_v1.schema.json +0 -35
  89. package/src/schemas/output_schemas/runShell_v2.schema.json +0 -188
  90. package/src/schemas/output_schemas/runShell_v3.schema.json +0 -236
  91. package/src/schemas/output_schemas/saveCookie_v3.schema.json +0 -245
  92. package/src/schemas/output_schemas/saveScreenshot_v2.schema.json +0 -149
  93. package/src/schemas/output_schemas/screenshot_v1.schema.json +0 -48
  94. package/src/schemas/output_schemas/screenshot_v3.schema.json +0 -681
  95. package/src/schemas/output_schemas/scroll_v1.schema.json +0 -50
  96. package/src/schemas/output_schemas/setVariables_v2.schema.json +0 -38
  97. package/src/schemas/output_schemas/sourceIntegration_v3.schema.json +0 -50
  98. package/src/schemas/output_schemas/spec_v2.schema.json +0 -2301
  99. package/src/schemas/output_schemas/spec_v3.schema.json +0 -16630
  100. package/src/schemas/output_schemas/startRecording_v1.schema.json +0 -55
  101. package/src/schemas/output_schemas/startRecording_v2.schema.json +0 -56
  102. package/src/schemas/output_schemas/step_v3.schema.json +0 -7317
  103. package/src/schemas/output_schemas/stopRecord_v3.schema.json +0 -12
  104. package/src/schemas/output_schemas/stopRecording_v1.schema.json +0 -20
  105. package/src/schemas/output_schemas/stopRecording_v2.schema.json +0 -32
  106. package/src/schemas/output_schemas/test_v2.schema.json +0 -1903
  107. package/src/schemas/output_schemas/test_v3.schema.json +0 -15863
  108. package/src/schemas/output_schemas/typeKeys_v2.schema.json +0 -71
  109. package/src/schemas/output_schemas/type_v1.schema.json +0 -62
  110. package/src/schemas/output_schemas/type_v3.schema.json +0 -244
  111. package/src/schemas/output_schemas/wait_v1.schema.json +0 -42
  112. package/src/schemas/output_schemas/wait_v2.schema.json +0 -41
  113. package/src/schemas/output_schemas/wait_v3.schema.json +0 -41
  114. package/src/schemas/schemas.json +0 -121331
  115. package/src/schemas/src_schemas/analytics_v1.schema.json +0 -585
  116. package/src/schemas/src_schemas/checkLink_v1.schema.json +0 -42
  117. package/src/schemas/src_schemas/checkLink_v2.schema.json +0 -65
  118. package/src/schemas/src_schemas/checkLink_v3.schema.json +0 -91
  119. package/src/schemas/src_schemas/click_v1.schema.json +0 -60
  120. package/src/schemas/src_schemas/click_v3.schema.json +0 -144
  121. package/src/schemas/src_schemas/config_v2.schema.json +0 -929
  122. package/src/schemas/src_schemas/config_v3.schema.json +0 -633
  123. package/src/schemas/src_schemas/context_v2.schema.json +0 -108
  124. package/src/schemas/src_schemas/context_v3.schema.json +0 -202
  125. package/src/schemas/src_schemas/dragAndDrop_v3.schema.json +0 -185
  126. package/src/schemas/src_schemas/find_v1.schema.json +0 -137
  127. package/src/schemas/src_schemas/find_v2.schema.json +0 -155
  128. package/src/schemas/src_schemas/find_v3.schema.json +0 -210
  129. package/src/schemas/src_schemas/goTo_v1.schema.json +0 -30
  130. package/src/schemas/src_schemas/goTo_v2.schema.json +0 -58
  131. package/src/schemas/src_schemas/goTo_v3.schema.json +0 -232
  132. package/src/schemas/src_schemas/httpRequest_v1.schema.json +0 -115
  133. package/src/schemas/src_schemas/httpRequest_v2.schema.json +0 -284
  134. package/src/schemas/src_schemas/httpRequest_v3.schema.json +0 -402
  135. package/src/schemas/src_schemas/loadCookie_v3.schema.json +0 -113
  136. package/src/schemas/src_schemas/loadVariables_v3.schema.json +0 -9
  137. package/src/schemas/src_schemas/matchText_v1.schema.json +0 -32
  138. package/src/schemas/src_schemas/moveMouse_v1.schema.json +0 -60
  139. package/src/schemas/src_schemas/moveTo_v2.schema.json +0 -89
  140. package/src/schemas/src_schemas/openApi_v2.schema.json +0 -64
  141. package/src/schemas/src_schemas/openApi_v3.schema.json +0 -161
  142. package/src/schemas/src_schemas/record_v3.schema.json +0 -69
  143. package/src/schemas/src_schemas/report_v3.schema.json +0 -52
  144. package/src/schemas/src_schemas/resolvedTests_v3.schema.json +0 -237
  145. package/src/schemas/src_schemas/runCode_v2.schema.json +0 -181
  146. package/src/schemas/src_schemas/runCode_v3.schema.json +0 -137
  147. package/src/schemas/src_schemas/runShell_v1.schema.json +0 -35
  148. package/src/schemas/src_schemas/runShell_v2.schema.json +0 -166
  149. package/src/schemas/src_schemas/runShell_v3.schema.json +0 -155
  150. package/src/schemas/src_schemas/saveCookie_v3.schema.json +0 -124
  151. package/src/schemas/src_schemas/saveScreenshot_v2.schema.json +0 -129
  152. package/src/schemas/src_schemas/screenshot_v1.schema.json +0 -48
  153. package/src/schemas/src_schemas/screenshot_v3.schema.json +0 -249
  154. package/src/schemas/src_schemas/scroll_v1.schema.json +0 -50
  155. package/src/schemas/src_schemas/setVariables_v2.schema.json +0 -38
  156. package/src/schemas/src_schemas/sourceIntegration_v3.schema.json +0 -45
  157. package/src/schemas/src_schemas/spec_v2.schema.json +0 -175
  158. package/src/schemas/src_schemas/spec_v3.schema.json +0 -212
  159. package/src/schemas/src_schemas/startRecording_v1.schema.json +0 -55
  160. package/src/schemas/src_schemas/startRecording_v2.schema.json +0 -54
  161. package/src/schemas/src_schemas/step_v3.schema.json +0 -632
  162. package/src/schemas/src_schemas/stopRecord_v3.schema.json +0 -9
  163. package/src/schemas/src_schemas/stopRecording_v1.schema.json +0 -20
  164. package/src/schemas/src_schemas/stopRecording_v2.schema.json +0 -32
  165. package/src/schemas/src_schemas/test_v2.schema.json +0 -200
  166. package/src/schemas/src_schemas/test_v3.schema.json +0 -268
  167. package/src/schemas/src_schemas/typeKeys_v2.schema.json +0 -63
  168. package/src/schemas/src_schemas/type_v1.schema.json +0 -62
  169. package/src/schemas/src_schemas/type_v3.schema.json +0 -118
  170. package/src/schemas/src_schemas/wait_v1.schema.json +0 -42
  171. package/src/schemas/src_schemas/wait_v2.schema.json +0 -41
  172. package/src/schemas/src_schemas/wait_v3.schema.json +0 -36
  173. package/src/types/generated/checkLink_v3.ts +0 -29
  174. package/src/types/generated/click_v3.ts +0 -17
  175. package/src/types/generated/config_v3.ts +0 -405
  176. package/src/types/generated/context_v3.ts +0 -112
  177. package/src/types/generated/dragAndDrop_v3.ts +0 -39
  178. package/src/types/generated/endRecord_v3.ts +0 -10
  179. package/src/types/generated/find_v3.ts +0 -17
  180. package/src/types/generated/goTo_v3.ts +0 -48
  181. package/src/types/generated/httpRequest_v3.ts +0 -17
  182. package/src/types/generated/loadCookie_v3.ts +0 -17
  183. package/src/types/generated/loadVariables_v3.ts +0 -10
  184. package/src/types/generated/openApi_v3.ts +0 -64
  185. package/src/types/generated/record_v3.ts +0 -34
  186. package/src/types/generated/report_v3.ts +0 -183
  187. package/src/types/generated/resolvedTests_v3.ts +0 -585
  188. package/src/types/generated/runCode_v3.ts +0 -59
  189. package/src/types/generated/runShell_v3.ts +0 -58
  190. package/src/types/generated/saveCookie_v3.ts +0 -17
  191. package/src/types/generated/screenshot_v3.ts +0 -76
  192. package/src/types/generated/sourceIntegration_v3.ts +0 -31
  193. package/src/types/generated/spec_v3.ts +0 -166
  194. package/src/types/generated/step_v3.ts +0 -1288
  195. package/src/types/generated/stopRecord_v3.ts +0 -10
  196. package/src/types/generated/test_v3.ts +0 -3048
  197. package/src/types/generated/type_v3.ts +0 -56
  198. package/src/types/generated/wait_v3.ts +0 -13
  199. package/src/validate.ts +0 -627
  200. package/tsconfig.json +0 -22
@@ -1,632 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "step",
4
- "description": "A step in a test.",
5
- "type": "object",
6
- "components": {
7
- "schemas": {
8
- "common": {
9
- "type": "object",
10
- "dynamicDefaults": {
11
- "stepId": "uuid"
12
- },
13
- "properties": {
14
- "$schema": {
15
- "$ref": "#/components/schemas/$schema"
16
- },
17
- "stepId": {
18
- "$ref": "#/components/schemas/stepId"
19
- },
20
- "description": {
21
- "$ref": "#/components/schemas/description"
22
- },
23
- "unsafe": {
24
- "$ref": "#/components/schemas/unsafe"
25
- },
26
- "outputs": {
27
- "$ref": "#/components/schemas/outputs"
28
- },
29
- "variables": {
30
- "$ref": "#/components/schemas/variables"
31
- },
32
- "breakpoint": {
33
- "$ref": "#/components/schemas/breakpoint"
34
- }
35
- },
36
- "title": "Common"
37
- },
38
- "$schema": {
39
- "description": "JSON Schema for this object.",
40
- "type": "string",
41
- "enum": [
42
- "https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/step_v3.schema.json"
43
- ]
44
- },
45
- "stepId": {
46
- "type": "string",
47
- "description": "ID of the step."
48
- },
49
- "description": {
50
- "type": "string",
51
- "description": "Description of the step."
52
- },
53
- "unsafe": {
54
- "type": "boolean",
55
- "description": "Whether or not the step may be unsafe. Unsafe steps may perform actions that could modify the system or environment in unexpected ways. Unsafe steps are only performed within Docker containers or if unsafe steps are enabled with the `allowUnsafeSteps` config property or the `--allow-unsafe` flag.",
56
- "default": false
57
- },
58
- "outputs": {
59
- "type": "object",
60
- "description": "Outputs from step processes and user-defined expressions. Use the `outputs` object to reference outputs in subsequent steps. If a user-defined output matches the key for a step-defined output, the user-defined output takes precedence.",
61
- "default": {},
62
- "patternProperties": {
63
- "^[A-Za-z0-9_]+$": {
64
- "type": "string",
65
- "description": "Runtime expression for a user-defined output value."
66
- }
67
- },
68
- "title": "Outputs (step)"
69
- },
70
- "variables": {
71
- "type": "object",
72
- "description": "Environment variables to set from user-defined expressions.",
73
- "default": {},
74
- "patternProperties": {
75
- "^[A-Za-z0-9_]+$": {
76
- "type": "string",
77
- "description": "Runtime expression for a user-defined output value."
78
- }
79
- },
80
- "title": "Variables (step)"
81
- },
82
- "breakpoint": {
83
- "type": "boolean",
84
- "description": "Whether or not this step should act as a breakpoint when debugging is enabled. When `true`, execution will pause at this step when debug mode is enabled.",
85
- "default": false
86
- }
87
- }
88
- },
89
- "anyOf": [
90
- {
91
- "allOf": [
92
- {
93
- "$ref": "#/components/schemas/common"
94
- },
95
- {
96
- "type": "object",
97
- "required": ["checkLink"],
98
- "properties": {
99
- "checkLink": {
100
- "$ref": "checkLink_v3.schema.json#"
101
- }
102
- },
103
- "title": "checkLink"
104
- }
105
- ]
106
- },
107
- {
108
- "allOf": [
109
- {
110
- "$ref": "#/components/schemas/common"
111
- },
112
- {
113
- "type": "object",
114
- "required": ["click"],
115
- "properties": {
116
- "click": {
117
- "$ref": "click_v3.schema.json#"
118
- }
119
- },
120
- "title": "click"
121
- }
122
- ]
123
- },
124
- {
125
- "allOf": [
126
- {
127
- "$ref": "#/components/schemas/common"
128
- },
129
- {
130
- "type": "object",
131
- "required": ["find"],
132
- "properties": {
133
- "find": {
134
- "$ref": "find_v3.schema.json#"
135
- }
136
- },
137
- "title": "find"
138
- }
139
- ]
140
- },
141
- {
142
- "allOf": [
143
- {
144
- "$ref": "#/components/schemas/common"
145
- },
146
- {
147
- "type": "object",
148
- "required": ["goTo"],
149
- "properties": {
150
- "goTo": {
151
- "$ref": "goTo_v3.schema.json#"
152
- }
153
- },
154
- "title": "goTo"
155
- }
156
- ]
157
- },
158
- {
159
- "allOf": [
160
- {
161
- "$ref": "#/components/schemas/common"
162
- },
163
- {
164
- "type": "object",
165
- "required": ["httpRequest"],
166
- "properties": {
167
- "httpRequest": {
168
- "$ref": "httpRequest_v3.schema.json#"
169
- }
170
- },
171
- "title": "httpRequest"
172
- }
173
- ]
174
- },
175
- {
176
- "allOf": [
177
- {
178
- "$ref": "#/components/schemas/common"
179
- },
180
- {
181
- "type": "object",
182
- "required": ["runShell"],
183
- "properties": {
184
- "runShell": {
185
- "$ref": "runShell_v3.schema.json#"
186
- }
187
- },
188
- "title": "runShell"
189
- }
190
- ]
191
- },
192
- {
193
- "allOf": [
194
- {
195
- "$ref": "#/components/schemas/common"
196
- },
197
- {
198
- "type": "object",
199
- "required": ["runCode"],
200
- "properties": {
201
- "runCode": {
202
- "$ref": "runCode_v3.schema.json#"
203
- }
204
- },
205
- "title": "runCode"
206
- }
207
- ]
208
- },
209
- {
210
- "allOf": [
211
- {
212
- "$ref": "#/components/schemas/common"
213
- },
214
- {
215
- "type": "object",
216
- "required": ["type"],
217
- "properties": {
218
- "type": {
219
- "$ref": "type_v3.schema.json#"
220
- }
221
- },
222
- "title": "type"
223
- }
224
- ]
225
- },
226
- {
227
- "allOf": [
228
- {
229
- "$ref": "#/components/schemas/common"
230
- },
231
- {
232
- "type": "object",
233
- "required": ["screenshot"],
234
- "properties": {
235
- "screenshot": {
236
- "$ref": "screenshot_v3.schema.json#"
237
- }
238
- },
239
- "title": "screenshot"
240
- }
241
- ]
242
- },
243
- {
244
- "allOf": [
245
- {
246
- "$ref": "#/components/schemas/common"
247
- },
248
- {
249
- "type": "object",
250
- "required": ["saveCookie"],
251
- "properties": {
252
- "saveCookie": {
253
- "$ref": "saveCookie_v3.schema.json#"
254
- }
255
- },
256
- "title": "saveCookie"
257
- }
258
- ]
259
- },
260
- {
261
- "allOf": [
262
- {
263
- "$ref": "#/components/schemas/common"
264
- },
265
- {
266
- "type": "object",
267
- "required": ["record"],
268
- "properties": {
269
- "record": {
270
- "$ref": "record_v3.schema.json#"
271
- }
272
- },
273
- "title": "record"
274
- }
275
- ]
276
- },
277
- {
278
- "allOf": [
279
- {
280
- "$ref": "#/components/schemas/common"
281
- },
282
- {
283
- "type": "object",
284
- "required": ["stopRecord"],
285
- "properties": {
286
- "stopRecord": {
287
- "$ref": "stopRecord_v3.schema.json#"
288
- }
289
- },
290
- "title": "stopRecord"
291
- }
292
- ]
293
- },
294
- {
295
- "allOf": [
296
- {
297
- "$ref": "#/components/schemas/common"
298
- },
299
- {
300
- "title": "loadVariables",
301
- "type": "object",
302
- "required": ["loadVariables"],
303
- "properties": {
304
- "loadVariables": {
305
- "$ref": "loadVariables_v3.schema.json#"
306
- }
307
- }
308
- }
309
- ]
310
- },
311
- {
312
- "allOf": [
313
- {
314
- "$ref": "#/components/schemas/common"
315
- },
316
- {
317
- "title": "dragAndDrop",
318
- "type": "object",
319
- "required": ["dragAndDrop"],
320
- "properties": {
321
- "dragAndDrop": {
322
- "$ref": "dragAndDrop_v3.schema.json#"
323
- }
324
- }
325
- }
326
- ]
327
- },
328
- {
329
- "allOf": [
330
- {
331
- "$ref": "#/components/schemas/common"
332
- },
333
- {
334
- "title": "loadCookie",
335
- "type": "object",
336
- "required": ["loadCookie"],
337
- "properties": {
338
- "loadCookie": {
339
- "$ref": "loadCookie_v3.schema.json#"
340
- }
341
- }
342
- }
343
- ]
344
- },
345
- {
346
- "allOf": [
347
- {
348
- "$ref": "#/components/schemas/common"
349
- },
350
- {
351
- "title": "wait",
352
- "type": "object",
353
- "required": ["wait"],
354
- "properties": {
355
- "wait": {
356
- "$ref": "wait_v3.schema.json#"
357
- }
358
- }
359
- }
360
- ]
361
- }
362
- ],
363
- "examples": [
364
- {
365
- "stepId": "uuid",
366
- "description": "Description of the step.",
367
- "checkLink": "https://www.google.com",
368
- "outputs": {
369
- "outputKey": "outputValue"
370
- },
371
- "variables": {
372
- "variableKey": "variableValue"
373
- }
374
- },
375
- {
376
- "checkLink": "https://www.google.com"
377
- },
378
- {
379
- "stepId": "path-only",
380
- "checkLink": "/search"
381
- },
382
- {
383
- "stepId": "status-code",
384
- "checkLink": {
385
- "url": "https://www.google.com",
386
- "statusCodes": [200]
387
- }
388
- },
389
- {
390
- "goTo": {
391
- "url": "https://www.google.com"
392
- }
393
- },
394
- {
395
- "goTo": "https://www.google.com"
396
- },
397
- {
398
- "wait": 5000
399
- },
400
- {
401
- "runCode": {
402
- "language": "python",
403
- "code": "print('Hello from Python')",
404
- "workingDirectory": ".",
405
- "exitCodes": [0],
406
- "stdio": "Hello from Python!",
407
- "path": "python-output.txt",
408
- "directory": "output",
409
- "maxVariation": 0.1,
410
- "overwrite": "aboveVariation"
411
- }
412
- },
413
- {
414
- "stopRecord": true
415
- },
416
- {
417
- "screenshot": true
418
- },
419
- {
420
- "screenshot": "image.png"
421
- },
422
- {
423
- "screenshot": "static/images/image.png"
424
- },
425
- {
426
- "screenshot": "/User/manny/projects/doc-detective/static/images/image.png"
427
- },
428
- {
429
- "screenshot": {
430
- "path": "image.png",
431
- "directory": "static/images",
432
- "maxVariation": 0.1,
433
- "overwrite": "aboveVariation",
434
- "crop": "#elementToScreenshot"
435
- }
436
- },
437
- {
438
- "screenshot": {
439
- "path": "image.png",
440
- "directory": "static/images",
441
- "maxVariation": 0.1,
442
- "overwrite": "aboveVariation"
443
- }
444
- },
445
- {
446
- "screenshot": {
447
- "path": "image.png",
448
- "directory": "static/images",
449
- "maxVariation": 0.1,
450
- "overwrite": "aboveVariation",
451
- "crop": {
452
- "selector": "#elementToScreenshot",
453
- "elementText": "Element text",
454
- "padding": {
455
- "top": 0,
456
- "right": 0,
457
- "bottom": 0,
458
- "left": 0
459
- }
460
- }
461
- }
462
- },
463
- {
464
- "record": true
465
- },
466
- {
467
- "record": "video.mp4"
468
- },
469
- {
470
- "record": "static/media/video.mp4"
471
- },
472
- {
473
- "record": "/User/manny/projects/doc-detective/static/media/video.mp4"
474
- },
475
- {
476
- "record": {
477
- "path": "video.mp4",
478
- "directory": "static/media",
479
- "overwrite": true
480
- }
481
- },
482
- {
483
- "loadVariables": "variables.env"
484
- },
485
- {
486
- "saveCookie": "session_token"
487
- },
488
- {
489
- "saveCookie": {
490
- "name": "auth_cookie",
491
- "path": "auth-session.txt",
492
- "directory": "./test-data",
493
- "overwrite": true
494
- }
495
- },
496
- {
497
- "loadCookie": "session_token"
498
- },
499
- {
500
- "loadCookie": {
501
- "name": "auth_cookie",
502
- "path": "auth-session.txt",
503
- "directory": "./test-data"
504
- }
505
- },
506
- {
507
- "find": {
508
- "$ref": "find_v3.schema.json#/examples/0"
509
- }
510
- },
511
- {
512
- "find": {
513
- "$ref": "find_v3.schema.json#/examples/1"
514
- }
515
- },
516
- {
517
- "find": {
518
- "$ref": "find_v3.schema.json#/examples/2"
519
- }
520
- },
521
- {
522
- "find": {
523
- "$ref": "find_v3.schema.json#/examples/3"
524
- }
525
- },
526
- {
527
- "find": {
528
- "$ref": "find_v3.schema.json#/examples/4"
529
- }
530
- },
531
- {
532
- "click": {
533
- "$ref": "click_v3.schema.json#/examples/0"
534
- }
535
- },
536
- {
537
- "click": {
538
- "$ref": "click_v3.schema.json#/examples/1"
539
- }
540
- },
541
- {
542
- "click": {
543
- "$ref": "click_v3.schema.json#/examples/2"
544
- }
545
- },
546
- {
547
- "click": {
548
- "$ref": "click_v3.schema.json#/examples/3"
549
- }
550
- },
551
- {
552
- "httpRequest": {
553
- "$ref": "httpRequest_v3.schema.json#/examples/0"
554
- }
555
- },
556
- {
557
- "httpRequest": {
558
- "$ref": "httpRequest_v3.schema.json#/examples/1"
559
- }
560
- },
561
- {
562
- "httpRequest": {
563
- "$ref": "httpRequest_v3.schema.json#/examples/2"
564
- }
565
- },
566
- {
567
- "httpRequest": {
568
- "$ref": "httpRequest_v3.schema.json#/examples/3"
569
- }
570
- },
571
- {
572
- "httpRequest": {
573
- "$ref": "httpRequest_v3.schema.json#/examples/4"
574
- }
575
- },
576
- {
577
- "httpRequest": {
578
- "$ref": "httpRequest_v3.schema.json#/examples/5"
579
- }
580
- },
581
- {
582
- "httpRequest": {
583
- "$ref": "httpRequest_v3.schema.json#/examples/6"
584
- }
585
- },
586
- {
587
- "httpRequest": {
588
- "$ref": "httpRequest_v3.schema.json#/examples/7"
589
- }
590
- },
591
- {
592
- "httpRequest": {
593
- "$ref": "httpRequest_v3.schema.json#/examples/8"
594
- }
595
- },
596
- {
597
- "httpRequest": {
598
- "$ref": "httpRequest_v3.schema.json#/examples/9"
599
- }
600
- },
601
- {
602
- "httpRequest": {
603
- "$ref": "httpRequest_v3.schema.json#/examples/10"
604
- }
605
- },
606
- {
607
- "httpRequest": {
608
- "$ref": "httpRequest_v3.schema.json#/examples/11"
609
- }
610
- },
611
- {
612
- "stepId": "breakpoint-example",
613
- "description": "Step with breakpoint enabled",
614
- "goTo": "https://www.example.com",
615
- "breakpoint": true
616
- },
617
- {
618
- "checkLink": "https://www.google.com",
619
- "breakpoint": false
620
- },
621
- {
622
- "dragAndDrop": {
623
- "source": {
624
- "selector": "#sourceElement"
625
- },
626
- "target": {
627
- "selector": "#targetElement"
628
- }
629
- }
630
- }
631
- ]
632
- }
@@ -1,9 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "stopRecord",
4
- "description": "Stop the current recording.",
5
- "type": ["boolean", "null"],
6
- "examples": [
7
- true
8
- ]
9
- }
@@ -1,20 +0,0 @@
1
- {
2
- "title": "stopRecording",
3
- "type": "object",
4
- "description": "Stop recording the current browser viewport.",
5
- "properties": {
6
- "action": {
7
- "type": "string",
8
- "const": "stopRecording"
9
- }
10
- },
11
- "additionalProperties": false,
12
- "required": [
13
- "action"
14
- ],
15
- "examples": [
16
- {
17
- "action": "stopRecording"
18
- }
19
- ]
20
- }
@@ -1,32 +0,0 @@
1
- {
2
- "title": "stopRecording",
3
- "type": "object",
4
- "description": "Stop the current recording.",
5
- "properties": {
6
- "id": {
7
- "type": "string",
8
- "description": "ID of the step."
9
- },
10
- "description": {
11
- "type": "string",
12
- "description": "Description of the step."
13
- },
14
- "action": {
15
- "type": "string",
16
- "const": "stopRecording",
17
- "description": "The action to perform."
18
- }
19
- },
20
- "dynamicDefaults": {
21
- "id": "uuid"
22
- },
23
- "required": [
24
- "action"
25
- ],
26
- "additionalProperties": false,
27
- "examples": [
28
- {
29
- "action": "stopRecording"
30
- }
31
- ]
32
- }