doc-detective-common 3.6.1 → 4.0.0-beta.0
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/.c8rc.json +8 -0
- package/.claude/settings.local.json +11 -0
- package/.claude/skills/tdd-coverage/SKILL.md +161 -0
- package/AGENTS.md +332 -285
- package/CLAUDE.md +38 -0
- package/LICENSE +661 -661
- package/README.md +78 -48
- package/coverage-thresholds.json +8 -0
- package/dist/detectTests.d.ts +106 -0
- package/dist/detectTests.d.ts.map +1 -0
- package/dist/detectTests.js +530 -0
- package/dist/detectTests.js.map +1 -0
- package/dist/files.d.ts +16 -0
- package/dist/files.d.ts.map +1 -0
- package/dist/files.js +123 -0
- package/dist/files.js.map +1 -0
- package/dist/index.cjs +122283 -0
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +4 -0
- package/dist/resolvePaths.d.ts +28 -0
- package/dist/resolvePaths.d.ts.map +1 -0
- package/dist/resolvePaths.js +236 -0
- package/dist/resolvePaths.js.map +1 -0
- package/dist/schemas/index.d.ts +5 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +3 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/schemas.json +121359 -0
- package/dist/types/generated/checkLink_v3.d.ts +27 -0
- package/dist/types/generated/checkLink_v3.d.ts.map +1 -0
- package/dist/types/generated/checkLink_v3.js +7 -0
- package/dist/types/generated/checkLink_v3.js.map +1 -0
- package/dist/types/generated/click_v3.d.ts +16 -0
- package/dist/types/generated/click_v3.d.ts.map +1 -0
- package/dist/types/generated/click_v3.js +7 -0
- package/dist/types/generated/click_v3.js.map +1 -0
- package/dist/types/generated/config_v3.d.ts +398 -0
- package/dist/types/generated/config_v3.d.ts.map +1 -0
- package/dist/types/generated/config_v3.js +7 -0
- package/dist/types/generated/config_v3.js.map +1 -0
- package/dist/types/generated/context_v3.d.ts +108 -0
- package/dist/types/generated/context_v3.d.ts.map +1 -0
- package/dist/types/generated/context_v3.js +7 -0
- package/dist/types/generated/context_v3.js.map +1 -0
- package/dist/types/generated/dragAndDrop_v3.d.ts +37 -0
- package/dist/types/generated/dragAndDrop_v3.d.ts.map +1 -0
- package/dist/types/generated/dragAndDrop_v3.js +7 -0
- package/dist/types/generated/dragAndDrop_v3.js.map +1 -0
- package/dist/types/generated/endRecord_v3.d.ts +9 -0
- package/dist/types/generated/endRecord_v3.d.ts.map +1 -0
- package/dist/types/generated/endRecord_v3.js +7 -0
- package/dist/types/generated/endRecord_v3.js.map +1 -0
- package/dist/types/generated/find_v3.d.ts +16 -0
- package/dist/types/generated/find_v3.d.ts.map +1 -0
- package/dist/types/generated/find_v3.js +7 -0
- package/dist/types/generated/find_v3.js.map +1 -0
- package/dist/types/generated/goTo_v3.d.ts +46 -0
- package/dist/types/generated/goTo_v3.d.ts.map +1 -0
- package/dist/types/generated/goTo_v3.js +7 -0
- package/dist/types/generated/goTo_v3.js.map +1 -0
- package/dist/types/generated/httpRequest_v3.d.ts +16 -0
- package/dist/types/generated/httpRequest_v3.d.ts.map +1 -0
- package/dist/types/generated/httpRequest_v3.js +7 -0
- package/dist/types/generated/httpRequest_v3.js.map +1 -0
- package/dist/types/generated/loadCookie_v3.d.ts +16 -0
- package/dist/types/generated/loadCookie_v3.d.ts.map +1 -0
- package/dist/types/generated/loadCookie_v3.js +7 -0
- package/dist/types/generated/loadCookie_v3.js.map +1 -0
- package/dist/types/generated/loadVariables_v3.d.ts +9 -0
- package/dist/types/generated/loadVariables_v3.d.ts.map +1 -0
- package/dist/types/generated/loadVariables_v3.js +7 -0
- package/dist/types/generated/loadVariables_v3.js.map +1 -0
- package/dist/types/generated/openApi_v3.d.ts +62 -0
- package/dist/types/generated/openApi_v3.d.ts.map +1 -0
- package/dist/types/generated/openApi_v3.js +7 -0
- package/dist/types/generated/openApi_v3.js.map +1 -0
- package/dist/types/generated/record_v3.d.ts +32 -0
- package/dist/types/generated/record_v3.d.ts.map +1 -0
- package/dist/types/generated/record_v3.js +7 -0
- package/dist/types/generated/record_v3.js.map +1 -0
- package/dist/types/generated/report_v3.d.ts +174 -0
- package/dist/types/generated/report_v3.d.ts.map +1 -0
- package/dist/types/generated/report_v3.js +7 -0
- package/dist/types/generated/report_v3.js.map +1 -0
- package/dist/types/generated/resolvedTests_v3.d.ts +571 -0
- package/dist/types/generated/resolvedTests_v3.d.ts.map +1 -0
- package/dist/types/generated/resolvedTests_v3.js +7 -0
- package/dist/types/generated/resolvedTests_v3.js.map +1 -0
- package/dist/types/generated/runCode_v3.d.ts +57 -0
- package/dist/types/generated/runCode_v3.d.ts.map +1 -0
- package/dist/types/generated/runCode_v3.js +7 -0
- package/dist/types/generated/runCode_v3.js.map +1 -0
- package/dist/types/generated/runShell_v3.d.ts +56 -0
- package/dist/types/generated/runShell_v3.d.ts.map +1 -0
- package/dist/types/generated/runShell_v3.js +7 -0
- package/dist/types/generated/runShell_v3.js.map +1 -0
- package/dist/types/generated/saveCookie_v3.d.ts +16 -0
- package/dist/types/generated/saveCookie_v3.d.ts.map +1 -0
- package/dist/types/generated/saveCookie_v3.js +7 -0
- package/dist/types/generated/saveCookie_v3.js.map +1 -0
- package/dist/types/generated/screenshot_v3.d.ts +74 -0
- package/dist/types/generated/screenshot_v3.d.ts.map +1 -0
- package/dist/types/generated/screenshot_v3.js +7 -0
- package/dist/types/generated/screenshot_v3.js.map +1 -0
- package/dist/types/generated/sourceIntegration_v3.d.ts +30 -0
- package/dist/types/generated/sourceIntegration_v3.d.ts.map +1 -0
- package/dist/types/generated/sourceIntegration_v3.js +7 -0
- package/dist/types/generated/sourceIntegration_v3.js.map +1 -0
- package/dist/types/generated/spec_v3.d.ts +159 -0
- package/dist/types/generated/spec_v3.d.ts.map +1 -0
- package/dist/types/generated/spec_v3.js +7 -0
- package/dist/types/generated/spec_v3.js.map +1 -0
- package/dist/types/generated/step_v3.d.ts +1270 -0
- package/dist/types/generated/step_v3.d.ts.map +1 -0
- package/dist/types/generated/step_v3.js +7 -0
- package/dist/types/generated/step_v3.js.map +1 -0
- package/dist/types/generated/stopRecord_v3.d.ts +9 -0
- package/dist/types/generated/stopRecord_v3.d.ts.map +1 -0
- package/dist/types/generated/stopRecord_v3.js +7 -0
- package/dist/types/generated/stopRecord_v3.js.map +1 -0
- package/dist/types/generated/test_v3.d.ts +2915 -0
- package/dist/types/generated/test_v3.d.ts.map +1 -0
- package/dist/types/generated/test_v3.js +7 -0
- package/dist/types/generated/test_v3.js.map +1 -0
- package/dist/types/generated/type_v3.d.ts +54 -0
- package/dist/types/generated/type_v3.d.ts.map +1 -0
- package/dist/types/generated/type_v3.js +7 -0
- package/dist/types/generated/type_v3.js.map +1 -0
- package/dist/types/generated/wait_v3.d.ts +12 -0
- package/dist/types/generated/wait_v3.d.ts.map +1 -0
- package/dist/types/generated/wait_v3.js +7 -0
- package/dist/types/generated/wait_v3.js.map +1 -0
- package/dist/validate.d.ts +41 -0
- package/dist/validate.d.ts.map +1 -0
- package/dist/validate.js +557 -0
- package/dist/validate.js.map +1 -0
- package/package.json +60 -36
- package/plans/plan-typescriptMigration.prompt.md +25 -0
- package/scripts/check-coverage-ratchet.cjs +118 -0
- package/scripts/createCjsWrapper.js +25 -0
- package/scripts/generateTypes.cjs +54 -0
- package/src/detectTests.ts +616 -0
- package/src/index.ts +3 -0
- package/src/schemas/build/arazzo_v2.schema.json +41 -0
- package/src/schemas/build/checkLink_v2.schema.json +1 -1
- package/src/schemas/build/checkLink_v3.schema.json +1 -1
- package/src/schemas/build/checkLink_v3.schema.yaml +83 -0
- package/src/schemas/build/click_v3.schema.json +1 -1
- package/src/schemas/build/config_v2.schema.json +14 -14
- package/src/schemas/build/config_v3.schema.json +6 -6
- package/src/schemas/build/context_v2.schema.json +1 -1
- package/src/schemas/build/context_v3.schema.json +1 -1
- package/src/schemas/build/dragAndDrop_v3.schema.json +1 -1
- package/src/schemas/build/find_v2.schema.json +3 -3
- package/src/schemas/build/find_v3.schema.json +4 -4
- package/src/schemas/build/goTo_v2.schema.json +1 -1
- package/src/schemas/build/goTo_v3.schema.json +1 -1
- package/src/schemas/build/httpRequest_v2.schema.json +2 -2
- package/src/schemas/build/httpRequest_v3.schema.json +3 -3
- package/src/schemas/build/loadCookie_v3.schema.json +1 -1
- package/src/schemas/build/loadVariables_v3.schema.json +1 -1
- package/src/schemas/build/moveTo_v2.schema.json +1 -1
- package/src/schemas/build/openApi_v2.schema.json +1 -1
- package/src/schemas/build/openApi_v3.schema.json +1 -1
- package/src/schemas/build/record_v3.schema.json +1 -1
- package/src/schemas/build/report_v3.schema.json +5 -5
- package/src/schemas/build/resolvedTests_v3.schema.json +3 -3
- package/src/schemas/build/runCode_v2.schema.json +1 -1
- package/src/schemas/build/runCode_v3.schema.json +1 -1
- package/src/schemas/build/runShell_v2.schema.json +1 -1
- package/src/schemas/build/runShell_v3.schema.json +1 -1
- package/src/schemas/build/saveCookie_v3.schema.json +1 -1
- package/src/schemas/build/saveScreenshot_v2.schema.json +1 -1
- package/src/schemas/build/screenshot_v3.schema.json +2 -2
- package/src/schemas/build/setVariables_v2.schema.json +1 -1
- package/src/schemas/build/sourceIntegration_v3.schema.json +1 -1
- package/src/schemas/build/spec_v2.schema.json +4 -4
- package/src/schemas/build/spec_v3.schema.json +4 -4
- package/src/schemas/build/startRecording_v2.schema.json +1 -1
- package/src/schemas/build/step_v3.schema.json +38 -38
- package/src/schemas/build/stopRecord_v3.schema.json +1 -1
- package/src/schemas/build/stopRecording_v2.schema.json +1 -1
- package/src/schemas/build/terminateScope_v3.schema.json +48 -0
- package/src/schemas/build/test_v2.schema.json +15 -15
- package/src/schemas/build/test_v3.schema.json +6 -6
- package/src/schemas/build/typeKeys_v2.schema.json +1 -1
- package/src/schemas/build/type_v3.schema.json +1 -1
- package/src/schemas/build/wait_v2.schema.json +1 -1
- package/src/schemas/build/wait_v3.schema.json +1 -1
- package/src/schemas/{dereferenceSchemas.js → dereferenceSchemas.cjs} +206 -206
- package/src/schemas/index.ts +6 -0
- package/src/schemas/output_schemas/endRecord_v3.schema.json +13 -13
- package/src/schemas/src_schemas/checkLink_v2.schema.json +65 -65
- package/src/schemas/src_schemas/checkLink_v3.schema.json +90 -90
- package/src/schemas/src_schemas/click_v3.schema.json +143 -143
- package/src/schemas/src_schemas/config_v2.schema.json +929 -929
- package/src/schemas/src_schemas/config_v3.schema.json +633 -633
- package/src/schemas/src_schemas/context_v2.schema.json +108 -108
- package/src/schemas/src_schemas/context_v3.schema.json +202 -202
- package/src/schemas/src_schemas/dragAndDrop_v3.schema.json +184 -184
- package/src/schemas/src_schemas/find_v2.schema.json +155 -155
- package/src/schemas/src_schemas/find_v3.schema.json +209 -209
- package/src/schemas/src_schemas/goTo_v2.schema.json +57 -57
- package/src/schemas/src_schemas/goTo_v3.schema.json +232 -232
- package/src/schemas/src_schemas/httpRequest_v2.schema.json +284 -284
- package/src/schemas/src_schemas/httpRequest_v3.schema.json +402 -402
- package/src/schemas/src_schemas/loadCookie_v3.schema.json +113 -113
- package/src/schemas/src_schemas/loadVariables_v3.schema.json +8 -8
- package/src/schemas/src_schemas/openApi_v2.schema.json +64 -64
- package/src/schemas/src_schemas/openApi_v3.schema.json +160 -160
- package/src/schemas/src_schemas/record_v3.schema.json +68 -68
- package/src/schemas/src_schemas/report_v3.schema.json +51 -51
- package/src/schemas/src_schemas/resolvedTests_v3.schema.json +236 -236
- package/src/schemas/src_schemas/runCode_v2.schema.json +181 -181
- package/src/schemas/src_schemas/runCode_v3.schema.json +136 -136
- package/src/schemas/src_schemas/runShell_v2.schema.json +166 -166
- package/src/schemas/src_schemas/runShell_v3.schema.json +154 -154
- package/src/schemas/src_schemas/saveCookie_v3.schema.json +124 -124
- package/src/schemas/src_schemas/saveScreenshot_v2.schema.json +129 -129
- package/src/schemas/src_schemas/screenshot_v3.schema.json +248 -248
- package/src/schemas/src_schemas/setVariables_v2.schema.json +37 -37
- package/src/schemas/src_schemas/sourceIntegration_v3.schema.json +45 -45
- package/src/schemas/src_schemas/spec_v2.schema.json +175 -175
- package/src/schemas/src_schemas/spec_v3.schema.json +211 -211
- package/src/schemas/src_schemas/startRecording_v2.schema.json +54 -54
- package/src/schemas/src_schemas/step_v3.schema.json +632 -632
- package/src/schemas/src_schemas/stopRecord_v3.schema.json +13 -13
- package/src/schemas/src_schemas/stopRecording_v2.schema.json +31 -31
- package/src/schemas/src_schemas/test_v2.schema.json +200 -200
- package/src/schemas/src_schemas/test_v3.schema.json +268 -268
- package/src/schemas/src_schemas/typeKeys_v2.schema.json +63 -63
- package/src/schemas/src_schemas/type_v3.schema.json +118 -118
- package/src/schemas/src_schemas/wait_v3.schema.json +35 -35
- package/src/types/generated/checkLink_v3.ts +29 -0
- package/src/types/generated/click_v3.ts +17 -0
- package/src/types/generated/config_v3.ts +405 -0
- package/src/types/generated/context_v3.ts +112 -0
- package/src/types/generated/dragAndDrop_v3.ts +39 -0
- package/src/types/generated/endRecord_v3.ts +10 -0
- package/src/types/generated/find_v3.ts +17 -0
- package/src/types/generated/goTo_v3.ts +48 -0
- package/src/types/generated/httpRequest_v3.ts +17 -0
- package/src/types/generated/loadCookie_v3.ts +17 -0
- package/src/types/generated/loadVariables_v3.ts +10 -0
- package/src/types/generated/openApi_v3.ts +64 -0
- package/src/types/generated/record_v3.ts +34 -0
- package/src/types/generated/report_v3.ts +183 -0
- package/src/types/generated/resolvedTests_v3.ts +585 -0
- package/src/types/generated/runCode_v3.ts +59 -0
- package/src/types/generated/runShell_v3.ts +58 -0
- package/src/types/generated/saveCookie_v3.ts +17 -0
- package/src/types/generated/screenshot_v3.ts +76 -0
- package/src/types/generated/sourceIntegration_v3.ts +31 -0
- package/src/types/generated/spec_v3.ts +166 -0
- package/src/types/generated/step_v3.ts +1288 -0
- package/src/types/generated/stopRecord_v3.ts +10 -0
- package/src/types/generated/test_v3.ts +3048 -0
- package/src/types/generated/type_v3.ts +56 -0
- package/src/types/generated/wait_v3.ts +13 -0
- package/src/{validate.js → validate.ts} +627 -587
- package/tsconfig.json +22 -0
- package/src/files.js +0 -84
- package/src/index.js +0 -12
- package/src/resolvePaths.js +0 -252
- package/src/schemas/index.js +0 -6
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "stopRecord",
|
|
4
|
-
"description": "Stop the current recording.",
|
|
5
|
-
"anyOf": [
|
|
6
|
-
{
|
|
7
|
-
"type": "boolean",
|
|
8
|
-
"nullable": true
|
|
9
|
-
}
|
|
10
|
-
],
|
|
11
|
-
"examples": [
|
|
12
|
-
true
|
|
13
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "stopRecord",
|
|
4
|
+
"description": "Stop the current recording.",
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "boolean",
|
|
8
|
+
"nullable": true
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"examples": [
|
|
12
|
+
true
|
|
13
|
+
]
|
|
14
14
|
}
|
|
@@ -1,32 +1,32 @@
|
|
|
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
|
-
]
|
|
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
32
|
}
|
|
@@ -1,200 +1,200 @@
|
|
|
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": "context_v2.schema.json#"
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"openApi": {
|
|
34
|
-
"type": "array",
|
|
35
|
-
"items": {
|
|
36
|
-
"allOf": [
|
|
37
|
-
{
|
|
38
|
-
"$ref": "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": ["name", "descriptionPath"]
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"setup": {
|
|
54
|
-
"type": "string",
|
|
55
|
-
"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."
|
|
56
|
-
},
|
|
57
|
-
"cleanup": {
|
|
58
|
-
"type": "string",
|
|
59
|
-
"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."
|
|
60
|
-
},
|
|
61
|
-
"steps": {
|
|
62
|
-
"description": "Actions to perform as part of the test. Performed in the sequence defined. If one or more actions fail, the test fails.",
|
|
63
|
-
"type": "array",
|
|
64
|
-
"minItems": 1,
|
|
65
|
-
"items": {
|
|
66
|
-
"anyOf": [
|
|
67
|
-
{ "$ref": "checkLink_v2.schema.json#" },
|
|
68
|
-
{ "$ref": "goTo_v2.schema.json#" },
|
|
69
|
-
{ "$ref": "httpRequest_v2.schema.json#" },
|
|
70
|
-
{ "$ref": "runCode_v2.schema.json#" },
|
|
71
|
-
{ "$ref": "runShell_v2.schema.json#" },
|
|
72
|
-
{ "$ref": "saveScreenshot_v2.schema.json#" },
|
|
73
|
-
{ "$ref": "setVariables_v2.schema.json#" },
|
|
74
|
-
{ "$ref": "startRecording_v2.schema.json#" },
|
|
75
|
-
{ "$ref": "stopRecording_v2.schema.json#" },
|
|
76
|
-
{ "$ref": "typeKeys_v2.schema.json#" },
|
|
77
|
-
{ "$ref": "find_v2.schema.json#" },
|
|
78
|
-
{ "$ref": "wait_v2.schema.json#" }
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
"dynamicDefaults": {
|
|
84
|
-
"id": "uuid"
|
|
85
|
-
},
|
|
86
|
-
"required": ["steps"],
|
|
87
|
-
"additionalProperties": false,
|
|
88
|
-
"examples": [
|
|
89
|
-
{
|
|
90
|
-
"steps": [
|
|
91
|
-
{
|
|
92
|
-
"action": "checkLink",
|
|
93
|
-
"url": "https://www.duckduckgo.com"
|
|
94
|
-
}
|
|
95
|
-
]
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"steps": [
|
|
99
|
-
{
|
|
100
|
-
"action": "goTo",
|
|
101
|
-
"url": "https://www.duckduckgo.com"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"action": "find",
|
|
105
|
-
"selector": "[title=Search]",
|
|
106
|
-
"click": true,
|
|
107
|
-
"typeKeys": {
|
|
108
|
-
"keys": ["shorthair cats", "$ENTER$"]
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
]
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"id": "Do all the things! - Test",
|
|
115
|
-
"description": "This test includes every property across all actions.",
|
|
116
|
-
"contexts": [
|
|
117
|
-
{
|
|
118
|
-
"app": {
|
|
119
|
-
"name": "firefox",
|
|
120
|
-
"path": "/usr/bin/firefox"
|
|
121
|
-
},
|
|
122
|
-
"platforms": ["linux"]
|
|
123
|
-
}
|
|
124
|
-
],
|
|
125
|
-
"setup": "setup.json",
|
|
126
|
-
"cleanup": "cleanup.json",
|
|
127
|
-
"steps": [
|
|
128
|
-
{
|
|
129
|
-
"action": "setVariables",
|
|
130
|
-
"path": ".env"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"action": "runShell",
|
|
134
|
-
"command": "echo",
|
|
135
|
-
"args": ["$USER"]
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"action": "checkLink",
|
|
139
|
-
"url": "https://www.duckduckgo.com"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"action": "httpRequest",
|
|
143
|
-
"url": "https://reqres.in/api/users",
|
|
144
|
-
"method": "post",
|
|
145
|
-
"requestData": {
|
|
146
|
-
"name": "morpheus",
|
|
147
|
-
"job": "leader"
|
|
148
|
-
},
|
|
149
|
-
"responseData": {
|
|
150
|
-
"name": "morpheus",
|
|
151
|
-
"job": "leader"
|
|
152
|
-
},
|
|
153
|
-
"statusCodes": [200, 201]
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"action": "goTo",
|
|
157
|
-
"url": "https://www.duckduckgo.com"
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"action": "find",
|
|
161
|
-
"selector": "[title=Search]",
|
|
162
|
-
"timeout": 10000,
|
|
163
|
-
"matchText": "Search",
|
|
164
|
-
"moveTo": true,
|
|
165
|
-
"click": true,
|
|
166
|
-
"typeKeys": {
|
|
167
|
-
"keys": ["shorthair cat"]
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"action": "typeKeys",
|
|
172
|
-
"keys": ["$ENTER$"]
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"action": "saveScreenshot"
|
|
176
|
-
}
|
|
177
|
-
]
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"openApi": [
|
|
181
|
-
{
|
|
182
|
-
"name": "Acme",
|
|
183
|
-
"descriptionPath": "https://www.acme.com/openapi.json",
|
|
184
|
-
"server": "https://api.acme.com"
|
|
185
|
-
}
|
|
186
|
-
],
|
|
187
|
-
"steps": [
|
|
188
|
-
{
|
|
189
|
-
"action": "httpRequest",
|
|
190
|
-
"openApi": {
|
|
191
|
-
"operationId": "getUserById"
|
|
192
|
-
},
|
|
193
|
-
"requestParams": {
|
|
194
|
-
"id": 123
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
]
|
|
198
|
-
}
|
|
199
|
-
]
|
|
200
|
-
}
|
|
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": "context_v2.schema.json#"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"openApi": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"items": {
|
|
36
|
+
"allOf": [
|
|
37
|
+
{
|
|
38
|
+
"$ref": "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": ["name", "descriptionPath"]
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"setup": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"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."
|
|
56
|
+
},
|
|
57
|
+
"cleanup": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"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."
|
|
60
|
+
},
|
|
61
|
+
"steps": {
|
|
62
|
+
"description": "Actions to perform as part of the test. Performed in the sequence defined. If one or more actions fail, the test fails.",
|
|
63
|
+
"type": "array",
|
|
64
|
+
"minItems": 1,
|
|
65
|
+
"items": {
|
|
66
|
+
"anyOf": [
|
|
67
|
+
{ "$ref": "checkLink_v2.schema.json#" },
|
|
68
|
+
{ "$ref": "goTo_v2.schema.json#" },
|
|
69
|
+
{ "$ref": "httpRequest_v2.schema.json#" },
|
|
70
|
+
{ "$ref": "runCode_v2.schema.json#" },
|
|
71
|
+
{ "$ref": "runShell_v2.schema.json#" },
|
|
72
|
+
{ "$ref": "saveScreenshot_v2.schema.json#" },
|
|
73
|
+
{ "$ref": "setVariables_v2.schema.json#" },
|
|
74
|
+
{ "$ref": "startRecording_v2.schema.json#" },
|
|
75
|
+
{ "$ref": "stopRecording_v2.schema.json#" },
|
|
76
|
+
{ "$ref": "typeKeys_v2.schema.json#" },
|
|
77
|
+
{ "$ref": "find_v2.schema.json#" },
|
|
78
|
+
{ "$ref": "wait_v2.schema.json#" }
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"dynamicDefaults": {
|
|
84
|
+
"id": "uuid"
|
|
85
|
+
},
|
|
86
|
+
"required": ["steps"],
|
|
87
|
+
"additionalProperties": false,
|
|
88
|
+
"examples": [
|
|
89
|
+
{
|
|
90
|
+
"steps": [
|
|
91
|
+
{
|
|
92
|
+
"action": "checkLink",
|
|
93
|
+
"url": "https://www.duckduckgo.com"
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"steps": [
|
|
99
|
+
{
|
|
100
|
+
"action": "goTo",
|
|
101
|
+
"url": "https://www.duckduckgo.com"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"action": "find",
|
|
105
|
+
"selector": "[title=Search]",
|
|
106
|
+
"click": true,
|
|
107
|
+
"typeKeys": {
|
|
108
|
+
"keys": ["shorthair cats", "$ENTER$"]
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"id": "Do all the things! - Test",
|
|
115
|
+
"description": "This test includes every property across all actions.",
|
|
116
|
+
"contexts": [
|
|
117
|
+
{
|
|
118
|
+
"app": {
|
|
119
|
+
"name": "firefox",
|
|
120
|
+
"path": "/usr/bin/firefox"
|
|
121
|
+
},
|
|
122
|
+
"platforms": ["linux"]
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"setup": "setup.json",
|
|
126
|
+
"cleanup": "cleanup.json",
|
|
127
|
+
"steps": [
|
|
128
|
+
{
|
|
129
|
+
"action": "setVariables",
|
|
130
|
+
"path": ".env"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"action": "runShell",
|
|
134
|
+
"command": "echo",
|
|
135
|
+
"args": ["$USER"]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"action": "checkLink",
|
|
139
|
+
"url": "https://www.duckduckgo.com"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"action": "httpRequest",
|
|
143
|
+
"url": "https://reqres.in/api/users",
|
|
144
|
+
"method": "post",
|
|
145
|
+
"requestData": {
|
|
146
|
+
"name": "morpheus",
|
|
147
|
+
"job": "leader"
|
|
148
|
+
},
|
|
149
|
+
"responseData": {
|
|
150
|
+
"name": "morpheus",
|
|
151
|
+
"job": "leader"
|
|
152
|
+
},
|
|
153
|
+
"statusCodes": [200, 201]
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"action": "goTo",
|
|
157
|
+
"url": "https://www.duckduckgo.com"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"action": "find",
|
|
161
|
+
"selector": "[title=Search]",
|
|
162
|
+
"timeout": 10000,
|
|
163
|
+
"matchText": "Search",
|
|
164
|
+
"moveTo": true,
|
|
165
|
+
"click": true,
|
|
166
|
+
"typeKeys": {
|
|
167
|
+
"keys": ["shorthair cat"]
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"action": "typeKeys",
|
|
172
|
+
"keys": ["$ENTER$"]
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"action": "saveScreenshot"
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"openApi": [
|
|
181
|
+
{
|
|
182
|
+
"name": "Acme",
|
|
183
|
+
"descriptionPath": "https://www.acme.com/openapi.json",
|
|
184
|
+
"server": "https://api.acme.com"
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"steps": [
|
|
188
|
+
{
|
|
189
|
+
"action": "httpRequest",
|
|
190
|
+
"openApi": {
|
|
191
|
+
"operationId": "getUserById"
|
|
192
|
+
},
|
|
193
|
+
"requestParams": {
|
|
194
|
+
"id": 123
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
}
|