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.
- package/package.json +1 -1
- package/.c8rc.json +0 -8
- package/.mocharc.yml +0 -1
- package/icon.png +0 -0
- package/scripts/check-coverage-ratchet.cjs +0 -123
- package/scripts/createCjsWrapper.js +0 -25
- package/scripts/generateTypes.cjs +0 -54
- package/src/detectTests.ts +0 -660
- package/src/index.ts +0 -3
- package/src/schemas/build/checkLink_v2.schema.json +0 -81
- package/src/schemas/build/checkLink_v3.schema.json +0 -92
- package/src/schemas/build/click_v3.schema.json +0 -145
- package/src/schemas/build/config_v2.schema.json +0 -1079
- package/src/schemas/build/config_v3.schema.json +0 -696
- package/src/schemas/build/context_v2.schema.json +0 -135
- package/src/schemas/build/context_v3.schema.json +0 -229
- package/src/schemas/build/dragAndDrop_v3.schema.json +0 -189
- package/src/schemas/build/find_v2.schema.json +0 -168
- package/src/schemas/build/find_v3.schema.json +0 -214
- package/src/schemas/build/goTo_v2.schema.json +0 -63
- package/src/schemas/build/goTo_v3.schema.json +0 -257
- package/src/schemas/build/httpRequest_v2.schema.json +0 -321
- package/src/schemas/build/httpRequest_v3.schema.json +0 -439
- package/src/schemas/build/loadCookie_v3.schema.json +0 -138
- package/src/schemas/build/loadVariables_v3.schema.json +0 -10
- package/src/schemas/build/moveTo_v2.schema.json +0 -99
- package/src/schemas/build/openApi_v2.schema.json +0 -76
- package/src/schemas/build/openApi_v3.schema.json +0 -161
- package/src/schemas/build/record_v3.schema.json +0 -70
- package/src/schemas/build/report_v3.schema.json +0 -53
- package/src/schemas/build/resolvedTests_v3.schema.json +0 -238
- package/src/schemas/build/runCode_v2.schema.json +0 -201
- package/src/schemas/build/runCode_v3.schema.json +0 -138
- package/src/schemas/build/runShell_v2.schema.json +0 -189
- package/src/schemas/build/runShell_v3.schema.json +0 -156
- package/src/schemas/build/saveCookie_v3.schema.json +0 -149
- package/src/schemas/build/saveScreenshot_v2.schema.json +0 -150
- package/src/schemas/build/screenshot_v3.schema.json +0 -250
- package/src/schemas/build/setVariables_v2.schema.json +0 -39
- package/src/schemas/build/sourceIntegration_v3.schema.json +0 -51
- package/src/schemas/build/spec_v2.schema.json +0 -199
- package/src/schemas/build/spec_v3.schema.json +0 -213
- package/src/schemas/build/startRecording_v2.schema.json +0 -57
- package/src/schemas/build/step_v3.schema.json +0 -669
- package/src/schemas/build/stopRecord_v3.schema.json +0 -13
- package/src/schemas/build/stopRecording_v2.schema.json +0 -33
- package/src/schemas/build/test_v2.schema.json +0 -244
- package/src/schemas/build/test_v3.schema.json +0 -292
- package/src/schemas/build/typeKeys_v2.schema.json +0 -72
- package/src/schemas/build/type_v3.schema.json +0 -131
- package/src/schemas/build/wait_v2.schema.json +0 -42
- package/src/schemas/build/wait_v3.schema.json +0 -37
- package/src/schemas/dereferenceSchemas.cjs +0 -208
- package/src/schemas/index.ts +0 -6
- package/src/schemas/output_schemas/analytics_v1.schema.json +0 -585
- package/src/schemas/output_schemas/checkLink_v1.schema.json +0 -42
- package/src/schemas/output_schemas/checkLink_v2.schema.json +0 -80
- package/src/schemas/output_schemas/checkLink_v3.schema.json +0 -145
- package/src/schemas/output_schemas/click_v1.schema.json +0 -60
- package/src/schemas/output_schemas/click_v3.schema.json +0 -252
- package/src/schemas/output_schemas/config_v2.schema.json +0 -2628
- package/src/schemas/output_schemas/config_v3.schema.json +0 -16470
- package/src/schemas/output_schemas/context_v2.schema.json +0 -134
- package/src/schemas/output_schemas/context_v3.schema.json +0 -374
- package/src/schemas/output_schemas/dragAndDrop_v3.schema.json +0 -496
- package/src/schemas/output_schemas/endRecord_v3.schema.json +0 -12
- package/src/schemas/output_schemas/find_v1.schema.json +0 -171
- package/src/schemas/output_schemas/find_v2.schema.json +0 -184
- package/src/schemas/output_schemas/find_v3.schema.json +0 -1349
- package/src/schemas/output_schemas/goTo_v1.schema.json +0 -30
- package/src/schemas/output_schemas/goTo_v2.schema.json +0 -62
- package/src/schemas/output_schemas/goTo_v3.schema.json +0 -419
- package/src/schemas/output_schemas/httpRequest_v1.schema.json +0 -115
- package/src/schemas/output_schemas/httpRequest_v2.schema.json +0 -392
- package/src/schemas/output_schemas/httpRequest_v3.schema.json +0 -994
- package/src/schemas/output_schemas/loadCookie_v3.schema.json +0 -228
- package/src/schemas/output_schemas/loadVariables_v3.schema.json +0 -9
- package/src/schemas/output_schemas/matchText_v1.schema.json +0 -32
- package/src/schemas/output_schemas/moveMouse_v1.schema.json +0 -60
- package/src/schemas/output_schemas/moveTo_v2.schema.json +0 -98
- package/src/schemas/output_schemas/openApi_v2.schema.json +0 -75
- package/src/schemas/output_schemas/openApi_v3.schema.json +0 -162
- package/src/schemas/output_schemas/record_v3.schema.json +0 -101
- package/src/schemas/output_schemas/report_v3.schema.json +0 -16826
- package/src/schemas/output_schemas/resolvedTests_v3.schema.json +0 -33331
- package/src/schemas/output_schemas/runCode_v2.schema.json +0 -200
- package/src/schemas/output_schemas/runCode_v3.schema.json +0 -222
- package/src/schemas/output_schemas/runShell_v1.schema.json +0 -35
- package/src/schemas/output_schemas/runShell_v2.schema.json +0 -188
- package/src/schemas/output_schemas/runShell_v3.schema.json +0 -236
- package/src/schemas/output_schemas/saveCookie_v3.schema.json +0 -245
- package/src/schemas/output_schemas/saveScreenshot_v2.schema.json +0 -149
- package/src/schemas/output_schemas/screenshot_v1.schema.json +0 -48
- package/src/schemas/output_schemas/screenshot_v3.schema.json +0 -681
- package/src/schemas/output_schemas/scroll_v1.schema.json +0 -50
- package/src/schemas/output_schemas/setVariables_v2.schema.json +0 -38
- package/src/schemas/output_schemas/sourceIntegration_v3.schema.json +0 -50
- package/src/schemas/output_schemas/spec_v2.schema.json +0 -2301
- package/src/schemas/output_schemas/spec_v3.schema.json +0 -16630
- package/src/schemas/output_schemas/startRecording_v1.schema.json +0 -55
- package/src/schemas/output_schemas/startRecording_v2.schema.json +0 -56
- package/src/schemas/output_schemas/step_v3.schema.json +0 -7317
- package/src/schemas/output_schemas/stopRecord_v3.schema.json +0 -12
- package/src/schemas/output_schemas/stopRecording_v1.schema.json +0 -20
- package/src/schemas/output_schemas/stopRecording_v2.schema.json +0 -32
- package/src/schemas/output_schemas/test_v2.schema.json +0 -1903
- package/src/schemas/output_schemas/test_v3.schema.json +0 -15863
- package/src/schemas/output_schemas/typeKeys_v2.schema.json +0 -71
- package/src/schemas/output_schemas/type_v1.schema.json +0 -62
- package/src/schemas/output_schemas/type_v3.schema.json +0 -244
- package/src/schemas/output_schemas/wait_v1.schema.json +0 -42
- package/src/schemas/output_schemas/wait_v2.schema.json +0 -41
- package/src/schemas/output_schemas/wait_v3.schema.json +0 -41
- package/src/schemas/schemas.json +0 -121331
- package/src/schemas/src_schemas/analytics_v1.schema.json +0 -585
- package/src/schemas/src_schemas/checkLink_v1.schema.json +0 -42
- package/src/schemas/src_schemas/checkLink_v2.schema.json +0 -65
- package/src/schemas/src_schemas/checkLink_v3.schema.json +0 -91
- package/src/schemas/src_schemas/click_v1.schema.json +0 -60
- package/src/schemas/src_schemas/click_v3.schema.json +0 -144
- package/src/schemas/src_schemas/config_v2.schema.json +0 -929
- package/src/schemas/src_schemas/config_v3.schema.json +0 -633
- package/src/schemas/src_schemas/context_v2.schema.json +0 -108
- package/src/schemas/src_schemas/context_v3.schema.json +0 -202
- package/src/schemas/src_schemas/dragAndDrop_v3.schema.json +0 -185
- package/src/schemas/src_schemas/find_v1.schema.json +0 -137
- package/src/schemas/src_schemas/find_v2.schema.json +0 -155
- package/src/schemas/src_schemas/find_v3.schema.json +0 -210
- package/src/schemas/src_schemas/goTo_v1.schema.json +0 -30
- package/src/schemas/src_schemas/goTo_v2.schema.json +0 -58
- package/src/schemas/src_schemas/goTo_v3.schema.json +0 -232
- package/src/schemas/src_schemas/httpRequest_v1.schema.json +0 -115
- package/src/schemas/src_schemas/httpRequest_v2.schema.json +0 -284
- package/src/schemas/src_schemas/httpRequest_v3.schema.json +0 -402
- package/src/schemas/src_schemas/loadCookie_v3.schema.json +0 -113
- package/src/schemas/src_schemas/loadVariables_v3.schema.json +0 -9
- package/src/schemas/src_schemas/matchText_v1.schema.json +0 -32
- package/src/schemas/src_schemas/moveMouse_v1.schema.json +0 -60
- package/src/schemas/src_schemas/moveTo_v2.schema.json +0 -89
- package/src/schemas/src_schemas/openApi_v2.schema.json +0 -64
- package/src/schemas/src_schemas/openApi_v3.schema.json +0 -161
- package/src/schemas/src_schemas/record_v3.schema.json +0 -69
- package/src/schemas/src_schemas/report_v3.schema.json +0 -52
- package/src/schemas/src_schemas/resolvedTests_v3.schema.json +0 -237
- package/src/schemas/src_schemas/runCode_v2.schema.json +0 -181
- package/src/schemas/src_schemas/runCode_v3.schema.json +0 -137
- package/src/schemas/src_schemas/runShell_v1.schema.json +0 -35
- package/src/schemas/src_schemas/runShell_v2.schema.json +0 -166
- package/src/schemas/src_schemas/runShell_v3.schema.json +0 -155
- package/src/schemas/src_schemas/saveCookie_v3.schema.json +0 -124
- package/src/schemas/src_schemas/saveScreenshot_v2.schema.json +0 -129
- package/src/schemas/src_schemas/screenshot_v1.schema.json +0 -48
- package/src/schemas/src_schemas/screenshot_v3.schema.json +0 -249
- package/src/schemas/src_schemas/scroll_v1.schema.json +0 -50
- package/src/schemas/src_schemas/setVariables_v2.schema.json +0 -38
- package/src/schemas/src_schemas/sourceIntegration_v3.schema.json +0 -45
- package/src/schemas/src_schemas/spec_v2.schema.json +0 -175
- package/src/schemas/src_schemas/spec_v3.schema.json +0 -212
- package/src/schemas/src_schemas/startRecording_v1.schema.json +0 -55
- package/src/schemas/src_schemas/startRecording_v2.schema.json +0 -54
- package/src/schemas/src_schemas/step_v3.schema.json +0 -632
- package/src/schemas/src_schemas/stopRecord_v3.schema.json +0 -9
- package/src/schemas/src_schemas/stopRecording_v1.schema.json +0 -20
- package/src/schemas/src_schemas/stopRecording_v2.schema.json +0 -32
- package/src/schemas/src_schemas/test_v2.schema.json +0 -200
- package/src/schemas/src_schemas/test_v3.schema.json +0 -268
- package/src/schemas/src_schemas/typeKeys_v2.schema.json +0 -63
- package/src/schemas/src_schemas/type_v1.schema.json +0 -62
- package/src/schemas/src_schemas/type_v3.schema.json +0 -118
- package/src/schemas/src_schemas/wait_v1.schema.json +0 -42
- package/src/schemas/src_schemas/wait_v2.schema.json +0 -41
- package/src/schemas/src_schemas/wait_v3.schema.json +0 -36
- package/src/types/generated/checkLink_v3.ts +0 -29
- package/src/types/generated/click_v3.ts +0 -17
- package/src/types/generated/config_v3.ts +0 -405
- package/src/types/generated/context_v3.ts +0 -112
- package/src/types/generated/dragAndDrop_v3.ts +0 -39
- package/src/types/generated/endRecord_v3.ts +0 -10
- package/src/types/generated/find_v3.ts +0 -17
- package/src/types/generated/goTo_v3.ts +0 -48
- package/src/types/generated/httpRequest_v3.ts +0 -17
- package/src/types/generated/loadCookie_v3.ts +0 -17
- package/src/types/generated/loadVariables_v3.ts +0 -10
- package/src/types/generated/openApi_v3.ts +0 -64
- package/src/types/generated/record_v3.ts +0 -34
- package/src/types/generated/report_v3.ts +0 -183
- package/src/types/generated/resolvedTests_v3.ts +0 -585
- package/src/types/generated/runCode_v3.ts +0 -59
- package/src/types/generated/runShell_v3.ts +0 -58
- package/src/types/generated/saveCookie_v3.ts +0 -17
- package/src/types/generated/screenshot_v3.ts +0 -76
- package/src/types/generated/sourceIntegration_v3.ts +0 -31
- package/src/types/generated/spec_v3.ts +0 -166
- package/src/types/generated/step_v3.ts +0 -1288
- package/src/types/generated/stopRecord_v3.ts +0 -10
- package/src/types/generated/test_v3.ts +0 -3048
- package/src/types/generated/type_v3.ts +0 -56
- package/src/types/generated/wait_v3.ts +0 -13
- package/src/validate.ts +0 -627
- package/tsconfig.json +0 -22
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "specification",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"properties": {
|
|
5
|
-
"id": {
|
|
6
|
-
"type": "string",
|
|
7
|
-
"description": "Unique identifier for the test specification."
|
|
8
|
-
},
|
|
9
|
-
"description": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"description": "Description of the test specification."
|
|
12
|
-
},
|
|
13
|
-
"file": {
|
|
14
|
-
"type": "string",
|
|
15
|
-
"description": "Path to the file that the specification is associated with."
|
|
16
|
-
},
|
|
17
|
-
"contexts": {
|
|
18
|
-
"type": "array",
|
|
19
|
-
"description": "Application/platform sets to run tests in. Overrides `contexts` defined at the config-level.",
|
|
20
|
-
"items": {
|
|
21
|
-
"oneOf": [
|
|
22
|
-
{
|
|
23
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/context_v2.schema.json#"
|
|
24
|
-
}
|
|
25
|
-
]
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"openApi": {
|
|
29
|
-
"type": "array",
|
|
30
|
-
"items": {
|
|
31
|
-
"allOf": [
|
|
32
|
-
{
|
|
33
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/openApi_v2.schema.json#"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"type": "object",
|
|
37
|
-
"properties": {
|
|
38
|
-
"operationId": {
|
|
39
|
-
"type": "null",
|
|
40
|
-
"$commment": "Only allow operationId at the step level."
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"required": [
|
|
44
|
-
"name",
|
|
45
|
-
"descriptionPath"
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"tests": {
|
|
52
|
-
"description": "[Tests](test) to perform.",
|
|
53
|
-
"type": "array",
|
|
54
|
-
"minItems": 1,
|
|
55
|
-
"items": {
|
|
56
|
-
"oneOf": [
|
|
57
|
-
{
|
|
58
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/test_v2.schema.json#"
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"required": [
|
|
65
|
-
"tests"
|
|
66
|
-
],
|
|
67
|
-
"examples": [
|
|
68
|
-
{
|
|
69
|
-
"tests": [
|
|
70
|
-
{
|
|
71
|
-
"steps": [
|
|
72
|
-
{
|
|
73
|
-
"action": "checkLink",
|
|
74
|
-
"url": "https://www.duckduckgo.com"
|
|
75
|
-
}
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"id": "Do all the things! - Spec",
|
|
82
|
-
"contexts": [
|
|
83
|
-
{
|
|
84
|
-
"app": {
|
|
85
|
-
"name": "chrome",
|
|
86
|
-
"path": "/usr/bin/firefox"
|
|
87
|
-
},
|
|
88
|
-
"platforms": [
|
|
89
|
-
"windows",
|
|
90
|
-
"mac"
|
|
91
|
-
]
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
|
-
"tests": [
|
|
95
|
-
{
|
|
96
|
-
"id": "Do all the things! - Test",
|
|
97
|
-
"description": "This test includes nearly every property across all actions.",
|
|
98
|
-
"contexts": [
|
|
99
|
-
{
|
|
100
|
-
"app": {
|
|
101
|
-
"name": "firefox",
|
|
102
|
-
"path": "/usr/bin/firefox"
|
|
103
|
-
},
|
|
104
|
-
"platforms": [
|
|
105
|
-
"linux"
|
|
106
|
-
]
|
|
107
|
-
}
|
|
108
|
-
],
|
|
109
|
-
"steps": [
|
|
110
|
-
{
|
|
111
|
-
"action": "setVariables",
|
|
112
|
-
"path": ".env"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"action": "runShell",
|
|
116
|
-
"command": "echo",
|
|
117
|
-
"args": [
|
|
118
|
-
"$USER"
|
|
119
|
-
]
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"action": "checkLink",
|
|
123
|
-
"url": "https://www.duckduckgo.com"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"action": "httpRequest",
|
|
127
|
-
"url": "https://reqres.in/api/users",
|
|
128
|
-
"method": "post",
|
|
129
|
-
"requestData": {
|
|
130
|
-
"name": "morpheus",
|
|
131
|
-
"job": "leader"
|
|
132
|
-
},
|
|
133
|
-
"responseData": {
|
|
134
|
-
"name": "morpheus",
|
|
135
|
-
"job": "leader"
|
|
136
|
-
},
|
|
137
|
-
"statusCodes": [
|
|
138
|
-
200,
|
|
139
|
-
201
|
|
140
|
-
]
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"action": "goTo",
|
|
144
|
-
"url": "https://www.duckduckgo.com"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"action": "find",
|
|
148
|
-
"selector": "[title=Search]",
|
|
149
|
-
"timeout": 10000,
|
|
150
|
-
"matchText": "Search",
|
|
151
|
-
"moveTo": true,
|
|
152
|
-
"click": true,
|
|
153
|
-
"typeKeys": {
|
|
154
|
-
"keys": [
|
|
155
|
-
"shorthair cat"
|
|
156
|
-
]
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"action": "typeKeys",
|
|
161
|
-
"keys": [
|
|
162
|
-
"$ENTER$"
|
|
163
|
-
]
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"action": "saveScreenshot"
|
|
167
|
-
}
|
|
168
|
-
]
|
|
169
|
-
}
|
|
170
|
-
]
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"id": "Make a request from an OpenAPI definition",
|
|
174
|
-
"openApi": [
|
|
175
|
-
{
|
|
176
|
-
"name": "Acme",
|
|
177
|
-
"descriptionPath": "https://www.acme.com/openapi.json",
|
|
178
|
-
"server": "https://api.acme.com"
|
|
179
|
-
}
|
|
180
|
-
],
|
|
181
|
-
"tests": [
|
|
182
|
-
{
|
|
183
|
-
"steps": [
|
|
184
|
-
{
|
|
185
|
-
"action": "httpRequest",
|
|
186
|
-
"openApi": {
|
|
187
|
-
"operationId": "getUserById"
|
|
188
|
-
},
|
|
189
|
-
"requestParams": {
|
|
190
|
-
"id": 123
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
]
|
|
194
|
-
}
|
|
195
|
-
]
|
|
196
|
-
}
|
|
197
|
-
],
|
|
198
|
-
"$id": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/src_schemas/spec_v2.schema.json"
|
|
199
|
-
}
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "specification",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"dynamicDefaults": {
|
|
6
|
-
"specId": "uuid"
|
|
7
|
-
},
|
|
8
|
-
"properties": {
|
|
9
|
-
"$schema": {
|
|
10
|
-
"description": "JSON Schema for this object.",
|
|
11
|
-
"type": "string",
|
|
12
|
-
"enum": [
|
|
13
|
-
"https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/spec_v3.schema.json"
|
|
14
|
-
]
|
|
15
|
-
},
|
|
16
|
-
"specId": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"description": "Unique identifier for the test specification."
|
|
19
|
-
},
|
|
20
|
-
"description": {
|
|
21
|
-
"type": "string",
|
|
22
|
-
"description": "Description of the test specification."
|
|
23
|
-
},
|
|
24
|
-
"specPath": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"description": "Path to the test specification."
|
|
27
|
-
},
|
|
28
|
-
"contentPath": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"description": "Path to the content that the specification is associated with."
|
|
31
|
-
},
|
|
32
|
-
"runOn": {
|
|
33
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/test_v3.schema.json#/properties/runOn"
|
|
34
|
-
},
|
|
35
|
-
"openApi": {
|
|
36
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/test_v3.schema.json#/properties/openApi"
|
|
37
|
-
},
|
|
38
|
-
"tests": {
|
|
39
|
-
"description": "[Tests](test) to perform.",
|
|
40
|
-
"type": "array",
|
|
41
|
-
"minItems": 1,
|
|
42
|
-
"items": {
|
|
43
|
-
"anyOf": [
|
|
44
|
-
{
|
|
45
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/test_v3.schema.json#"
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"required": [
|
|
52
|
-
"tests"
|
|
53
|
-
],
|
|
54
|
-
"examples": [
|
|
55
|
-
{
|
|
56
|
-
"tests": [
|
|
57
|
-
{
|
|
58
|
-
"steps": [
|
|
59
|
-
{
|
|
60
|
-
"checkLink": {
|
|
61
|
-
"url": "https://www.duckduckgo.com"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"specId": "Do all the things! - Spec",
|
|
70
|
-
"runOn": [
|
|
71
|
-
{
|
|
72
|
-
"platforms": [
|
|
73
|
-
"windows",
|
|
74
|
-
"mac"
|
|
75
|
-
],
|
|
76
|
-
"browsers": {
|
|
77
|
-
"name": "firefox",
|
|
78
|
-
"window": {},
|
|
79
|
-
"viewport": {}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
"tests": [
|
|
84
|
-
{
|
|
85
|
-
"testId": "Do all the things! - Test",
|
|
86
|
-
"description": "This test includes nearly every property across all actions.",
|
|
87
|
-
"runOn": [
|
|
88
|
-
{
|
|
89
|
-
"platforms": "linux",
|
|
90
|
-
"browsers": "firefox"
|
|
91
|
-
}
|
|
92
|
-
],
|
|
93
|
-
"steps": [
|
|
94
|
-
{
|
|
95
|
-
"loadVariables": ".env"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"runShell": {
|
|
99
|
-
"command": "echo",
|
|
100
|
-
"args": [
|
|
101
|
-
"$USER"
|
|
102
|
-
],
|
|
103
|
-
"maxVariation": 0,
|
|
104
|
-
"overwrite": "aboveVariation"
|
|
105
|
-
},
|
|
106
|
-
"variables": {}
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"checkLink": {
|
|
110
|
-
"url": "https://www.duckduckgo.com"
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"httpRequest": {
|
|
115
|
-
"method": "post",
|
|
116
|
-
"url": "https://reqres.in/api/users",
|
|
117
|
-
"request": {
|
|
118
|
-
"body": {
|
|
119
|
-
"name": "morpheus",
|
|
120
|
-
"job": "leader"
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
"response": {
|
|
124
|
-
"body": {
|
|
125
|
-
"name": "morpheus",
|
|
126
|
-
"job": "leader"
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
"statusCodes": [
|
|
130
|
-
200,
|
|
131
|
-
201
|
|
132
|
-
],
|
|
133
|
-
"maxVariation": 0,
|
|
134
|
-
"overwrite": "aboveVariation"
|
|
135
|
-
},
|
|
136
|
-
"variables": {}
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"goTo": {
|
|
140
|
-
"url": "https://www.duckduckgo.com"
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"find": {
|
|
145
|
-
"selector": "[title=Search]",
|
|
146
|
-
"elementText": "Search",
|
|
147
|
-
"timeout": 10000,
|
|
148
|
-
"moveTo": true,
|
|
149
|
-
"click": true,
|
|
150
|
-
"type": {
|
|
151
|
-
"keys": [
|
|
152
|
-
"shorthair cat"
|
|
153
|
-
]
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
"variables": {}
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"type": {
|
|
160
|
-
"keys": [
|
|
161
|
-
"$ENTER$"
|
|
162
|
-
]
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"screenshot": {
|
|
167
|
-
"maxVariation": 0,
|
|
168
|
-
"overwrite": "aboveVariation"
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
],
|
|
172
|
-
"detectSteps": true
|
|
173
|
-
}
|
|
174
|
-
]
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"specId": "Make a request from an OpenAPI definition",
|
|
178
|
-
"openApi": [
|
|
179
|
-
{
|
|
180
|
-
"descriptionPath": "https://www.acme.com/openapi.json",
|
|
181
|
-
"server": "https://api.acme.com",
|
|
182
|
-
"name": "Acme"
|
|
183
|
-
}
|
|
184
|
-
],
|
|
185
|
-
"tests": [
|
|
186
|
-
{
|
|
187
|
-
"steps": [
|
|
188
|
-
{
|
|
189
|
-
"httpRequest": {
|
|
190
|
-
"openApi": {
|
|
191
|
-
"operationId": "getUserById",
|
|
192
|
-
"validateAgainstSchema": "both",
|
|
193
|
-
"useExample": "none",
|
|
194
|
-
"exampleKey": ""
|
|
195
|
-
},
|
|
196
|
-
"request": {
|
|
197
|
-
"parameters": {
|
|
198
|
-
"id": 123
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
"response": {},
|
|
202
|
-
"maxVariation": 0,
|
|
203
|
-
"overwrite": "aboveVariation"
|
|
204
|
-
},
|
|
205
|
-
"variables": {}
|
|
206
|
-
}
|
|
207
|
-
]
|
|
208
|
-
}
|
|
209
|
-
]
|
|
210
|
-
}
|
|
211
|
-
],
|
|
212
|
-
"$id": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/src_schemas/spec_v3.schema.json"
|
|
213
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "startRecording",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "Start recording the current browser viewport. Must be followed by a `stopRecording` action. Only runs when the context `app` is `chrome` and `headless` is `false`. Supported extensions: [ '.mp4', '.webm', '.gif' ]",
|
|
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": "startRecording",
|
|
17
|
-
"description": "The action to perform."
|
|
18
|
-
},
|
|
19
|
-
"path": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"description": "File path of the recording. Supports the `.mp4`, `.webm`, and `.gif` extensions. If not specified, the file name is the ID of the step, and the extension is `.mp4`.",
|
|
22
|
-
"pattern": "([A-Za-z0-9_-]*\\.(mp4|webm|gif)$|\\$[A-Za-z0-9_]+)"
|
|
23
|
-
},
|
|
24
|
-
"directory": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"description": "Directory of the file. Attempts to create the directory if it doesn't exist."
|
|
27
|
-
},
|
|
28
|
-
"overwrite": {
|
|
29
|
-
"type": "boolean",
|
|
30
|
-
"description": "If `true`, overwrites the existing file at `path` if it exists.",
|
|
31
|
-
"default": false
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"dynamicDefaults": {
|
|
35
|
-
"id": "uuid"
|
|
36
|
-
},
|
|
37
|
-
"required": [
|
|
38
|
-
"action"
|
|
39
|
-
],
|
|
40
|
-
"additionalProperties": false,
|
|
41
|
-
"examples": [
|
|
42
|
-
{
|
|
43
|
-
"action": "startRecording"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"action": "startRecording",
|
|
47
|
-
"path": "results.mp4"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"action": "startRecording",
|
|
51
|
-
"path": "results.mp4",
|
|
52
|
-
"directory": "static/media",
|
|
53
|
-
"overwrite": true
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
"$id": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/src_schemas/startRecording_v2.schema.json"
|
|
57
|
-
}
|