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,108 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "context",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "An application and supported platforms.\n\nIf no contexts are specified but a context is required by one or more tests, Doc Detective attempts to identify a supported context in the current environment and run tests against it. For browsers, context priority is Firefox > Chrome > Chromium.",
|
|
5
|
-
"properties": {
|
|
6
|
-
"app": {
|
|
7
|
-
"type": "object",
|
|
8
|
-
"description": "The application to run.",
|
|
9
|
-
"additionalProperties": false,
|
|
10
|
-
"required": ["name"],
|
|
11
|
-
"properties": {
|
|
12
|
-
"name": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"description": "Name of the application.",
|
|
15
|
-
"enum": ["chrome", "firefox", "safari", "edge"]
|
|
16
|
-
},
|
|
17
|
-
"path": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"description": "Absolute path or command for the application. If not specified, defaults to typical install paths per platform. If specified but the path is invalid, the context is skipped."
|
|
20
|
-
},
|
|
21
|
-
"options": {
|
|
22
|
-
"type": "object",
|
|
23
|
-
"description": "Options to pass to the app. Only works when `name` is `firefox` or `chrome`.",
|
|
24
|
-
"additionalProperties": false,
|
|
25
|
-
"properties": {
|
|
26
|
-
"width": {
|
|
27
|
-
"type": "integer",
|
|
28
|
-
"description": "Width of the window in pixels."
|
|
29
|
-
},
|
|
30
|
-
"height": {
|
|
31
|
-
"type": "integer",
|
|
32
|
-
"description": "Height of the window in pixels."
|
|
33
|
-
},
|
|
34
|
-
"viewport_height": {
|
|
35
|
-
"type": "integer",
|
|
36
|
-
"description": "Height of the viewport in pixels. Overrides `height`."
|
|
37
|
-
},
|
|
38
|
-
"viewport_width": {
|
|
39
|
-
"type": "integer",
|
|
40
|
-
"description": "Width of the viewport in pixels. Overrides `width`."
|
|
41
|
-
},
|
|
42
|
-
"headless": {
|
|
43
|
-
"type": "boolean",
|
|
44
|
-
"description": "If `true`, runs the browser in headless mode. Not supported by Safari."
|
|
45
|
-
},
|
|
46
|
-
"driverPath": {
|
|
47
|
-
"type": "string",
|
|
48
|
-
"description": "Path to the browser driver. If not specified, defaults to internally managed dependencies."
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
"platforms": {
|
|
55
|
-
"description": "Supported platforms for the application.",
|
|
56
|
-
"type": "array",
|
|
57
|
-
"items": {
|
|
58
|
-
"type": "string",
|
|
59
|
-
"enum": ["linux", "mac", "windows"]
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"required": ["app", "platforms"],
|
|
64
|
-
"additionalProperties": false,
|
|
65
|
-
"examples": [
|
|
66
|
-
{
|
|
67
|
-
"app": {
|
|
68
|
-
"name": "chrome"
|
|
69
|
-
},
|
|
70
|
-
"platforms": ["linux"]
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"app": {
|
|
74
|
-
"name": "chrome",
|
|
75
|
-
"options": {
|
|
76
|
-
"viewport_width": 800,
|
|
77
|
-
"viewport_height": 600
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"platforms": ["linux"]
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"app": {
|
|
84
|
-
"name": "firefox",
|
|
85
|
-
"options": {
|
|
86
|
-
"width": 800,
|
|
87
|
-
"height": 600,
|
|
88
|
-
"headless": false,
|
|
89
|
-
"driverPath": "/usr/bin/geckodriver"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"platforms": ["linux", "windows", "mac"]
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"app": {
|
|
96
|
-
"name": "safari"
|
|
97
|
-
},
|
|
98
|
-
"platforms": ["mac"]
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"app": {
|
|
102
|
-
"name": "firefox",
|
|
103
|
-
"path": "/usr/bin/firefox"
|
|
104
|
-
},
|
|
105
|
-
"platforms": ["linux"]
|
|
106
|
-
}
|
|
107
|
-
]
|
|
108
|
-
}
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "context",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"description": "A context in which to perform tests. If no contexts are specified but a context is required by one or more tests, Doc Detective attempts to identify a supported context in the current environment and run tests against it. For example, if a browser isn't specified but is required by steps in the test, Doc Detective will search for and use a supported browser available in the current environment.",
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"dynamicDefaults": {
|
|
8
|
-
"contextId": "uuid"
|
|
9
|
-
},
|
|
10
|
-
"properties": {
|
|
11
|
-
"$schema": {
|
|
12
|
-
"description": "JSON Schema for this object.",
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": [
|
|
15
|
-
"https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/context_v3.schema.json"
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
"contextId": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"description": "Unique identifier for the context."
|
|
21
|
-
},
|
|
22
|
-
"platforms": {
|
|
23
|
-
"description": "Platforms to run tests on.",
|
|
24
|
-
"anyOf": [
|
|
25
|
-
{
|
|
26
|
-
"$ref": "#/components/schemas/platform"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"type": "array",
|
|
30
|
-
"items": {
|
|
31
|
-
"$ref": "#/components/schemas/platform"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
"browsers": {
|
|
37
|
-
"description": "Browsers to run tests on.",
|
|
38
|
-
"anyOf": [
|
|
39
|
-
{
|
|
40
|
-
"$ref": "#/components/schemas/browserName"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"$ref": "#/components/schemas/browser"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"type": "array",
|
|
47
|
-
"items": {
|
|
48
|
-
"anyOf": [
|
|
49
|
-
{
|
|
50
|
-
"$ref": "#/components/schemas/browserName"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"$ref": "#/components/schemas/browser"
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
"components": {
|
|
62
|
-
"schemas": {
|
|
63
|
-
"platform": {
|
|
64
|
-
"type": "string",
|
|
65
|
-
"enum": ["linux", "mac", "windows"]
|
|
66
|
-
},
|
|
67
|
-
"browserName": {
|
|
68
|
-
"type": "string",
|
|
69
|
-
"description": "Name of the browser.",
|
|
70
|
-
"enum": ["chrome", "firefox", "safari", "webkit"],
|
|
71
|
-
"$comment": "`safari` is just a shortcut for `webkit`. Included for visibility and to reduce questions."
|
|
72
|
-
},
|
|
73
|
-
"browser": {
|
|
74
|
-
"type": "object",
|
|
75
|
-
"description": "Browser configuration.",
|
|
76
|
-
"required": ["name"],
|
|
77
|
-
"additionalProperties": false,
|
|
78
|
-
"properties": {
|
|
79
|
-
"name": {
|
|
80
|
-
"$ref": "#/components/schemas/browserName"
|
|
81
|
-
},
|
|
82
|
-
"headless": {
|
|
83
|
-
"type": "boolean",
|
|
84
|
-
"description": "If `true`, runs the browser in headless mode.",
|
|
85
|
-
"default": true
|
|
86
|
-
},
|
|
87
|
-
"window": {
|
|
88
|
-
"type": "object",
|
|
89
|
-
"description": "Browser dimensions.",
|
|
90
|
-
"additionalProperties": false,
|
|
91
|
-
"properties": {
|
|
92
|
-
"width": {
|
|
93
|
-
"type": "integer",
|
|
94
|
-
"description": "Width of the browser window in pixels."
|
|
95
|
-
},
|
|
96
|
-
"height": {
|
|
97
|
-
"type": "integer",
|
|
98
|
-
"description": "Height of the browser window in pixels."
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
"title": "Browser Window"
|
|
102
|
-
},
|
|
103
|
-
"viewport": {
|
|
104
|
-
"type": "object",
|
|
105
|
-
"description": "Viewport dimensions.",
|
|
106
|
-
"additionalProperties": false,
|
|
107
|
-
"properties": {
|
|
108
|
-
"width": {
|
|
109
|
-
"type": "integer",
|
|
110
|
-
"description": "Width of the viewport in pixels."
|
|
111
|
-
},
|
|
112
|
-
"height": {
|
|
113
|
-
"type": "integer",
|
|
114
|
-
"description": "Height of the viewport in pixels."
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
"title": "Browser Viewport"
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
"title": "Browser"
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
"examples": [
|
|
125
|
-
{
|
|
126
|
-
"platforms": "linux",
|
|
127
|
-
"browsers": "chrome"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"platforms": ["windows", "mac", "linux"],
|
|
131
|
-
"browsers": ["chrome", "firefox", "webkit"]
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"browsers": {
|
|
135
|
-
"name": "chrome",
|
|
136
|
-
"headless": true
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"browsers": [
|
|
141
|
-
{
|
|
142
|
-
"name": "chrome",
|
|
143
|
-
"headless": true
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"name": "firefox"
|
|
147
|
-
}
|
|
148
|
-
]
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"platforms": ["mac", "linux"],
|
|
152
|
-
"browsers": {
|
|
153
|
-
"name": "chrome",
|
|
154
|
-
"headless": true
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"platforms": ["windows", "mac", "linux"],
|
|
159
|
-
"browsers": [
|
|
160
|
-
{
|
|
161
|
-
"name": "chrome",
|
|
162
|
-
"headless": true,
|
|
163
|
-
"window": {
|
|
164
|
-
"width": 1920,
|
|
165
|
-
"height": 1080
|
|
166
|
-
},
|
|
167
|
-
"viewport": {
|
|
168
|
-
"width": 1600,
|
|
169
|
-
"height": 900
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"name": "firefox",
|
|
174
|
-
"window": {
|
|
175
|
-
"width": 1366,
|
|
176
|
-
"height": 768
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"name": "webkit",
|
|
181
|
-
"headless": false,
|
|
182
|
-
"viewport": {
|
|
183
|
-
"width": 1440,
|
|
184
|
-
"height": 900
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
]
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"platforms": "mac",
|
|
191
|
-
"browsers": [
|
|
192
|
-
{
|
|
193
|
-
"name": "safari",
|
|
194
|
-
"window": {
|
|
195
|
-
"width": 1280,
|
|
196
|
-
"height": 800
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
]
|
|
200
|
-
}
|
|
201
|
-
]
|
|
202
|
-
}
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "dragAndDrop",
|
|
4
|
-
"description": "Drag and drop an element from source to target.",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"required": ["source", "target"],
|
|
7
|
-
"properties": {
|
|
8
|
-
"source": {
|
|
9
|
-
"$ref": "#/components/schemas/elementSpecification",
|
|
10
|
-
"description": "The element to drag."
|
|
11
|
-
},
|
|
12
|
-
"target": {
|
|
13
|
-
"$ref": "#/components/schemas/elementSpecification",
|
|
14
|
-
"description": "The target location to drop the element."
|
|
15
|
-
},
|
|
16
|
-
"duration": {
|
|
17
|
-
"type": "integer",
|
|
18
|
-
"description": "Duration of the drag operation in milliseconds.",
|
|
19
|
-
"default": 1000,
|
|
20
|
-
"minimum": 0
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"components": {
|
|
24
|
-
"schemas": {
|
|
25
|
-
"elementSpecification": {
|
|
26
|
-
"anyOf": [
|
|
27
|
-
{
|
|
28
|
-
"$ref": "#/components/schemas/string"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"$ref": "#/components/schemas/object"
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
"string": {
|
|
36
|
-
"title": "Element (simple)",
|
|
37
|
-
"type": "string",
|
|
38
|
-
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
39
|
-
},
|
|
40
|
-
"object": {
|
|
41
|
-
"title": "Element (detailed)",
|
|
42
|
-
"type": "object",
|
|
43
|
-
"anyOf": [
|
|
44
|
-
{
|
|
45
|
-
"required": [
|
|
46
|
-
"selector"
|
|
47
|
-
]
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"required": [
|
|
51
|
-
"elementText"
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"required": [
|
|
56
|
-
"elementId"
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"required": [
|
|
61
|
-
"elementTestId"
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"required": [
|
|
66
|
-
"elementClass"
|
|
67
|
-
]
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"required": [
|
|
71
|
-
"elementAttribute"
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"required": [
|
|
76
|
-
"elementAria"
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
],
|
|
80
|
-
"properties": {
|
|
81
|
-
"elementText": {
|
|
82
|
-
"type": "string",
|
|
83
|
-
"description": "Display text or regex pattern (enclosed in forward slashes) of the element. If combined with `selector`, the element must match both the text and the selector."
|
|
84
|
-
},
|
|
85
|
-
"selector": {
|
|
86
|
-
"type": "string",
|
|
87
|
-
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
88
|
-
},
|
|
89
|
-
"elementId": {
|
|
90
|
-
"type": "string",
|
|
91
|
-
"description": "ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
92
|
-
},
|
|
93
|
-
"elementTestId": {
|
|
94
|
-
"type": "string",
|
|
95
|
-
"description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
|
|
96
|
-
},
|
|
97
|
-
"elementClass": {
|
|
98
|
-
"anyOf": [
|
|
99
|
-
{
|
|
100
|
-
"type": "string"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"type": "array",
|
|
104
|
-
"items": {
|
|
105
|
-
"type": "string"
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
],
|
|
109
|
-
"description": "Class or array of classes that the element must have. Each class supports exact match or regex pattern using /pattern/ syntax. Element must have all specified classes."
|
|
110
|
-
},
|
|
111
|
-
"elementAttribute": {
|
|
112
|
-
"type": "object",
|
|
113
|
-
"description": "Object of attribute key-value pairs that the element must have. Values can be strings (supporting /pattern/ regex), numbers, or booleans. Boolean true matches attribute presence, false matches absence.",
|
|
114
|
-
"additionalProperties": {
|
|
115
|
-
"anyOf": [
|
|
116
|
-
{
|
|
117
|
-
"type": "string"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"type": "number"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"type": "boolean"
|
|
124
|
-
}
|
|
125
|
-
]
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
"elementAria": {
|
|
129
|
-
"type": "string",
|
|
130
|
-
"description": "Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax."
|
|
131
|
-
},
|
|
132
|
-
"timeout": {
|
|
133
|
-
"type": "integer",
|
|
134
|
-
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
135
|
-
"default": 5000
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
"examples": [
|
|
142
|
-
{
|
|
143
|
-
"source": "Table",
|
|
144
|
-
"target": "#canvas"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"source": ".draggable-block",
|
|
148
|
-
"target": ".drop-zone",
|
|
149
|
-
"duration": 2000
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"source": {
|
|
153
|
-
"selector": ".widget",
|
|
154
|
-
"elementText": "Data Table"
|
|
155
|
-
},
|
|
156
|
-
"target": {
|
|
157
|
-
"selector": "#design-canvas"
|
|
158
|
-
},
|
|
159
|
-
"duration": 500
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"source": {
|
|
163
|
-
"selector": ".draggable",
|
|
164
|
-
"timeout": 10000
|
|
165
|
-
},
|
|
166
|
-
"target": {
|
|
167
|
-
"elementText": "Drop Zone",
|
|
168
|
-
"timeout": 5000
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"source": "/Widget Item.*/",
|
|
173
|
-
"target": "#canvas"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"source": {
|
|
177
|
-
"selector": ".draggable",
|
|
178
|
-
"elementText": "/Button [0-9]+/"
|
|
179
|
-
},
|
|
180
|
-
"target": {
|
|
181
|
-
"elementText": "/Drop Zone.*/"
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
]
|
|
185
|
-
}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "find",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "Check if an element exists with the specified CSS selector.",
|
|
5
|
-
"properties": {
|
|
6
|
-
"action": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"const": "find"
|
|
9
|
-
},
|
|
10
|
-
"css": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "CSS selector that uniquely identified the element."
|
|
13
|
-
},
|
|
14
|
-
"wait": {
|
|
15
|
-
"type": "object",
|
|
16
|
-
"description": "Pause before performing the next action.",
|
|
17
|
-
"additionalProperties": false,
|
|
18
|
-
"properties": {
|
|
19
|
-
"duration": {
|
|
20
|
-
"$ref": "wait_v1.schema.json#/properties/duration"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"matchText": {
|
|
25
|
-
"type": "object",
|
|
26
|
-
"description": "Check if an element displays the expected text.",
|
|
27
|
-
"additionalProperties": false,
|
|
28
|
-
"properties": {
|
|
29
|
-
"text": {
|
|
30
|
-
"$ref": "matchText_v1.schema.json#/properties/text"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"required": [
|
|
34
|
-
"text"
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
"moveMouse": {
|
|
38
|
-
"type": "object",
|
|
39
|
-
"description": "Move the mouse to an element specified by a CSS selector. Only runs if a test is being recorded.",
|
|
40
|
-
"additionalProperties": false,
|
|
41
|
-
"properties": {
|
|
42
|
-
"alignH": {
|
|
43
|
-
"$ref": "moveMouse_v1.schema.json#/properties/alignH"
|
|
44
|
-
},
|
|
45
|
-
"alignV": {
|
|
46
|
-
"$ref": "moveMouse_v1.schema.json#/properties/alignV"
|
|
47
|
-
},
|
|
48
|
-
"offsetX": {
|
|
49
|
-
"$ref": "moveMouse_v1.schema.json#/properties/offsetX"
|
|
50
|
-
},
|
|
51
|
-
"offsetY": {
|
|
52
|
-
"$ref": "moveMouse_v1.schema.json#/properties/offsetY"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"click": {
|
|
57
|
-
"type": "object",
|
|
58
|
-
"description": "Click an element specified by a CSS selector.",
|
|
59
|
-
"additionalProperties": false,
|
|
60
|
-
"properties": {
|
|
61
|
-
"alignH": {
|
|
62
|
-
"$ref": "click_v1.schema.json#/properties/alignH"
|
|
63
|
-
},
|
|
64
|
-
"alignV": {
|
|
65
|
-
"$ref": "click_v1.schema.json#/properties/alignV"
|
|
66
|
-
},
|
|
67
|
-
"offsetX": {
|
|
68
|
-
"$ref": "click_v1.schema.json#/properties/offsetX"
|
|
69
|
-
},
|
|
70
|
-
"offsetY": {
|
|
71
|
-
"$ref": "click_v1.schema.json#/properties/offsetY"
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
"type": {
|
|
76
|
-
"type": "object",
|
|
77
|
-
"description": "Click an element specified by a CSS selector.",
|
|
78
|
-
"additionalProperties": false,
|
|
79
|
-
"anyOf": [
|
|
80
|
-
{
|
|
81
|
-
"required": [
|
|
82
|
-
"keys"
|
|
83
|
-
]
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"required": [
|
|
87
|
-
"trailingSpecialKey"
|
|
88
|
-
]
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
"properties": {
|
|
92
|
-
"keys": {
|
|
93
|
-
"$ref": "type_v1.schema.json#/properties/keys"
|
|
94
|
-
},
|
|
95
|
-
"trailingSpecialKey": {
|
|
96
|
-
"$ref": "type_v1.schema.json#/properties/trailingSpecialKey"
|
|
97
|
-
},
|
|
98
|
-
"env": {
|
|
99
|
-
"$ref": "type_v1.schema.json#/properties/env"
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"required": [
|
|
105
|
-
"action",
|
|
106
|
-
"css"
|
|
107
|
-
],
|
|
108
|
-
"additionalProperties": false,
|
|
109
|
-
"examples": [
|
|
110
|
-
{
|
|
111
|
-
"action": "find",
|
|
112
|
-
"css": "[title=Search]"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"action": "find",
|
|
116
|
-
"css": "[title=Search]",
|
|
117
|
-
"wait": {
|
|
118
|
-
"duration": 10000
|
|
119
|
-
},
|
|
120
|
-
"matchText": {
|
|
121
|
-
"text": "Search"
|
|
122
|
-
},
|
|
123
|
-
"moveMouse": {
|
|
124
|
-
"alignH": "center",
|
|
125
|
-
"alignV": "center",
|
|
126
|
-
"offsetX": 0,
|
|
127
|
-
"offsetY": 0
|
|
128
|
-
},
|
|
129
|
-
"click": {},
|
|
130
|
-
"type": {
|
|
131
|
-
"keys": "$SHORTHAIR_CAT_SEARCH",
|
|
132
|
-
"trailingSpecialKey": "Enter",
|
|
133
|
-
"env": "./sample/variables.env"
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
]
|
|
137
|
-
}
|