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
@@ -13,7 +13,7 @@
13
13
  {
14
14
  "type": "array",
15
15
  "items": {
16
- "oneOf": [
16
+ "anyOf": [
17
17
  {
18
18
  "type": "string"
19
19
  }
@@ -36,7 +36,7 @@
36
36
  {
37
37
  "type": "array",
38
38
  "items": {
39
- "oneOf": [
39
+ "anyOf": [
40
40
  {
41
41
  "type": "string"
42
42
  }
@@ -67,7 +67,7 @@
67
67
  "description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
68
68
  },
69
69
  "elementClass": {
70
- "oneOf": [
70
+ "anyOf": [
71
71
  {
72
72
  "type": "string"
73
73
  },
@@ -84,7 +84,7 @@
84
84
  "type": "object",
85
85
  "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.",
86
86
  "additionalProperties": {
87
- "oneOf": [
87
+ "anyOf": [
88
88
  {
89
89
  "type": "string"
90
90
  },
@@ -120,7 +120,7 @@
120
120
  {
121
121
  "type": "array",
122
122
  "items": {
123
- "oneOf": [
123
+ "anyOf": [
124
124
  {
125
125
  "type": "string"
126
126
  }
@@ -143,7 +143,7 @@
143
143
  {
144
144
  "type": "array",
145
145
  "items": {
146
- "oneOf": [
146
+ "anyOf": [
147
147
  {
148
148
  "type": "string"
149
149
  }
@@ -174,7 +174,7 @@
174
174
  "description": "data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax."
175
175
  },
176
176
  "elementClass": {
177
- "oneOf": [
177
+ "anyOf": [
178
178
  {
179
179
  "type": "string"
180
180
  },
@@ -191,7 +191,7 @@
191
191
  "type": "object",
192
192
  "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.",
193
193
  "additionalProperties": {
194
- "oneOf": [
194
+ "anyOf": [
195
195
  {
196
196
  "type": "string"
197
197
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doc-detective-common",
3
- "version": "3.4.1-dev.3",
3
+ "version": "3.4.1-dev.5",
4
4
  "description": "Shared components for Doc Detective projects.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -25,7 +25,7 @@
25
25
  "sinon": "^21.0.0"
26
26
  },
27
27
  "dependencies": {
28
- "@apidevtools/json-schema-ref-parser": "^15.1.1",
28
+ "@apidevtools/json-schema-ref-parser": "^15.1.2",
29
29
  "ajv": "^8.17.1",
30
30
  "ajv-errors": "^3.0.0",
31
31
  "ajv-formats": "^3.0.1",
@@ -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,19 @@
195
195
  ],
196
196
  "inputDelay": 100
197
197
  }
198
+ },
199
+ {
200
+ "elementId": "/^user-[0-9]+$/",
201
+ "elementClass": [
202
+ "admin",
203
+ "/^level-[1-5]$/"
204
+ ],
205
+ "elementAttribute": {
206
+ "data-active": true,
207
+ "data-score": "/^[0-9]+$/"
208
+ },
209
+ "timeout": 8000,
210
+ "moveTo": false
198
211
  }
199
212
  ],
200
213
  "$id": "/home/runner/work/common/common/src/schemas/src_schemas/find_v3.schema.json"
@@ -74,7 +74,7 @@
74
74
  "description": "Accepted status codes. If the specified URL returns a code other than what is specified here, the action fails.",
75
75
  "type": "array",
76
76
  "items": {
77
- "oneOf": [
77
+ "anyOf": [
78
78
  {
79
79
  "type": "integer"
80
80
  }
@@ -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": "/home/runner/work/common/common/src/schemas/build/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
  },
@@ -44,7 +44,7 @@
44
44
  {
45
45
  "type": "array",
46
46
  "items": {
47
- "oneOf": [
47
+ "anyOf": [
48
48
  {
49
49
  "type": "integer"
50
50
  }
@@ -107,7 +107,7 @@
107
107
  {
108
108
  "type": "array",
109
109
  "items": {
110
- "oneOf": [
110
+ "anyOf": [
111
111
  {
112
112
  "type": "integer"
113
113
  }
@@ -75,7 +75,7 @@
75
75
  "description": "data-testid attribute of the element to click. Supports exact match or regex pattern using /pattern/ syntax."
76
76
  },
77
77
  "elementClass": {
78
- "oneOf": [
78
+ "anyOf": [
79
79
  {
80
80
  "type": "string"
81
81
  },
@@ -92,7 +92,7 @@
92
92
  "type": "object",
93
93
  "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.",
94
94
  "additionalProperties": {
95
- "oneOf": [
95
+ "anyOf": [
96
96
  {
97
97
  "type": "string"
98
98
  },
@@ -198,7 +198,7 @@
198
198
  "description": "data-testid attribute of the element to click. Supports exact match or regex pattern using /pattern/ syntax."
199
199
  },
200
200
  "elementClass": {
201
- "oneOf": [
201
+ "anyOf": [
202
202
  {
203
203
  "type": "string"
204
204
  },
@@ -215,7 +215,7 @@
215
215
  "type": "object",
216
216
  "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.",
217
217
  "additionalProperties": {
218
- "oneOf": [
218
+ "anyOf": [
219
219
  {
220
220
  "type": "string"
221
221
  },