doc-detective-common 3.4.1-dev.3 → 3.4.1-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.
Files changed (52) hide show
  1. package/dist/schemas/checkLink_v3.schema.json +2 -2
  2. package/dist/schemas/click_v3.schema.json +4 -4
  3. package/dist/schemas/config_v3.schema.json +481 -123
  4. package/dist/schemas/find_v3.schema.json +41 -28
  5. package/dist/schemas/goTo_v3.schema.json +167 -1
  6. package/dist/schemas/httpRequest_v3.schema.json +2 -2
  7. package/dist/schemas/report_v3.schema.json +478 -120
  8. package/dist/schemas/resolvedTests_v3.schema.json +1003 -287
  9. package/dist/schemas/runCode_v3.schema.json +4 -4
  10. package/dist/schemas/runShell_v3.schema.json +4 -4
  11. package/dist/schemas/screenshot_v3.schema.json +6 -6
  12. package/dist/schemas/spec_v3.schema.json +478 -120
  13. package/dist/schemas/step_v3.schema.json +238 -59
  14. package/dist/schemas/test_v3.schema.json +477 -119
  15. package/dist/schemas/type_v3.schema.json +8 -8
  16. package/package.json +2 -2
  17. package/src/schemas/build/checkLink_v3.schema.json +1 -1
  18. package/src/schemas/build/click_v3.schema.json +2 -2
  19. package/src/schemas/build/find_v3.schema.json +15 -2
  20. package/src/schemas/build/httpRequest_v3.schema.json +1 -1
  21. package/src/schemas/build/runCode_v3.schema.json +2 -2
  22. package/src/schemas/build/runShell_v3.schema.json +2 -2
  23. package/src/schemas/build/screenshot_v3.schema.json +2 -2
  24. package/src/schemas/build/test_v3.schema.json +1 -1
  25. package/src/schemas/build/type_v3.schema.json +3 -3
  26. package/src/schemas/output_schemas/checkLink_v3.schema.json +2 -2
  27. package/src/schemas/output_schemas/click_v3.schema.json +4 -4
  28. package/src/schemas/output_schemas/config_v3.schema.json +481 -123
  29. package/src/schemas/output_schemas/find_v3.schema.json +41 -28
  30. package/src/schemas/output_schemas/goTo_v3.schema.json +167 -1
  31. package/src/schemas/output_schemas/httpRequest_v3.schema.json +2 -2
  32. package/src/schemas/output_schemas/report_v3.schema.json +478 -120
  33. package/src/schemas/output_schemas/resolvedTests_v3.schema.json +1003 -287
  34. package/src/schemas/output_schemas/runCode_v3.schema.json +4 -4
  35. package/src/schemas/output_schemas/runShell_v3.schema.json +4 -4
  36. package/src/schemas/output_schemas/screenshot_v3.schema.json +6 -6
  37. package/src/schemas/output_schemas/spec_v3.schema.json +478 -120
  38. package/src/schemas/output_schemas/step_v3.schema.json +238 -59
  39. package/src/schemas/output_schemas/test_v3.schema.json +477 -119
  40. package/src/schemas/output_schemas/type_v3.schema.json +8 -8
  41. package/src/schemas/schemas.json +3588 -1082
  42. package/src/schemas/src_schemas/checkLink_v3.schema.json +1 -1
  43. package/src/schemas/src_schemas/click_v3.schema.json +2 -2
  44. package/src/schemas/src_schemas/find_v3.schema.json +12 -2
  45. package/src/schemas/src_schemas/goTo_v3.schema.json +109 -14
  46. package/src/schemas/src_schemas/httpRequest_v3.schema.json +1 -1
  47. package/src/schemas/src_schemas/runCode_v3.schema.json +2 -2
  48. package/src/schemas/src_schemas/runShell_v3.schema.json +2 -2
  49. package/src/schemas/src_schemas/screenshot_v3.schema.json +2 -2
  50. package/src/schemas/src_schemas/test_v3.schema.json +1 -1
  51. package/src/schemas/src_schemas/type_v3.schema.json +3 -3
  52. package/src/schemas/build/goTo_v3.schema.json +0 -63
@@ -53,7 +53,7 @@
53
53
  {
54
54
  "type": "array",
55
55
  "items": {
56
- "oneOf": [
56
+ "anyOf": [
57
57
  {
58
58
  "type": "integer"
59
59
  }
@@ -90,7 +90,7 @@
90
90
  "description": "data-testid attribute of the element to click. Supports exact match or regex pattern using /pattern/ syntax."
91
91
  },
92
92
  "elementClass": {
93
- "oneOf": [
93
+ "anyOf": [
94
94
  {
95
95
  "type": "string"
96
96
  },
@@ -107,7 +107,7 @@
107
107
  "type": "object",
108
108
  "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.",
109
109
  "additionalProperties": {
110
- "oneOf": [
110
+ "anyOf": [
111
111
  {
112
112
  "type": "string"
113
113
  },
@@ -76,7 +76,7 @@
76
76
  "description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
77
77
  },
78
78
  "elementClass": {
79
- "oneOf": [
79
+ "anyOf": [
80
80
  {
81
81
  "type": "string"
82
82
  },
@@ -93,7 +93,7 @@
93
93
  "type": "object",
94
94
  "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.",
95
95
  "additionalProperties": {
96
- "oneOf": [
96
+ "anyOf": [
97
97
  {
98
98
  "type": "string"
99
99
  },
@@ -195,6 +195,16 @@
195
195
  ],
196
196
  "inputDelay": 100
197
197
  }
198
+ },
199
+ {
200
+ "elementId": "/^user-[0-9]+$/",
201
+ "elementClass": ["admin", "/^level-[1-5]$/"],
202
+ "elementAttribute": {
203
+ "data-active": true,
204
+ "data-score": "/^[0-9]+$/"
205
+ },
206
+ "timeout": 8000,
207
+ "moveTo": false
198
208
  }
199
209
  ]
200
210
  }
@@ -16,32 +16,86 @@
16
16
  "description": "Navigate to an HTTP or HTTPS URL. Can be a full URL or a path. If a path is provided, navigates relative to the current URL, if any.",
17
17
  "type": "string",
18
18
  "pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
19
- "transform": [
20
- "trim"
21
- ]
19
+ "transform": ["trim"]
22
20
  },
23
21
  "object": {
24
22
  "description": "Navigate to an HTTP or HTTPS URL.",
25
23
  "type": "object",
26
24
  "additionalProperties": false,
27
- "required": [
28
- "url"
29
- ],
25
+ "required": ["url"],
30
26
  "properties": {
31
27
  "url": {
32
28
  "type": "string",
33
29
  "description": "URL to navigate to. Can be a full URL or a path. If a path is provided and `origin` is specified, prepends `origin` to `url`. If a path is provided but `origin` isn't specified, attempts to navigate relative to the current URL, if any.",
34
30
  "pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
35
- "transform": [
36
- "trim"
37
- ]
31
+ "transform": ["trim"]
38
32
  },
39
33
  "origin": {
40
34
  "type": "string",
41
35
  "description": "Protocol and domain to navigate to. Prepended to `url`.",
42
- "transform": [
43
- "trim"
44
- ]
36
+ "transform": ["trim"]
37
+ },
38
+ "timeout": {
39
+ "type": "integer",
40
+ "description": "Maximum time in milliseconds to wait for the page to be ready. If exceeded, the goTo action fails.",
41
+ "default": 30000,
42
+ "minimum": 0
43
+ },
44
+ "waitUntil": {
45
+ "type": "object",
46
+ "description": "Configuration for waiting conditions after navigation.",
47
+ "additionalProperties": false,
48
+ "properties": {
49
+ "networkIdleTime": {
50
+ "description": "Wait for network activity to be idle (no new requests) for this duration in milliseconds. Set to `null` to skip this check.",
51
+ "anyOf": [
52
+ {
53
+ "type": "integer",
54
+ "minimum": 0
55
+ },
56
+ {
57
+ "type": "null"
58
+ }
59
+ ],
60
+ "default": 500
61
+ },
62
+ "domIdleTime": {
63
+ "description": "Wait for DOM mutations to stop for this duration in milliseconds. Set to `null` to skip this check.",
64
+ "anyOf": [
65
+ {
66
+ "type": "integer",
67
+ "minimum": 0
68
+ },
69
+ {
70
+ "type": "null"
71
+ }
72
+ ],
73
+ "default": 1000
74
+ },
75
+ "find": {
76
+ "type": "object",
77
+ "description": "Wait for a specific element to be present in the DOM. At least one of selector or elementText must be specified.",
78
+ "additionalProperties": false,
79
+ "anyOf": [
80
+ {
81
+ "required": ["selector"]
82
+ },
83
+ {
84
+ "required": ["elementText"]
85
+ }
86
+ ],
87
+ "properties": {
88
+ "selector": {
89
+ "type": "string",
90
+ "description": "CSS selector for the element to wait for."
91
+ },
92
+ "elementText": {
93
+ "type": "string",
94
+ "description": "Text content the element must contain."
95
+ }
96
+ }
97
+ }
98
+ }
45
99
  }
46
100
  },
47
101
  "title": "Go to URL (detailed)"
@@ -56,7 +110,48 @@
56
110
  },
57
111
  {
58
112
  "url": "/search",
59
- "origin": "www.google.com"
113
+ "origin": "https://www.google.com"
114
+ },
115
+ {
116
+ "url": "https://www.example.com",
117
+ "waitUntil": {
118
+ "networkIdleTime": 500
119
+ }
120
+ },
121
+ {
122
+ "url": "https://www.example.com/dashboard",
123
+ "waitUntil": {
124
+ "find": {
125
+ "selector": "[data-testid='dashboard-loaded']"
126
+ }
127
+ }
128
+ },
129
+ {
130
+ "url": "https://www.example.com/app",
131
+ "timeout": 60000,
132
+ "waitUntil": {
133
+ "networkIdleTime": 500,
134
+ "domIdleTime": 1000,
135
+ "find": {
136
+ "selector": ".main-content",
137
+ "elementText": "Dashboard"
138
+ }
139
+ }
140
+ },
141
+ {
142
+ "url": "https://www.example.com/app",
143
+ "timeout": 60000,
144
+ "waitUntil": {
145
+ "networkIdleTime": null
146
+ }
147
+ },
148
+ {
149
+ "url": "https://www.example.com/status",
150
+ "waitUntil": {
151
+ "find": {
152
+ "elementText": "System operational"
153
+ }
154
+ }
60
155
  }
61
156
  ]
62
- }
157
+ }
@@ -66,7 +66,7 @@
66
66
  "description": "Accepted status codes. If the specified URL returns a code other than what is specified here, the action fails.",
67
67
  "type": "array",
68
68
  "items": {
69
- "oneOf": [
69
+ "anyOf": [
70
70
  {
71
71
  "type": "integer"
72
72
  }
@@ -33,7 +33,7 @@
33
33
  "type": "array",
34
34
  "description": "Arguments for the command.",
35
35
  "items": {
36
- "oneOf": [
36
+ "anyOf": [
37
37
  {
38
38
  "type": "string"
39
39
  }
@@ -50,7 +50,7 @@
50
50
  "type": "array",
51
51
  "description": "Expected exit codes of the command. If the command's actual exit code isn't in this list, the step fails.",
52
52
  "items": {
53
- "oneOf": [
53
+ "anyOf": [
54
54
  {
55
55
  "type": "integer"
56
56
  }
@@ -35,7 +35,7 @@
35
35
  "type": "array",
36
36
  "description": "Arguments for the command.",
37
37
  "items": {
38
- "oneOf": [
38
+ "anyOf": [
39
39
  {
40
40
  "type": "string"
41
41
  }
@@ -52,7 +52,7 @@
52
52
  "type": "array",
53
53
  "description": "Expected exit codes of the command. If the command's actual exit code isn't in this list, the step fails.",
54
54
  "items": {
55
- "oneOf": [
55
+ "anyOf": [
56
56
  {
57
57
  "type": "integer"
58
58
  }
@@ -132,7 +132,7 @@
132
132
  "description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
133
133
  },
134
134
  "elementClass": {
135
- "oneOf": [
135
+ "anyOf": [
136
136
  {
137
137
  "type": "string"
138
138
  },
@@ -149,7 +149,7 @@
149
149
  "type": "object",
150
150
  "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.",
151
151
  "additionalProperties": {
152
- "oneOf": [
152
+ "anyOf": [
153
153
  {
154
154
  "type": "string"
155
155
  },
@@ -25,7 +25,7 @@
25
25
  "type": "array",
26
26
  "description": "Contexts to run the test in. Overrides contexts defined at the config and spec levels.",
27
27
  "items": {
28
- "oneOf": [
28
+ "anyOf": [
29
29
  {
30
30
  "$ref": "context_v3.schema.json#"
31
31
  }
@@ -22,7 +22,7 @@
22
22
  {
23
23
  "type": "array",
24
24
  "items": {
25
- "oneOf": [
25
+ "anyOf": [
26
26
  {
27
27
  "type": "string"
28
28
  }
@@ -60,7 +60,7 @@
60
60
  "description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
61
61
  },
62
62
  "elementClass": {
63
- "oneOf": [
63
+ "anyOf": [
64
64
  {
65
65
  "type": "string"
66
66
  },
@@ -77,7 +77,7 @@
77
77
  "type": "object",
78
78
  "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.",
79
79
  "additionalProperties": {
80
- "oneOf": [
80
+ "anyOf": [
81
81
  {
82
82
  "type": "string"
83
83
  },
@@ -1,63 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "goTo",
4
- "anyOf": [
5
- {
6
- "$ref": "#/components/schemas/string"
7
- },
8
- {
9
- "$ref": "#/components/schemas/object"
10
- }
11
- ],
12
- "components": {
13
- "schemas": {
14
- "string": {
15
- "title": "Go to URL (simple)",
16
- "description": "Navigate to an HTTP or HTTPS URL. Can be a full URL or a path. If a path is provided, navigates relative to the current URL, if any.",
17
- "type": "string",
18
- "pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
19
- "transform": [
20
- "trim"
21
- ]
22
- },
23
- "object": {
24
- "description": "Navigate to an HTTP or HTTPS URL.",
25
- "type": "object",
26
- "additionalProperties": false,
27
- "required": [
28
- "url"
29
- ],
30
- "properties": {
31
- "url": {
32
- "type": "string",
33
- "description": "URL to navigate to. Can be a full URL or a path. If a path is provided and `origin` is specified, prepends `origin` to `url`. If a path is provided but `origin` isn't specified, attempts to navigate relative to the current URL, if any.",
34
- "pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
35
- "transform": [
36
- "trim"
37
- ]
38
- },
39
- "origin": {
40
- "type": "string",
41
- "description": "Protocol and domain to navigate to. Prepended to `url`.",
42
- "transform": [
43
- "trim"
44
- ]
45
- }
46
- },
47
- "title": "Go to URL (detailed)"
48
- }
49
- }
50
- },
51
- "examples": [
52
- "https://www.google.com",
53
- "/search",
54
- {
55
- "url": "https://www.google.com"
56
- },
57
- {
58
- "url": "/search",
59
- "origin": "www.google.com"
60
- }
61
- ],
62
- "$id": "/home/runner/work/common/common/src/schemas/src_schemas/goTo_v3.schema.json"
63
- }