doc-detective-common 4.0.0-beta.0-dev.4 → 4.0.0-beta.0-dev.6
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,33 +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
|
-
"$id": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/src_schemas/stopRecording_v2.schema.json"
|
|
33
|
-
}
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "test",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "A Doc Detective test.",
|
|
5
|
-
"properties": {
|
|
6
|
-
"id": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"description": "Unique identifier for the test."
|
|
9
|
-
},
|
|
10
|
-
"description": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "Description of the test."
|
|
13
|
-
},
|
|
14
|
-
"file": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"description": "Path to the file that the test is associated with."
|
|
17
|
-
},
|
|
18
|
-
"detectSteps": {
|
|
19
|
-
"type": "boolean",
|
|
20
|
-
"description": "Whether or not to detect steps in input files based on markup regex. Defaults to `true`."
|
|
21
|
-
},
|
|
22
|
-
"contexts": {
|
|
23
|
-
"type": "array",
|
|
24
|
-
"description": "Application/platform sets to run the test in. Overrides `contexts` defined at the config-level and spec-level.",
|
|
25
|
-
"items": {
|
|
26
|
-
"oneOf": [
|
|
27
|
-
{
|
|
28
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/context_v2.schema.json#"
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"openApi": {
|
|
34
|
-
"type": "array",
|
|
35
|
-
"items": {
|
|
36
|
-
"allOf": [
|
|
37
|
-
{
|
|
38
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/openApi_v2.schema.json#"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"type": "object",
|
|
42
|
-
"properties": {
|
|
43
|
-
"operationId": {
|
|
44
|
-
"type": "null",
|
|
45
|
-
"$commment": "Only allow operationId at the step level."
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
"required": [
|
|
49
|
-
"name",
|
|
50
|
-
"descriptionPath"
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"setup": {
|
|
57
|
-
"type": "string",
|
|
58
|
-
"description": "Path to a test specification to perform before this test, while maintaining this test's context. Useful for setting up testing environments. Only the `steps` property is used from the first test in the setup spec."
|
|
59
|
-
},
|
|
60
|
-
"cleanup": {
|
|
61
|
-
"type": "string",
|
|
62
|
-
"description": "Path to a test specification to perform after this test, while maintaining this test's context. Useful for cleaning up testing environments. Only the `steps` property is used from the first test in the cleanup spec."
|
|
63
|
-
},
|
|
64
|
-
"steps": {
|
|
65
|
-
"description": "Actions to perform as part of the test. Performed in the sequence defined. If one or more actions fail, the test fails.",
|
|
66
|
-
"type": "array",
|
|
67
|
-
"minItems": 1,
|
|
68
|
-
"items": {
|
|
69
|
-
"anyOf": [
|
|
70
|
-
{
|
|
71
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/checkLink_v2.schema.json#"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/goTo_v2.schema.json#"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/httpRequest_v2.schema.json#"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/runCode_v2.schema.json#"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/runShell_v2.schema.json#"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/saveScreenshot_v2.schema.json#"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/setVariables_v2.schema.json#"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/startRecording_v2.schema.json#"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/stopRecording_v2.schema.json#"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/typeKeys_v2.schema.json#"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/find_v2.schema.json#"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/wait_v2.schema.json#"
|
|
105
|
-
}
|
|
106
|
-
]
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
"dynamicDefaults": {
|
|
111
|
-
"id": "uuid"
|
|
112
|
-
},
|
|
113
|
-
"required": [
|
|
114
|
-
"steps"
|
|
115
|
-
],
|
|
116
|
-
"additionalProperties": false,
|
|
117
|
-
"examples": [
|
|
118
|
-
{
|
|
119
|
-
"steps": [
|
|
120
|
-
{
|
|
121
|
-
"action": "checkLink",
|
|
122
|
-
"url": "https://www.duckduckgo.com"
|
|
123
|
-
}
|
|
124
|
-
]
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"steps": [
|
|
128
|
-
{
|
|
129
|
-
"action": "goTo",
|
|
130
|
-
"url": "https://www.duckduckgo.com"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"action": "find",
|
|
134
|
-
"selector": "[title=Search]",
|
|
135
|
-
"click": true,
|
|
136
|
-
"typeKeys": {
|
|
137
|
-
"keys": [
|
|
138
|
-
"shorthair cats",
|
|
139
|
-
"$ENTER$"
|
|
140
|
-
]
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
]
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"id": "Do all the things! - Test",
|
|
147
|
-
"description": "This test includes every property across all actions.",
|
|
148
|
-
"contexts": [
|
|
149
|
-
{
|
|
150
|
-
"app": {
|
|
151
|
-
"name": "firefox",
|
|
152
|
-
"path": "/usr/bin/firefox"
|
|
153
|
-
},
|
|
154
|
-
"platforms": [
|
|
155
|
-
"linux"
|
|
156
|
-
]
|
|
157
|
-
}
|
|
158
|
-
],
|
|
159
|
-
"setup": "setup.json",
|
|
160
|
-
"cleanup": "cleanup.json",
|
|
161
|
-
"steps": [
|
|
162
|
-
{
|
|
163
|
-
"action": "setVariables",
|
|
164
|
-
"path": ".env"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"action": "runShell",
|
|
168
|
-
"command": "echo",
|
|
169
|
-
"args": [
|
|
170
|
-
"$USER"
|
|
171
|
-
]
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"action": "checkLink",
|
|
175
|
-
"url": "https://www.duckduckgo.com"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"action": "httpRequest",
|
|
179
|
-
"url": "https://reqres.in/api/users",
|
|
180
|
-
"method": "post",
|
|
181
|
-
"requestData": {
|
|
182
|
-
"name": "morpheus",
|
|
183
|
-
"job": "leader"
|
|
184
|
-
},
|
|
185
|
-
"responseData": {
|
|
186
|
-
"name": "morpheus",
|
|
187
|
-
"job": "leader"
|
|
188
|
-
},
|
|
189
|
-
"statusCodes": [
|
|
190
|
-
200,
|
|
191
|
-
201
|
|
192
|
-
]
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"action": "goTo",
|
|
196
|
-
"url": "https://www.duckduckgo.com"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"action": "find",
|
|
200
|
-
"selector": "[title=Search]",
|
|
201
|
-
"timeout": 10000,
|
|
202
|
-
"matchText": "Search",
|
|
203
|
-
"moveTo": true,
|
|
204
|
-
"click": true,
|
|
205
|
-
"typeKeys": {
|
|
206
|
-
"keys": [
|
|
207
|
-
"shorthair cat"
|
|
208
|
-
]
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
"action": "typeKeys",
|
|
213
|
-
"keys": [
|
|
214
|
-
"$ENTER$"
|
|
215
|
-
]
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"action": "saveScreenshot"
|
|
219
|
-
}
|
|
220
|
-
]
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"openApi": [
|
|
224
|
-
{
|
|
225
|
-
"name": "Acme",
|
|
226
|
-
"descriptionPath": "https://www.acme.com/openapi.json",
|
|
227
|
-
"server": "https://api.acme.com"
|
|
228
|
-
}
|
|
229
|
-
],
|
|
230
|
-
"steps": [
|
|
231
|
-
{
|
|
232
|
-
"action": "httpRequest",
|
|
233
|
-
"openApi": {
|
|
234
|
-
"operationId": "getUserById"
|
|
235
|
-
},
|
|
236
|
-
"requestParams": {
|
|
237
|
-
"id": 123
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
]
|
|
241
|
-
}
|
|
242
|
-
],
|
|
243
|
-
"$id": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/src_schemas/test_v2.schema.json"
|
|
244
|
-
}
|
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "test",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"description": "A Doc Detective test.",
|
|
6
|
-
"properties": {
|
|
7
|
-
"testId": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "Unique identifier for the test."
|
|
10
|
-
},
|
|
11
|
-
"description": {
|
|
12
|
-
"type": "string",
|
|
13
|
-
"description": "Description of the test."
|
|
14
|
-
},
|
|
15
|
-
"contentPath": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"description": "Path to the content that the test is associated with."
|
|
18
|
-
},
|
|
19
|
-
"detectSteps": {
|
|
20
|
-
"type": "boolean",
|
|
21
|
-
"description": "Whether or not to detect steps in input files based on markup regex.",
|
|
22
|
-
"default": true
|
|
23
|
-
},
|
|
24
|
-
"runOn": {
|
|
25
|
-
"type": "array",
|
|
26
|
-
"description": "Contexts to run the test in. Overrides contexts defined at the config and spec levels.",
|
|
27
|
-
"items": {
|
|
28
|
-
"anyOf": [
|
|
29
|
-
{
|
|
30
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/context_v3.schema.json#"
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"openApi": {
|
|
36
|
-
"$ref": "#/components/schemas/openApi"
|
|
37
|
-
},
|
|
38
|
-
"before": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"description": "Path to a test specification to perform before this test, while maintaining this test's context. Useful for setting up testing environments. Only the `steps` property is used from the first test in the setup spec."
|
|
41
|
-
},
|
|
42
|
-
"after": {
|
|
43
|
-
"type": "string",
|
|
44
|
-
"description": "Path to a test specification to perform after this test, while maintaining this test's context. Useful for cleaning up testing environments. Only the `steps` property is used from the first test in the cleanup spec."
|
|
45
|
-
},
|
|
46
|
-
"steps": {
|
|
47
|
-
"description": "Steps to perform as part of the test. Performed in the sequence defined. If one or more actions fail, the test fails. By default, if a step fails, the test stops and the remaining steps are not executed.",
|
|
48
|
-
"type": "array",
|
|
49
|
-
"minItems": 1,
|
|
50
|
-
"items": {
|
|
51
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/step_v3.schema.json#"
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
"contexts": {
|
|
55
|
-
"title": "Resolved contexts",
|
|
56
|
-
"type": "array",
|
|
57
|
-
"readOnly": true,
|
|
58
|
-
"description": "Resolved contexts to run the test in. This is a resolved version of the `runOn` property. It is not user-defined and should not be used in test specifications.",
|
|
59
|
-
"items": {
|
|
60
|
-
"type": "object",
|
|
61
|
-
"properties": {
|
|
62
|
-
"platform": {
|
|
63
|
-
"type": "string",
|
|
64
|
-
"description": "Platform to run the test on. This is a resolved version of the `platforms` property."
|
|
65
|
-
},
|
|
66
|
-
"browser": {
|
|
67
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/context_v3.schema.json#/components/schemas/browser"
|
|
68
|
-
},
|
|
69
|
-
"openApi": {
|
|
70
|
-
"$ref": "#/components/schemas/openApi"
|
|
71
|
-
},
|
|
72
|
-
"steps": {
|
|
73
|
-
"description": "Steps to perform as part of the test. Performed in the sequence defined. If one or more actions fail, the test fails. By default, if a step fails, the test stops and the remaining steps are not executed.",
|
|
74
|
-
"type": "array",
|
|
75
|
-
"minItems": 1,
|
|
76
|
-
"items": {
|
|
77
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/step_v3.schema.json#"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"title": "Resolved context"
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"dynamicDefaults": {
|
|
86
|
-
"testId": "uuid"
|
|
87
|
-
},
|
|
88
|
-
"anyOf": [
|
|
89
|
-
{
|
|
90
|
-
"required": [
|
|
91
|
-
"steps"
|
|
92
|
-
]
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"required": [
|
|
96
|
-
"contexts"
|
|
97
|
-
]
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
"additionalProperties": false,
|
|
101
|
-
"components": {
|
|
102
|
-
"schemas": {
|
|
103
|
-
"openApi": {
|
|
104
|
-
"type": "array",
|
|
105
|
-
"items": {
|
|
106
|
-
"allOf": [
|
|
107
|
-
{
|
|
108
|
-
"$ref": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/build/openApi_v3.schema.json#"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"type": "object",
|
|
112
|
-
"not": {
|
|
113
|
-
"required": [
|
|
114
|
-
"operationId"
|
|
115
|
-
]
|
|
116
|
-
},
|
|
117
|
-
"required": [
|
|
118
|
-
"name",
|
|
119
|
-
"descriptionPath"
|
|
120
|
-
],
|
|
121
|
-
"title": "OpenAPI description (test)"
|
|
122
|
-
}
|
|
123
|
-
]
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
"examples": [
|
|
129
|
-
{
|
|
130
|
-
"steps": [
|
|
131
|
-
{
|
|
132
|
-
"checkLink": "https://www.duckduckgo.com"
|
|
133
|
-
}
|
|
134
|
-
]
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"steps": [
|
|
138
|
-
{
|
|
139
|
-
"goTo": {
|
|
140
|
-
"url": "https://www.duckduckgo.com"
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"find": {
|
|
145
|
-
"selector": "[title=Search]",
|
|
146
|
-
"click": true,
|
|
147
|
-
"type": {
|
|
148
|
-
"keys": [
|
|
149
|
-
"shorthair cats",
|
|
150
|
-
"$ENTER$"
|
|
151
|
-
]
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
]
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"testId": "Do all the things! - Test",
|
|
159
|
-
"description": "This test includes every property across all actions.",
|
|
160
|
-
"before": "setup.json",
|
|
161
|
-
"after": "cleanup.json",
|
|
162
|
-
"runOn": [
|
|
163
|
-
{
|
|
164
|
-
"platforms": [
|
|
165
|
-
"linux"
|
|
166
|
-
],
|
|
167
|
-
"browsers": {
|
|
168
|
-
"name": "firefox",
|
|
169
|
-
"window": {},
|
|
170
|
-
"viewport": {}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
],
|
|
174
|
-
"steps": [
|
|
175
|
-
{
|
|
176
|
-
"loadVariables": ".env"
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
"runShell": {
|
|
180
|
-
"command": "echo",
|
|
181
|
-
"args": [
|
|
182
|
-
"$USER"
|
|
183
|
-
],
|
|
184
|
-
"maxVariation": 0,
|
|
185
|
-
"overwrite": "aboveVariation"
|
|
186
|
-
},
|
|
187
|
-
"variables": {}
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"checkLink": {
|
|
191
|
-
"url": "https://www.duckduckgo.com"
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"httpRequest": {
|
|
196
|
-
"method": "post",
|
|
197
|
-
"url": "https://reqres.in/api/users",
|
|
198
|
-
"request": {
|
|
199
|
-
"body": {
|
|
200
|
-
"name": "morpheus",
|
|
201
|
-
"job": "leader"
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
"response": {
|
|
205
|
-
"body": {
|
|
206
|
-
"name": "morpheus",
|
|
207
|
-
"job": "leader"
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
"statusCodes": [
|
|
211
|
-
200,
|
|
212
|
-
201
|
|
213
|
-
],
|
|
214
|
-
"maxVariation": 0,
|
|
215
|
-
"overwrite": "aboveVariation"
|
|
216
|
-
},
|
|
217
|
-
"variables": {}
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
"goTo": {
|
|
221
|
-
"url": "https://www.duckduckgo.com"
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
"find": {
|
|
226
|
-
"selector": "[title=Search]",
|
|
227
|
-
"elementText": "Search",
|
|
228
|
-
"timeout": 10000,
|
|
229
|
-
"moveTo": true,
|
|
230
|
-
"click": true,
|
|
231
|
-
"type": {
|
|
232
|
-
"keys": [
|
|
233
|
-
"shorthair cat"
|
|
234
|
-
]
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
"variables": {}
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
"type": {
|
|
241
|
-
"keys": [
|
|
242
|
-
"$ENTER$"
|
|
243
|
-
]
|
|
244
|
-
}
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
"screenshot": {
|
|
248
|
-
"maxVariation": 0,
|
|
249
|
-
"overwrite": "aboveVariation"
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
],
|
|
253
|
-
"detectSteps": true
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
"testId": "c61b02e8-7485-44d3-8065-f873673379c6",
|
|
257
|
-
"openApi": [
|
|
258
|
-
{
|
|
259
|
-
"descriptionPath": "https://www.acme.com/openapi.json",
|
|
260
|
-
"server": "https://api.acme.com",
|
|
261
|
-
"validateAgainstSchema": "both",
|
|
262
|
-
"useExample": "none",
|
|
263
|
-
"exampleKey": "",
|
|
264
|
-
"name": "Acme"
|
|
265
|
-
}
|
|
266
|
-
],
|
|
267
|
-
"steps": [
|
|
268
|
-
{
|
|
269
|
-
"httpRequest": {
|
|
270
|
-
"openApi": {
|
|
271
|
-
"operationId": "getUserById",
|
|
272
|
-
"validateAgainstSchema": "both",
|
|
273
|
-
"useExample": "none",
|
|
274
|
-
"exampleKey": ""
|
|
275
|
-
},
|
|
276
|
-
"request": {
|
|
277
|
-
"parameters": {
|
|
278
|
-
"id": 123
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
|
-
"response": {},
|
|
282
|
-
"maxVariation": 0,
|
|
283
|
-
"overwrite": "aboveVariation"
|
|
284
|
-
},
|
|
285
|
-
"variables": {}
|
|
286
|
-
}
|
|
287
|
-
],
|
|
288
|
-
"detectSteps": true
|
|
289
|
-
}
|
|
290
|
-
],
|
|
291
|
-
"$id": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/src_schemas/test_v3.schema.json"
|
|
292
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "typeKeys",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "Type keys. To type special keys, begin and end the string with `$` and use the special key's enum. For example, to type the Escape key, enter `$ESCAPE$`.",
|
|
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": "typeKeys",
|
|
17
|
-
"description": "The action to perform."
|
|
18
|
-
},
|
|
19
|
-
"keys": {
|
|
20
|
-
"description": "String of keys to enter.",
|
|
21
|
-
"anyOf": [
|
|
22
|
-
{
|
|
23
|
-
"type": "string"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"type": "array",
|
|
27
|
-
"items": {
|
|
28
|
-
"oneOf": [
|
|
29
|
-
{
|
|
30
|
-
"type": "string"
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
"delay": {
|
|
38
|
-
"type": "number",
|
|
39
|
-
"description": "Delay in milliseconds between each key press. Only valid during a recording.",
|
|
40
|
-
"default": 100
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"dynamicDefaults": {
|
|
44
|
-
"id": "uuid"
|
|
45
|
-
},
|
|
46
|
-
"required": [
|
|
47
|
-
"action",
|
|
48
|
-
"keys"
|
|
49
|
-
],
|
|
50
|
-
"additionalProperties": false,
|
|
51
|
-
"examples": [
|
|
52
|
-
{
|
|
53
|
-
"action": "typeKeys",
|
|
54
|
-
"keys": "kittens"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"action": "typeKeys",
|
|
58
|
-
"keys": [
|
|
59
|
-
"$ENTER$"
|
|
60
|
-
]
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"action": "typeKeys",
|
|
64
|
-
"keys": [
|
|
65
|
-
"kittens",
|
|
66
|
-
"$ENTER$"
|
|
67
|
-
],
|
|
68
|
-
"delay": 500
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"$id": "/home/runner/work/doc-detective/doc-detective/src/common/src/schemas/src_schemas/typeKeys_v2.schema.json"
|
|
72
|
-
}
|