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,236 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "runShell",
|
|
4
|
-
"description": "Perform a native shell command.",
|
|
5
|
-
"anyOf": [
|
|
6
|
-
{
|
|
7
|
-
"title": "Run shell command (simple)",
|
|
8
|
-
"description": "Command to perform in the machine's default shell.",
|
|
9
|
-
"type": "string",
|
|
10
|
-
"transform": [
|
|
11
|
-
"trim"
|
|
12
|
-
]
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"type": "object",
|
|
16
|
-
"required": [
|
|
17
|
-
"command"
|
|
18
|
-
],
|
|
19
|
-
"additionalProperties": false,
|
|
20
|
-
"properties": {
|
|
21
|
-
"command": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"description": "Command to perform in the machine's default shell."
|
|
24
|
-
},
|
|
25
|
-
"args": {
|
|
26
|
-
"type": "array",
|
|
27
|
-
"description": "Arguments for the command.",
|
|
28
|
-
"items": {
|
|
29
|
-
"anyOf": [
|
|
30
|
-
{
|
|
31
|
-
"type": "string"
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
"default": []
|
|
36
|
-
},
|
|
37
|
-
"workingDirectory": {
|
|
38
|
-
"type": "string",
|
|
39
|
-
"description": "Working directory for the command.",
|
|
40
|
-
"default": "."
|
|
41
|
-
},
|
|
42
|
-
"exitCodes": {
|
|
43
|
-
"type": "array",
|
|
44
|
-
"description": "Expected exit codes of the command. If the command's actual exit code isn't in this list, the step fails.",
|
|
45
|
-
"items": {
|
|
46
|
-
"anyOf": [
|
|
47
|
-
{
|
|
48
|
-
"type": "integer"
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
"default": [
|
|
53
|
-
0
|
|
54
|
-
]
|
|
55
|
-
},
|
|
56
|
-
"stdio": {
|
|
57
|
-
"type": "string",
|
|
58
|
-
"description": "Content expected in the command's stdout or stderr. If the expected content can't be found in the command's stdout or stderr, the step fails. Supports strings and regular expressions. To use a regular expression, the string must start and end with a forward slash, like in `/^hello-world.*/`."
|
|
59
|
-
},
|
|
60
|
-
"path": {
|
|
61
|
-
"type": "string",
|
|
62
|
-
"description": "File path to save the command's output, relative to `directory`."
|
|
63
|
-
},
|
|
64
|
-
"directory": {
|
|
65
|
-
"type": "string",
|
|
66
|
-
"description": "Directory to save the command's output. If the directory doesn't exist, creates the directory. If not specified, the directory is your media directory."
|
|
67
|
-
},
|
|
68
|
-
"maxVariation": {
|
|
69
|
-
"type": "number",
|
|
70
|
-
"description": "Allowed variation as a fraction (0 to 1) of text different between the current output and previously saved output. For example, 0.1 means 10%. If the difference between the current output and the previous output is greater than `maxVariation`, the step fails. If output doesn't exist at `path`, this value is ignored.",
|
|
71
|
-
"default": 0,
|
|
72
|
-
"minimum": 0,
|
|
73
|
-
"maximum": 1
|
|
74
|
-
},
|
|
75
|
-
"overwrite": {
|
|
76
|
-
"type": "string",
|
|
77
|
-
"description": "If `true`, overwrites the existing output at `path` if it exists.\nIf `aboveVariation`, overwrites the existing output at `path` if the difference between the new output and the existing output is greater than `maxVariation`.",
|
|
78
|
-
"enum": [
|
|
79
|
-
"true",
|
|
80
|
-
"false",
|
|
81
|
-
"aboveVariation"
|
|
82
|
-
],
|
|
83
|
-
"default": "aboveVariation"
|
|
84
|
-
},
|
|
85
|
-
"timeout": {
|
|
86
|
-
"type": "integer",
|
|
87
|
-
"description": "Max time in milliseconds the command is allowed to run. If the command runs longer than this, the step fails.",
|
|
88
|
-
"default": 60000
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"title": "Run shell command (detailed)"
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
|
-
"components": {
|
|
95
|
-
"schemas": {
|
|
96
|
-
"string": {
|
|
97
|
-
"title": "Run shell command (simple)",
|
|
98
|
-
"description": "Command to perform in the machine's default shell.",
|
|
99
|
-
"type": "string",
|
|
100
|
-
"transform": [
|
|
101
|
-
"trim"
|
|
102
|
-
]
|
|
103
|
-
},
|
|
104
|
-
"object": {
|
|
105
|
-
"type": "object",
|
|
106
|
-
"required": [
|
|
107
|
-
"command"
|
|
108
|
-
],
|
|
109
|
-
"additionalProperties": false,
|
|
110
|
-
"properties": {
|
|
111
|
-
"command": {
|
|
112
|
-
"type": "string",
|
|
113
|
-
"description": "Command to perform in the machine's default shell."
|
|
114
|
-
},
|
|
115
|
-
"args": {
|
|
116
|
-
"type": "array",
|
|
117
|
-
"description": "Arguments for the command.",
|
|
118
|
-
"items": {
|
|
119
|
-
"anyOf": [
|
|
120
|
-
{
|
|
121
|
-
"type": "string"
|
|
122
|
-
}
|
|
123
|
-
]
|
|
124
|
-
},
|
|
125
|
-
"default": []
|
|
126
|
-
},
|
|
127
|
-
"workingDirectory": {
|
|
128
|
-
"type": "string",
|
|
129
|
-
"description": "Working directory for the command.",
|
|
130
|
-
"default": "."
|
|
131
|
-
},
|
|
132
|
-
"exitCodes": {
|
|
133
|
-
"type": "array",
|
|
134
|
-
"description": "Expected exit codes of the command. If the command's actual exit code isn't in this list, the step fails.",
|
|
135
|
-
"items": {
|
|
136
|
-
"anyOf": [
|
|
137
|
-
{
|
|
138
|
-
"type": "integer"
|
|
139
|
-
}
|
|
140
|
-
]
|
|
141
|
-
},
|
|
142
|
-
"default": [
|
|
143
|
-
0
|
|
144
|
-
]
|
|
145
|
-
},
|
|
146
|
-
"stdio": {
|
|
147
|
-
"type": "string",
|
|
148
|
-
"description": "Content expected in the command's stdout or stderr. If the expected content can't be found in the command's stdout or stderr, the step fails. Supports strings and regular expressions. To use a regular expression, the string must start and end with a forward slash, like in `/^hello-world.*/`."
|
|
149
|
-
},
|
|
150
|
-
"path": {
|
|
151
|
-
"type": "string",
|
|
152
|
-
"description": "File path to save the command's output, relative to `directory`."
|
|
153
|
-
},
|
|
154
|
-
"directory": {
|
|
155
|
-
"type": "string",
|
|
156
|
-
"description": "Directory to save the command's output. If the directory doesn't exist, creates the directory. If not specified, the directory is your media directory."
|
|
157
|
-
},
|
|
158
|
-
"maxVariation": {
|
|
159
|
-
"type": "number",
|
|
160
|
-
"description": "Allowed variation as a fraction (0 to 1) of text different between the current output and previously saved output. For example, 0.1 means 10%. If the difference between the current output and the previous output is greater than `maxVariation`, the step fails. If output doesn't exist at `path`, this value is ignored.",
|
|
161
|
-
"default": 0,
|
|
162
|
-
"minimum": 0,
|
|
163
|
-
"maximum": 1
|
|
164
|
-
},
|
|
165
|
-
"overwrite": {
|
|
166
|
-
"type": "string",
|
|
167
|
-
"description": "If `true`, overwrites the existing output at `path` if it exists.\nIf `aboveVariation`, overwrites the existing output at `path` if the difference between the new output and the existing output is greater than `maxVariation`.",
|
|
168
|
-
"enum": [
|
|
169
|
-
"true",
|
|
170
|
-
"false",
|
|
171
|
-
"aboveVariation"
|
|
172
|
-
],
|
|
173
|
-
"default": "aboveVariation"
|
|
174
|
-
},
|
|
175
|
-
"timeout": {
|
|
176
|
-
"type": "integer",
|
|
177
|
-
"description": "Max time in milliseconds the command is allowed to run. If the command runs longer than this, the step fails.",
|
|
178
|
-
"default": 60000
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
"title": "Run shell command (detailed)"
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
"examples": [
|
|
186
|
-
"docker run hello-world",
|
|
187
|
-
{
|
|
188
|
-
"command": "echo",
|
|
189
|
-
"args": [
|
|
190
|
-
"$USER"
|
|
191
|
-
]
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
"command": "echo",
|
|
195
|
-
"args": [
|
|
196
|
-
"hello-world"
|
|
197
|
-
]
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"command": "docker run hello-world",
|
|
201
|
-
"timeout": 20000,
|
|
202
|
-
"exitCodes": [
|
|
203
|
-
0
|
|
204
|
-
],
|
|
205
|
-
"stdio": "Hello from Docker!"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
"command": "false",
|
|
209
|
-
"exitCodes": [
|
|
210
|
-
1
|
|
211
|
-
]
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"command": "echo",
|
|
215
|
-
"args": [
|
|
216
|
-
"setup"
|
|
217
|
-
],
|
|
218
|
-
"exitCodes": [
|
|
219
|
-
0
|
|
220
|
-
],
|
|
221
|
-
"stdio": "/.*?/"
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
"command": "docker run hello-world",
|
|
225
|
-
"workingDirectory": ".",
|
|
226
|
-
"exitCodes": [
|
|
227
|
-
0
|
|
228
|
-
],
|
|
229
|
-
"stdio": "Hello from Docker!",
|
|
230
|
-
"path": "docker-output.txt",
|
|
231
|
-
"directory": "output",
|
|
232
|
-
"maxVariation": 0.1,
|
|
233
|
-
"overwrite": "aboveVariation"
|
|
234
|
-
}
|
|
235
|
-
]
|
|
236
|
-
}
|
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "saveCookie",
|
|
4
|
-
"description": "Save a specific browser cookie to a file or environment variable for later reuse.",
|
|
5
|
-
"anyOf": [
|
|
6
|
-
{
|
|
7
|
-
"type": "string",
|
|
8
|
-
"title": "Cookie name",
|
|
9
|
-
"description": "Name of the specific cookie to save. Will be saved to a default file path or environment variable.",
|
|
10
|
-
"pattern": "^[A-Za-z0-9_./\\-]+$",
|
|
11
|
-
"transform": [
|
|
12
|
-
"trim"
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"type": "object",
|
|
17
|
-
"additionalProperties": false,
|
|
18
|
-
"properties": {
|
|
19
|
-
"$schema": {
|
|
20
|
-
"description": "Optional self-describing schema URI for linters",
|
|
21
|
-
"type": "string",
|
|
22
|
-
"format": "uri-reference"
|
|
23
|
-
},
|
|
24
|
-
"name": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"title": "Cookie name",
|
|
27
|
-
"description": "Name of the specific cookie to save.",
|
|
28
|
-
"pattern": "^[A-Za-z0-9_.-]+$",
|
|
29
|
-
"transform": [
|
|
30
|
-
"trim"
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
"variable": {
|
|
34
|
-
"type": "string",
|
|
35
|
-
"title": "Environment variable name",
|
|
36
|
-
"description": "Environment variable name to store the cookie as JSON string.",
|
|
37
|
-
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
|
38
|
-
"transform": [
|
|
39
|
-
"trim"
|
|
40
|
-
]
|
|
41
|
-
},
|
|
42
|
-
"path": {
|
|
43
|
-
"type": "string",
|
|
44
|
-
"title": "Cookie file path",
|
|
45
|
-
"description": "File path to save the cookie, relative to directory. Uses Netscape cookie format.",
|
|
46
|
-
"transform": [
|
|
47
|
-
"trim"
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
"directory": {
|
|
51
|
-
"type": "string",
|
|
52
|
-
"title": "Directory path",
|
|
53
|
-
"description": "Directory to save the cookie file. If not specified, uses output directory.",
|
|
54
|
-
"transform": [
|
|
55
|
-
"trim"
|
|
56
|
-
]
|
|
57
|
-
},
|
|
58
|
-
"overwrite": {
|
|
59
|
-
"type": "boolean",
|
|
60
|
-
"title": "Overwrite existing file",
|
|
61
|
-
"description": "Whether to overwrite existing cookie file.",
|
|
62
|
-
"default": false
|
|
63
|
-
},
|
|
64
|
-
"domain": {
|
|
65
|
-
"type": "string",
|
|
66
|
-
"title": "Cookie domain",
|
|
67
|
-
"description": "Specific domain to filter the cookie by (optional).",
|
|
68
|
-
"transform": [
|
|
69
|
-
"trim"
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
"required": [
|
|
74
|
-
"name"
|
|
75
|
-
],
|
|
76
|
-
"anyOf": [
|
|
77
|
-
{
|
|
78
|
-
"required": [
|
|
79
|
-
"path"
|
|
80
|
-
],
|
|
81
|
-
"not": {
|
|
82
|
-
"required": [
|
|
83
|
-
"variable"
|
|
84
|
-
]
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"required": [
|
|
89
|
-
"variable"
|
|
90
|
-
],
|
|
91
|
-
"not": {
|
|
92
|
-
"anyOf": [
|
|
93
|
-
{
|
|
94
|
-
"required": [
|
|
95
|
-
"path"
|
|
96
|
-
]
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"required": [
|
|
100
|
-
"directory"
|
|
101
|
-
]
|
|
102
|
-
}
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
"title": "Save cookie (detailed)"
|
|
108
|
-
}
|
|
109
|
-
],
|
|
110
|
-
"components": {
|
|
111
|
-
"schemas": {
|
|
112
|
-
"string": {
|
|
113
|
-
"type": "string",
|
|
114
|
-
"title": "Cookie name",
|
|
115
|
-
"description": "Name of the specific cookie to save. Will be saved to a default file path or environment variable.",
|
|
116
|
-
"pattern": "^[A-Za-z0-9_./\\-]+$",
|
|
117
|
-
"transform": [
|
|
118
|
-
"trim"
|
|
119
|
-
]
|
|
120
|
-
},
|
|
121
|
-
"object": {
|
|
122
|
-
"type": "object",
|
|
123
|
-
"additionalProperties": false,
|
|
124
|
-
"properties": {
|
|
125
|
-
"$schema": {
|
|
126
|
-
"description": "Optional self-describing schema URI for linters",
|
|
127
|
-
"type": "string",
|
|
128
|
-
"format": "uri-reference"
|
|
129
|
-
},
|
|
130
|
-
"name": {
|
|
131
|
-
"type": "string",
|
|
132
|
-
"title": "Cookie name",
|
|
133
|
-
"description": "Name of the specific cookie to save.",
|
|
134
|
-
"pattern": "^[A-Za-z0-9_.-]+$",
|
|
135
|
-
"transform": [
|
|
136
|
-
"trim"
|
|
137
|
-
]
|
|
138
|
-
},
|
|
139
|
-
"variable": {
|
|
140
|
-
"type": "string",
|
|
141
|
-
"title": "Environment variable name",
|
|
142
|
-
"description": "Environment variable name to store the cookie as JSON string.",
|
|
143
|
-
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
|
144
|
-
"transform": [
|
|
145
|
-
"trim"
|
|
146
|
-
]
|
|
147
|
-
},
|
|
148
|
-
"path": {
|
|
149
|
-
"type": "string",
|
|
150
|
-
"title": "Cookie file path",
|
|
151
|
-
"description": "File path to save the cookie, relative to directory. Uses Netscape cookie format.",
|
|
152
|
-
"transform": [
|
|
153
|
-
"trim"
|
|
154
|
-
]
|
|
155
|
-
},
|
|
156
|
-
"directory": {
|
|
157
|
-
"type": "string",
|
|
158
|
-
"title": "Directory path",
|
|
159
|
-
"description": "Directory to save the cookie file. If not specified, uses output directory.",
|
|
160
|
-
"transform": [
|
|
161
|
-
"trim"
|
|
162
|
-
]
|
|
163
|
-
},
|
|
164
|
-
"overwrite": {
|
|
165
|
-
"type": "boolean",
|
|
166
|
-
"title": "Overwrite existing file",
|
|
167
|
-
"description": "Whether to overwrite existing cookie file.",
|
|
168
|
-
"default": false
|
|
169
|
-
},
|
|
170
|
-
"domain": {
|
|
171
|
-
"type": "string",
|
|
172
|
-
"title": "Cookie domain",
|
|
173
|
-
"description": "Specific domain to filter the cookie by (optional).",
|
|
174
|
-
"transform": [
|
|
175
|
-
"trim"
|
|
176
|
-
]
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
"required": [
|
|
180
|
-
"name"
|
|
181
|
-
],
|
|
182
|
-
"anyOf": [
|
|
183
|
-
{
|
|
184
|
-
"required": [
|
|
185
|
-
"path"
|
|
186
|
-
],
|
|
187
|
-
"not": {
|
|
188
|
-
"required": [
|
|
189
|
-
"variable"
|
|
190
|
-
]
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
"required": [
|
|
195
|
-
"variable"
|
|
196
|
-
],
|
|
197
|
-
"not": {
|
|
198
|
-
"anyOf": [
|
|
199
|
-
{
|
|
200
|
-
"required": [
|
|
201
|
-
"path"
|
|
202
|
-
]
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"required": [
|
|
206
|
-
"directory"
|
|
207
|
-
]
|
|
208
|
-
}
|
|
209
|
-
]
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
],
|
|
213
|
-
"title": "Save cookie (detailed)"
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
"examples": [
|
|
218
|
-
"session_token",
|
|
219
|
-
"test_env_cookie",
|
|
220
|
-
{
|
|
221
|
-
"name": "auth_cookie",
|
|
222
|
-
"path": "auth-cookie.txt"
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
"name": "session_token",
|
|
226
|
-
"variable": "SESSION_TOKEN"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"name": "test_cookie",
|
|
230
|
-
"path": "test-cookie.txt",
|
|
231
|
-
"overwrite": true
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
"name": "user_session",
|
|
235
|
-
"path": "user-session.txt",
|
|
236
|
-
"directory": "./test-data",
|
|
237
|
-
"overwrite": true
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
"name": "login_token",
|
|
241
|
-
"path": "login-token.txt",
|
|
242
|
-
"domain": "app.example.com"
|
|
243
|
-
}
|
|
244
|
-
]
|
|
245
|
-
}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "saveScreenshot",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "Takes a screenshot in PNG format.",
|
|
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": "saveScreenshot",
|
|
17
|
-
"description": "The action to perform."
|
|
18
|
-
},
|
|
19
|
-
"path": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"description": "File path of the PNG file, relative to `directory`. If not specified, the file name is the ID of the step.",
|
|
22
|
-
"pattern": "([A-Za-z0-9_-]*\\.(png|PNG)$|\\$[A-Za-z0-9_]+)"
|
|
23
|
-
},
|
|
24
|
-
"directory": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"description": "Directory of the PNG file. If the directory doesn't exist, creates the directory."
|
|
27
|
-
},
|
|
28
|
-
"maxVariation": {
|
|
29
|
-
"type": "number",
|
|
30
|
-
"description": "Allowed variation in percentage of pixels between the new screenshot and the existing screenshot at `path`. If the difference between the new screenshot and the existing screenshot is greater than `maxVariation`, the step fails. If a screenshot doesn't exist at `path`, this value is ignored.",
|
|
31
|
-
"default": 5,
|
|
32
|
-
"minimum": 0,
|
|
33
|
-
"maximum": 100
|
|
34
|
-
},
|
|
35
|
-
"overwrite": {
|
|
36
|
-
"type": "string",
|
|
37
|
-
"description": "If `true`, overwrites the existing screenshot at `path` if it exists.\nIf `byVariation`, overwrites the existing screenshot at `path` if the difference between the new screenshot and the existing screenshot is greater than `maxVariation`.",
|
|
38
|
-
"enum": [
|
|
39
|
-
"true",
|
|
40
|
-
"false",
|
|
41
|
-
"byVariation"
|
|
42
|
-
],
|
|
43
|
-
"default": "false"
|
|
44
|
-
},
|
|
45
|
-
"crop": {
|
|
46
|
-
"type": "object",
|
|
47
|
-
"description": "Crops the screenshot.",
|
|
48
|
-
"properties": {
|
|
49
|
-
"selector": {
|
|
50
|
-
"type": "string",
|
|
51
|
-
"description": "Selector of the element to crop the image to."
|
|
52
|
-
},
|
|
53
|
-
"padding": {
|
|
54
|
-
"oneOf": [
|
|
55
|
-
{
|
|
56
|
-
"type": "number",
|
|
57
|
-
"description": "Padding in pixels to add to the bounds of the element.",
|
|
58
|
-
"minimum": 0
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"type": "object",
|
|
62
|
-
"properties": {
|
|
63
|
-
"top": {
|
|
64
|
-
"type": "number",
|
|
65
|
-
"minimum": 0
|
|
66
|
-
},
|
|
67
|
-
"right": {
|
|
68
|
-
"type": "number",
|
|
69
|
-
"minimum": 0
|
|
70
|
-
},
|
|
71
|
-
"bottom": {
|
|
72
|
-
"type": "number",
|
|
73
|
-
"minimum": 0
|
|
74
|
-
},
|
|
75
|
-
"left": {
|
|
76
|
-
"type": "number",
|
|
77
|
-
"minimum": 0
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"required": [
|
|
85
|
-
"selector"
|
|
86
|
-
],
|
|
87
|
-
"additionalProperties": false
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
"dynamicDefaults": {
|
|
91
|
-
"id": "uuid"
|
|
92
|
-
},
|
|
93
|
-
"required": [
|
|
94
|
-
"action"
|
|
95
|
-
],
|
|
96
|
-
"additionalProperties": false,
|
|
97
|
-
"examples": [
|
|
98
|
-
{
|
|
99
|
-
"action": "saveScreenshot"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"action": "saveScreenshot",
|
|
103
|
-
"path": "results.png"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"action": "saveScreenshot",
|
|
107
|
-
"path": "results.png",
|
|
108
|
-
"directory": "static/images"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"action": "saveScreenshot",
|
|
112
|
-
"path": "results.png",
|
|
113
|
-
"directory": "static/images",
|
|
114
|
-
"maxVariation": 10,
|
|
115
|
-
"overwrite": "byVariation"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"action": "saveScreenshot",
|
|
119
|
-
"path": "results.png",
|
|
120
|
-
"directory": "static/images",
|
|
121
|
-
"crop": {
|
|
122
|
-
"selector": "#element"
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"action": "saveScreenshot",
|
|
127
|
-
"path": "results.png",
|
|
128
|
-
"directory": "static/images",
|
|
129
|
-
"crop": {
|
|
130
|
-
"selector": "#element",
|
|
131
|
-
"padding": 10
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"action": "saveScreenshot",
|
|
136
|
-
"path": "results.png",
|
|
137
|
-
"directory": "static/images",
|
|
138
|
-
"crop": {
|
|
139
|
-
"selector": "#element",
|
|
140
|
-
"padding": {
|
|
141
|
-
"top": 10,
|
|
142
|
-
"right": 20,
|
|
143
|
-
"bottom": 30,
|
|
144
|
-
"left": 40
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
]
|
|
149
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "screenshot",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "Capture a screenshot and optionally compare it with a previous image.",
|
|
5
|
-
"properties": {
|
|
6
|
-
"action": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"const": "screenshot"
|
|
9
|
-
},
|
|
10
|
-
"mediaDirectory": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "The directory path for media created by the action. Overrides the default directory config. Default is config.imageDirectory or config.videoDirectory depending on the file type."
|
|
13
|
-
},
|
|
14
|
-
"filename": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"description": "Name of the media file. If not specified, the filename is randomized."
|
|
17
|
-
},
|
|
18
|
-
"matchPrevious": {
|
|
19
|
-
"type": "boolean",
|
|
20
|
-
"description": "If `true`, performs a pixel-diff against an image that matches the path of the new screenshot. If a previous image doesn't exist at the path, this option is ignored.",
|
|
21
|
-
"default": false
|
|
22
|
-
},
|
|
23
|
-
"matchThreshold": {
|
|
24
|
-
"type": "number",
|
|
25
|
-
"description": "Decimal value of percentage of pixels that must be different between the old and new screenshots to fail the action. For example, a value of `0.3` fails the action if the diff is 30% or more of pixels.",
|
|
26
|
-
"default": 0.3,
|
|
27
|
-
"exclusiveMinimum": 0,
|
|
28
|
-
"maximum": 1
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"required": [
|
|
32
|
-
"action"
|
|
33
|
-
],
|
|
34
|
-
"additionalProperties": false,
|
|
35
|
-
"examples": [
|
|
36
|
-
{
|
|
37
|
-
"action": "screenshot",
|
|
38
|
-
"filename": "results.png"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"action": "screenshot",
|
|
42
|
-
"mediaDirectory": "samples",
|
|
43
|
-
"filename": "results.png",
|
|
44
|
-
"matchPrevious": true,
|
|
45
|
-
"matchThreshold": 0.3
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
}
|