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,228 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "loadCookie",
|
|
4
|
-
"description": "Load a specific cookie from a file or environment variable into the browser.",
|
|
5
|
-
"anyOf": [
|
|
6
|
-
{
|
|
7
|
-
"type": "string",
|
|
8
|
-
"title": "Cookie name or file path",
|
|
9
|
-
"description": "Name of the specific cookie to load from default location, or file path to cookie file.",
|
|
10
|
-
"pattern": "^[A-Za-z0-9_./\\-]+$",
|
|
11
|
-
"transform": [
|
|
12
|
-
"trim"
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"type": "object",
|
|
17
|
-
"additionalProperties": false,
|
|
18
|
-
"required": [
|
|
19
|
-
"name"
|
|
20
|
-
],
|
|
21
|
-
"anyOf": [
|
|
22
|
-
{
|
|
23
|
-
"required": [
|
|
24
|
-
"path"
|
|
25
|
-
],
|
|
26
|
-
"not": {
|
|
27
|
-
"required": [
|
|
28
|
-
"variable"
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"required": [
|
|
34
|
-
"variable"
|
|
35
|
-
],
|
|
36
|
-
"not": {
|
|
37
|
-
"anyOf": [
|
|
38
|
-
{
|
|
39
|
-
"required": [
|
|
40
|
-
"path"
|
|
41
|
-
]
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"required": [
|
|
45
|
-
"directory"
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"properties": {
|
|
53
|
-
"$schema": {
|
|
54
|
-
"description": "Optional self-describing schema URI for linters",
|
|
55
|
-
"type": "string",
|
|
56
|
-
"format": "uri-reference"
|
|
57
|
-
},
|
|
58
|
-
"name": {
|
|
59
|
-
"type": "string",
|
|
60
|
-
"title": "Cookie name",
|
|
61
|
-
"description": "Name of the specific cookie to load.",
|
|
62
|
-
"pattern": "^[A-Za-z0-9_.-]+$",
|
|
63
|
-
"transform": [
|
|
64
|
-
"trim"
|
|
65
|
-
]
|
|
66
|
-
},
|
|
67
|
-
"variable": {
|
|
68
|
-
"type": "string",
|
|
69
|
-
"title": "Environment variable name",
|
|
70
|
-
"description": "Environment variable name containing the cookie as JSON string.",
|
|
71
|
-
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
|
72
|
-
"transform": [
|
|
73
|
-
"trim"
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
"path": {
|
|
77
|
-
"type": "string",
|
|
78
|
-
"title": "Cookie file path",
|
|
79
|
-
"description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
|
|
80
|
-
"transform": [
|
|
81
|
-
"trim"
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
"directory": {
|
|
85
|
-
"type": "string",
|
|
86
|
-
"title": "Directory path",
|
|
87
|
-
"description": "Directory containing the cookie file.",
|
|
88
|
-
"transform": [
|
|
89
|
-
"trim"
|
|
90
|
-
]
|
|
91
|
-
},
|
|
92
|
-
"domain": {
|
|
93
|
-
"type": "string",
|
|
94
|
-
"title": "Cookie domain",
|
|
95
|
-
"description": "Specific domain to filter the cookie by when loading from multi-cookie file (optional).",
|
|
96
|
-
"transform": [
|
|
97
|
-
"trim"
|
|
98
|
-
]
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
"title": "Load cookie (detailed)"
|
|
102
|
-
}
|
|
103
|
-
],
|
|
104
|
-
"components": {
|
|
105
|
-
"schemas": {
|
|
106
|
-
"string": {
|
|
107
|
-
"type": "string",
|
|
108
|
-
"title": "Cookie name or file path",
|
|
109
|
-
"description": "Name of the specific cookie to load from default location, or file path to cookie file.",
|
|
110
|
-
"pattern": "^[A-Za-z0-9_./\\-]+$",
|
|
111
|
-
"transform": [
|
|
112
|
-
"trim"
|
|
113
|
-
]
|
|
114
|
-
},
|
|
115
|
-
"object": {
|
|
116
|
-
"type": "object",
|
|
117
|
-
"additionalProperties": false,
|
|
118
|
-
"required": [
|
|
119
|
-
"name"
|
|
120
|
-
],
|
|
121
|
-
"anyOf": [
|
|
122
|
-
{
|
|
123
|
-
"required": [
|
|
124
|
-
"path"
|
|
125
|
-
],
|
|
126
|
-
"not": {
|
|
127
|
-
"required": [
|
|
128
|
-
"variable"
|
|
129
|
-
]
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"required": [
|
|
134
|
-
"variable"
|
|
135
|
-
],
|
|
136
|
-
"not": {
|
|
137
|
-
"anyOf": [
|
|
138
|
-
{
|
|
139
|
-
"required": [
|
|
140
|
-
"path"
|
|
141
|
-
]
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"required": [
|
|
145
|
-
"directory"
|
|
146
|
-
]
|
|
147
|
-
}
|
|
148
|
-
]
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
],
|
|
152
|
-
"properties": {
|
|
153
|
-
"$schema": {
|
|
154
|
-
"description": "Optional self-describing schema URI for linters",
|
|
155
|
-
"type": "string",
|
|
156
|
-
"format": "uri-reference"
|
|
157
|
-
},
|
|
158
|
-
"name": {
|
|
159
|
-
"type": "string",
|
|
160
|
-
"title": "Cookie name",
|
|
161
|
-
"description": "Name of the specific cookie to load.",
|
|
162
|
-
"pattern": "^[A-Za-z0-9_.-]+$",
|
|
163
|
-
"transform": [
|
|
164
|
-
"trim"
|
|
165
|
-
]
|
|
166
|
-
},
|
|
167
|
-
"variable": {
|
|
168
|
-
"type": "string",
|
|
169
|
-
"title": "Environment variable name",
|
|
170
|
-
"description": "Environment variable name containing the cookie as JSON string.",
|
|
171
|
-
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
|
172
|
-
"transform": [
|
|
173
|
-
"trim"
|
|
174
|
-
]
|
|
175
|
-
},
|
|
176
|
-
"path": {
|
|
177
|
-
"type": "string",
|
|
178
|
-
"title": "Cookie file path",
|
|
179
|
-
"description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
|
|
180
|
-
"transform": [
|
|
181
|
-
"trim"
|
|
182
|
-
]
|
|
183
|
-
},
|
|
184
|
-
"directory": {
|
|
185
|
-
"type": "string",
|
|
186
|
-
"title": "Directory path",
|
|
187
|
-
"description": "Directory containing the cookie file.",
|
|
188
|
-
"transform": [
|
|
189
|
-
"trim"
|
|
190
|
-
]
|
|
191
|
-
},
|
|
192
|
-
"domain": {
|
|
193
|
-
"type": "string",
|
|
194
|
-
"title": "Cookie domain",
|
|
195
|
-
"description": "Specific domain to filter the cookie by when loading from multi-cookie file (optional).",
|
|
196
|
-
"transform": [
|
|
197
|
-
"trim"
|
|
198
|
-
]
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
"title": "Load cookie (detailed)"
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
"examples": [
|
|
206
|
-
"session_token",
|
|
207
|
-
"./test-data/auth-session.txt",
|
|
208
|
-
"test_env_cookie",
|
|
209
|
-
{
|
|
210
|
-
"name": "auth_cookie",
|
|
211
|
-
"variable": "AUTH_COOKIE"
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"name": "test_cookie",
|
|
215
|
-
"path": "test-cookie.txt"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"name": "session_token",
|
|
219
|
-
"path": "session-token.txt",
|
|
220
|
-
"directory": "./test-data"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"name": "user_session",
|
|
224
|
-
"path": "saved-cookies.txt",
|
|
225
|
-
"domain": "app.example.com"
|
|
226
|
-
}
|
|
227
|
-
]
|
|
228
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "matchText",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "Check if an element displays the expected text.",
|
|
5
|
-
"properties": {
|
|
6
|
-
"action": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"const": "matchText"
|
|
9
|
-
},
|
|
10
|
-
"css": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "CSS selector that uniquely identified the element."
|
|
13
|
-
},
|
|
14
|
-
"text": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"description": "Text that the element should display."
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"required": [
|
|
20
|
-
"action",
|
|
21
|
-
"css",
|
|
22
|
-
"text"
|
|
23
|
-
],
|
|
24
|
-
"additionalProperties": false,
|
|
25
|
-
"examples": [
|
|
26
|
-
{
|
|
27
|
-
"action": "matchText",
|
|
28
|
-
"css": "#gbqfbb",
|
|
29
|
-
"text": "I'm Feeling Lucky"
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "moveMouse",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "Move the mouse to an element specified by a CSS selector. Only runs if a test is being recorded.",
|
|
5
|
-
"properties": {
|
|
6
|
-
"action": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"const": "moveMouse"
|
|
9
|
-
},
|
|
10
|
-
"css": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "CSS selector that uniquely identified the element."
|
|
13
|
-
},
|
|
14
|
-
"alignH": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"description": "Horizontal alignment of the mouse to the element.",
|
|
17
|
-
"enum": [
|
|
18
|
-
"left",
|
|
19
|
-
"center",
|
|
20
|
-
"right"
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
"alignV": {
|
|
24
|
-
"type": "string",
|
|
25
|
-
"description": "Vertical alignment of the mouse to the element.",
|
|
26
|
-
"enum": [
|
|
27
|
-
"top",
|
|
28
|
-
"center",
|
|
29
|
-
"bottom"
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
"offsetX": {
|
|
33
|
-
"type": "integer",
|
|
34
|
-
"description": "Number of pixels to offset the mouse along the X axis, relative to the element center. Positive values offset to the right. Negative values offset to the left."
|
|
35
|
-
},
|
|
36
|
-
"offsetY": {
|
|
37
|
-
"type": "integer",
|
|
38
|
-
"description": "Number of pixels to offset the mouse along the Y axis, relative to the element center. Positive values offset to the top. Negative values offset to the bottom."
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"required": [
|
|
42
|
-
"action",
|
|
43
|
-
"css"
|
|
44
|
-
],
|
|
45
|
-
"additionalProperties": false,
|
|
46
|
-
"examples": [
|
|
47
|
-
{
|
|
48
|
-
"action": "moveMouse",
|
|
49
|
-
"css": "[title=Search]"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"action": "moveMouse",
|
|
53
|
-
"css": "[title=Search]",
|
|
54
|
-
"alignH": "center",
|
|
55
|
-
"alignV": "center",
|
|
56
|
-
"offsetX": 10,
|
|
57
|
-
"offsetY": 10
|
|
58
|
-
}
|
|
59
|
-
]
|
|
60
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "moveTo",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "Move the mouse to a specific location.",
|
|
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": "moveTo",
|
|
17
|
-
"description": "The action to perform."
|
|
18
|
-
},
|
|
19
|
-
"selector": {
|
|
20
|
-
"description": "Selector for the element to move to.",
|
|
21
|
-
"type": "string"
|
|
22
|
-
},
|
|
23
|
-
"alignment": {
|
|
24
|
-
"description": "Alignment of the element to move to.",
|
|
25
|
-
"type": "string",
|
|
26
|
-
"enum": [
|
|
27
|
-
"top",
|
|
28
|
-
"bottom",
|
|
29
|
-
"left",
|
|
30
|
-
"right",
|
|
31
|
-
"center"
|
|
32
|
-
],
|
|
33
|
-
"default": "center"
|
|
34
|
-
},
|
|
35
|
-
"offset": {
|
|
36
|
-
"description": "Offset from the element to move to.",
|
|
37
|
-
"type": "object",
|
|
38
|
-
"properties": {
|
|
39
|
-
"x": {
|
|
40
|
-
"description": "Offset from the element to move to in x direction. Negative values move left, positive values move right.",
|
|
41
|
-
"type": "number",
|
|
42
|
-
"default": 0
|
|
43
|
-
},
|
|
44
|
-
"y": {
|
|
45
|
-
"description": "Offset from the element to move to in y direction. Negative values move up, positive values move down.",
|
|
46
|
-
"type": "number",
|
|
47
|
-
"default": 0
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
"default": {},
|
|
51
|
-
"additionalProperties": false
|
|
52
|
-
},
|
|
53
|
-
"duration": {
|
|
54
|
-
"description": "Duration of the move in milliseconds.",
|
|
55
|
-
"type": "number",
|
|
56
|
-
"minimum": 0,
|
|
57
|
-
"default": 500
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"dynamicDefaults": {
|
|
61
|
-
"id": "uuid"
|
|
62
|
-
},
|
|
63
|
-
"required": [
|
|
64
|
-
"action",
|
|
65
|
-
"selector"
|
|
66
|
-
],
|
|
67
|
-
"additionalProperties": false,
|
|
68
|
-
"examples": [
|
|
69
|
-
{
|
|
70
|
-
"action": "moveTo",
|
|
71
|
-
"selector": "#searchInput"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"action": "moveTo",
|
|
75
|
-
"selector": "#searchInput",
|
|
76
|
-
"alignment": "left"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"action": "moveTo",
|
|
80
|
-
"selector": "#searchInput",
|
|
81
|
-
"alignment": "left",
|
|
82
|
-
"offset": {
|
|
83
|
-
"x": 10,
|
|
84
|
-
"y": 10
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"action": "moveTo",
|
|
89
|
-
"selector": "#searchInput",
|
|
90
|
-
"alignment": "left",
|
|
91
|
-
"offset": {
|
|
92
|
-
"x": 10,
|
|
93
|
-
"y": 10
|
|
94
|
-
},
|
|
95
|
-
"duration": 1000
|
|
96
|
-
}
|
|
97
|
-
]
|
|
98
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "1.0.0",
|
|
3
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
-
"title": "openApi",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"description": "OpenAPI definition and configuration.",
|
|
7
|
-
"additionalProperties": false,
|
|
8
|
-
"properties": {
|
|
9
|
-
"name": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"description": "Name of the OpenAPI definition, as defined in your configuration."
|
|
12
|
-
},
|
|
13
|
-
"descriptionPath": {
|
|
14
|
-
"type": "string",
|
|
15
|
-
"description": "URL or local path to the OpenAPI definition."
|
|
16
|
-
},
|
|
17
|
-
"operationId": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"description": "ID of the operation to use for the request."
|
|
20
|
-
},
|
|
21
|
-
"server": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"description": "Server to use for example requests. Only valid if `useExample` is `request` or `both`. If not specified but an example is used for the request, uses the first server defined in the OpenAPI definition."
|
|
24
|
-
},
|
|
25
|
-
"validateAgainstSchema": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"description": "Validates the request and/or response against the schema in the OpenAPI definition. If the request or response doesn't match the schema, the step fails.",
|
|
28
|
-
"enum": [
|
|
29
|
-
"request",
|
|
30
|
-
"response",
|
|
31
|
-
"both",
|
|
32
|
-
"none"
|
|
33
|
-
],
|
|
34
|
-
"default": "both"
|
|
35
|
-
},
|
|
36
|
-
"mockResponse": {
|
|
37
|
-
"type": "boolean",
|
|
38
|
-
"description": "If `true`, doesn't make the HTTP request, but instead uses the response example or schema from the OpenAPI definition as the response data. Useful for creating tests when an API isn't fully implemented yet. If `statusCode` isn't specified, uses the first defined response code."
|
|
39
|
-
},
|
|
40
|
-
"statusCode": {
|
|
41
|
-
"type": "integer",
|
|
42
|
-
"description": "Response code to use for validation, examples, and status code checking. If the response code doesn't match, the step fails. `statusCodes` overrides this value when specified."
|
|
43
|
-
},
|
|
44
|
-
"useExample": {
|
|
45
|
-
"type": [
|
|
46
|
-
"string"
|
|
47
|
-
],
|
|
48
|
-
"description": "Uses the example from the OpenAPI definition as the request and response data. If the request or response has multiple examples, specify `exampleKey`. If `statusCode` isn't specified, uses the first defined response code. `requestData`, `requestParams`, and `requestHeaders` override portions of request examples when specified. `responseData` overrides portions of response examples when specified.",
|
|
49
|
-
"enum": [
|
|
50
|
-
"request",
|
|
51
|
-
"response",
|
|
52
|
-
"both",
|
|
53
|
-
"none"
|
|
54
|
-
],
|
|
55
|
-
"default": "none"
|
|
56
|
-
},
|
|
57
|
-
"exampleKey": {
|
|
58
|
-
"type": "string",
|
|
59
|
-
"description": "Key of the example to use from the `examples` property in the OpenAPI definition. If an `examples` key isn't specified or isn't available for a given parameter or object, the `example` property value is used.",
|
|
60
|
-
"default": ""
|
|
61
|
-
},
|
|
62
|
-
"requestHeaders": {
|
|
63
|
-
"type": "object",
|
|
64
|
-
"description": "Request headers to add to the request. If specified in both a config and a step, the step value overrides the config value.",
|
|
65
|
-
"additionalProperties": {
|
|
66
|
-
"type": "string"
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
"examples": [
|
|
71
|
-
{
|
|
72
|
-
"descriptionPath": "https://petstore.swagger.io/v2/swagger.json"
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
}
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "1.0.0",
|
|
3
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
-
"title": "openApi",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"description": "OpenAPI description and configuration.",
|
|
7
|
-
"additionalProperties": false,
|
|
8
|
-
"anyOf": [
|
|
9
|
-
{
|
|
10
|
-
"required": [
|
|
11
|
-
"descriptionPath"
|
|
12
|
-
]
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"required": [
|
|
16
|
-
"operationId"
|
|
17
|
-
]
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"properties": {
|
|
21
|
-
"name": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"description": "Name of the OpenAPI description, as defined in your configuration."
|
|
24
|
-
},
|
|
25
|
-
"descriptionPath": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"description": "URL or local path to the OpenAPI description."
|
|
28
|
-
},
|
|
29
|
-
"definition": {
|
|
30
|
-
"type": "object",
|
|
31
|
-
"readOnly": true,
|
|
32
|
-
"description": "OpenAPI definition object loaded from the `descriptionPath`. This is a resolved version of the OpenAPI description and should not be user-defined.",
|
|
33
|
-
"additionalProperties": true,
|
|
34
|
-
"title": "OpenAPI definition"
|
|
35
|
-
},
|
|
36
|
-
"operationId": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"description": "ID of the operation to use for the request."
|
|
39
|
-
},
|
|
40
|
-
"server": {
|
|
41
|
-
"type": "string",
|
|
42
|
-
"description": "Server to use for example requests. Only valid if `useExample` is `request` or `both`. If not specified but an example is used for the request, uses the first server defined in the OpenAPI description."
|
|
43
|
-
},
|
|
44
|
-
"validateAgainstSchema": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"description": "Validates the request and/or response against the schema in the OpenAPI description. If the request or response doesn't match the schema, the step fails.",
|
|
47
|
-
"enum": [
|
|
48
|
-
"request",
|
|
49
|
-
"response",
|
|
50
|
-
"both",
|
|
51
|
-
"none"
|
|
52
|
-
],
|
|
53
|
-
"default": "both"
|
|
54
|
-
},
|
|
55
|
-
"mockResponse": {
|
|
56
|
-
"type": "boolean",
|
|
57
|
-
"description": "If `true`, doesn't make the HTTP request, but instead uses the response example or schema from the OpenAPI description as the response data. Useful for creating tests when an API isn't fully implemented yet. If `statusCode` isn't specified, uses the first defined response code."
|
|
58
|
-
},
|
|
59
|
-
"statusCode": {
|
|
60
|
-
"type": "integer",
|
|
61
|
-
"description": "Response code to use for validation, examples, and status code checking. If the response code doesn't match, the step fails. `statusCodes` overrides this value when specified."
|
|
62
|
-
},
|
|
63
|
-
"useExample": {
|
|
64
|
-
"type": [
|
|
65
|
-
"string"
|
|
66
|
-
],
|
|
67
|
-
"description": "Uses the example from the OpenAPI description as the request and response data. If the request or response has multiple examples, specify `exampleKey`. If `statusCode` isn't specified, uses the first defined response code. `requestData`, `requestParams`, and `requestHeaders` override portions of request examples when specified. `responseData` overrides portions of response examples when specified.",
|
|
68
|
-
"enum": [
|
|
69
|
-
"request",
|
|
70
|
-
"response",
|
|
71
|
-
"both",
|
|
72
|
-
"none"
|
|
73
|
-
],
|
|
74
|
-
"default": "none"
|
|
75
|
-
},
|
|
76
|
-
"exampleKey": {
|
|
77
|
-
"type": "string",
|
|
78
|
-
"description": "Key of the example to use from the `examples` property in the OpenAPI description. If an `examples` key isn't specified or isn't available for a given parameter or object, the `example` property value is used.",
|
|
79
|
-
"default": ""
|
|
80
|
-
},
|
|
81
|
-
"headers": {
|
|
82
|
-
"type": "object",
|
|
83
|
-
"description": "Request headers to add to requests. For example, to set `Authorization` headers for all requests from the specified OpenAPI document. If specified in both a config and a step, the step value overrides the config value.",
|
|
84
|
-
"additionalProperties": {
|
|
85
|
-
"type": "string"
|
|
86
|
-
},
|
|
87
|
-
"title": "OpenAPI request headers"
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
"components": {
|
|
91
|
-
"schemas": {
|
|
92
|
-
"operationId": {
|
|
93
|
-
"type": "string",
|
|
94
|
-
"description": "ID of the operation to use for the request."
|
|
95
|
-
},
|
|
96
|
-
"descriptionPath": {
|
|
97
|
-
"type": "string",
|
|
98
|
-
"description": "URL or local path to the OpenAPI description."
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
"examples": [
|
|
103
|
-
{
|
|
104
|
-
"descriptionPath": "https://petstore.swagger.io/v2/swagger.json"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"name": "Reqres",
|
|
108
|
-
"operationId": "getUserById"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"descriptionPath": "https://api.example.com/openapi.json",
|
|
112
|
-
"operationId": "getUserById"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"descriptionPath": "https://api.example.com/openapi.json",
|
|
116
|
-
"operationId": "createUser",
|
|
117
|
-
"useExample": "both"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"descriptionPath": "https://api.example.com/openapi.json",
|
|
121
|
-
"operationId": "createUser",
|
|
122
|
-
"useExample": "both",
|
|
123
|
-
"exampleKey": "example1"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"descriptionPath": "https://api.example.com/openapi.json",
|
|
127
|
-
"operationId": "createUser",
|
|
128
|
-
"useExample": "both",
|
|
129
|
-
"exampleKey": "example1",
|
|
130
|
-
"statusCode": 201
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"descriptionPath": "https://api.example.com/openapi.json",
|
|
134
|
-
"operationId": "createUser",
|
|
135
|
-
"useExample": "both",
|
|
136
|
-
"exampleKey": "example1",
|
|
137
|
-
"statusCode": 201,
|
|
138
|
-
"validateAgainstSchema": "none"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"descriptionPath": "https://api.example.com/openapi.json",
|
|
142
|
-
"operationId": "createUser",
|
|
143
|
-
"useExample": "both",
|
|
144
|
-
"exampleKey": "example1",
|
|
145
|
-
"statusCode": 201,
|
|
146
|
-
"validateAgainstSchema": "none",
|
|
147
|
-
"mockResponse": true
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"descriptionPath": "https://api.example.com/openapi.json",
|
|
151
|
-
"operationId": "createUser",
|
|
152
|
-
"useExample": "both",
|
|
153
|
-
"exampleKey": "example1",
|
|
154
|
-
"statusCode": 201,
|
|
155
|
-
"validateAgainstSchema": "none",
|
|
156
|
-
"mockResponse": true,
|
|
157
|
-
"headers": {
|
|
158
|
-
"Authorization": "Bearer 12345"
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
]
|
|
162
|
-
}
|