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.
Files changed (200) hide show
  1. package/package.json +1 -1
  2. package/.c8rc.json +0 -8
  3. package/.mocharc.yml +0 -1
  4. package/icon.png +0 -0
  5. package/scripts/check-coverage-ratchet.cjs +0 -123
  6. package/scripts/createCjsWrapper.js +0 -25
  7. package/scripts/generateTypes.cjs +0 -54
  8. package/src/detectTests.ts +0 -660
  9. package/src/index.ts +0 -3
  10. package/src/schemas/build/checkLink_v2.schema.json +0 -81
  11. package/src/schemas/build/checkLink_v3.schema.json +0 -92
  12. package/src/schemas/build/click_v3.schema.json +0 -145
  13. package/src/schemas/build/config_v2.schema.json +0 -1079
  14. package/src/schemas/build/config_v3.schema.json +0 -696
  15. package/src/schemas/build/context_v2.schema.json +0 -135
  16. package/src/schemas/build/context_v3.schema.json +0 -229
  17. package/src/schemas/build/dragAndDrop_v3.schema.json +0 -189
  18. package/src/schemas/build/find_v2.schema.json +0 -168
  19. package/src/schemas/build/find_v3.schema.json +0 -214
  20. package/src/schemas/build/goTo_v2.schema.json +0 -63
  21. package/src/schemas/build/goTo_v3.schema.json +0 -257
  22. package/src/schemas/build/httpRequest_v2.schema.json +0 -321
  23. package/src/schemas/build/httpRequest_v3.schema.json +0 -439
  24. package/src/schemas/build/loadCookie_v3.schema.json +0 -138
  25. package/src/schemas/build/loadVariables_v3.schema.json +0 -10
  26. package/src/schemas/build/moveTo_v2.schema.json +0 -99
  27. package/src/schemas/build/openApi_v2.schema.json +0 -76
  28. package/src/schemas/build/openApi_v3.schema.json +0 -161
  29. package/src/schemas/build/record_v3.schema.json +0 -70
  30. package/src/schemas/build/report_v3.schema.json +0 -53
  31. package/src/schemas/build/resolvedTests_v3.schema.json +0 -238
  32. package/src/schemas/build/runCode_v2.schema.json +0 -201
  33. package/src/schemas/build/runCode_v3.schema.json +0 -138
  34. package/src/schemas/build/runShell_v2.schema.json +0 -189
  35. package/src/schemas/build/runShell_v3.schema.json +0 -156
  36. package/src/schemas/build/saveCookie_v3.schema.json +0 -149
  37. package/src/schemas/build/saveScreenshot_v2.schema.json +0 -150
  38. package/src/schemas/build/screenshot_v3.schema.json +0 -250
  39. package/src/schemas/build/setVariables_v2.schema.json +0 -39
  40. package/src/schemas/build/sourceIntegration_v3.schema.json +0 -51
  41. package/src/schemas/build/spec_v2.schema.json +0 -199
  42. package/src/schemas/build/spec_v3.schema.json +0 -213
  43. package/src/schemas/build/startRecording_v2.schema.json +0 -57
  44. package/src/schemas/build/step_v3.schema.json +0 -669
  45. package/src/schemas/build/stopRecord_v3.schema.json +0 -13
  46. package/src/schemas/build/stopRecording_v2.schema.json +0 -33
  47. package/src/schemas/build/test_v2.schema.json +0 -244
  48. package/src/schemas/build/test_v3.schema.json +0 -292
  49. package/src/schemas/build/typeKeys_v2.schema.json +0 -72
  50. package/src/schemas/build/type_v3.schema.json +0 -131
  51. package/src/schemas/build/wait_v2.schema.json +0 -42
  52. package/src/schemas/build/wait_v3.schema.json +0 -37
  53. package/src/schemas/dereferenceSchemas.cjs +0 -208
  54. package/src/schemas/index.ts +0 -6
  55. package/src/schemas/output_schemas/analytics_v1.schema.json +0 -585
  56. package/src/schemas/output_schemas/checkLink_v1.schema.json +0 -42
  57. package/src/schemas/output_schemas/checkLink_v2.schema.json +0 -80
  58. package/src/schemas/output_schemas/checkLink_v3.schema.json +0 -145
  59. package/src/schemas/output_schemas/click_v1.schema.json +0 -60
  60. package/src/schemas/output_schemas/click_v3.schema.json +0 -252
  61. package/src/schemas/output_schemas/config_v2.schema.json +0 -2628
  62. package/src/schemas/output_schemas/config_v3.schema.json +0 -16470
  63. package/src/schemas/output_schemas/context_v2.schema.json +0 -134
  64. package/src/schemas/output_schemas/context_v3.schema.json +0 -374
  65. package/src/schemas/output_schemas/dragAndDrop_v3.schema.json +0 -496
  66. package/src/schemas/output_schemas/endRecord_v3.schema.json +0 -12
  67. package/src/schemas/output_schemas/find_v1.schema.json +0 -171
  68. package/src/schemas/output_schemas/find_v2.schema.json +0 -184
  69. package/src/schemas/output_schemas/find_v3.schema.json +0 -1349
  70. package/src/schemas/output_schemas/goTo_v1.schema.json +0 -30
  71. package/src/schemas/output_schemas/goTo_v2.schema.json +0 -62
  72. package/src/schemas/output_schemas/goTo_v3.schema.json +0 -419
  73. package/src/schemas/output_schemas/httpRequest_v1.schema.json +0 -115
  74. package/src/schemas/output_schemas/httpRequest_v2.schema.json +0 -392
  75. package/src/schemas/output_schemas/httpRequest_v3.schema.json +0 -994
  76. package/src/schemas/output_schemas/loadCookie_v3.schema.json +0 -228
  77. package/src/schemas/output_schemas/loadVariables_v3.schema.json +0 -9
  78. package/src/schemas/output_schemas/matchText_v1.schema.json +0 -32
  79. package/src/schemas/output_schemas/moveMouse_v1.schema.json +0 -60
  80. package/src/schemas/output_schemas/moveTo_v2.schema.json +0 -98
  81. package/src/schemas/output_schemas/openApi_v2.schema.json +0 -75
  82. package/src/schemas/output_schemas/openApi_v3.schema.json +0 -162
  83. package/src/schemas/output_schemas/record_v3.schema.json +0 -101
  84. package/src/schemas/output_schemas/report_v3.schema.json +0 -16826
  85. package/src/schemas/output_schemas/resolvedTests_v3.schema.json +0 -33331
  86. package/src/schemas/output_schemas/runCode_v2.schema.json +0 -200
  87. package/src/schemas/output_schemas/runCode_v3.schema.json +0 -222
  88. package/src/schemas/output_schemas/runShell_v1.schema.json +0 -35
  89. package/src/schemas/output_schemas/runShell_v2.schema.json +0 -188
  90. package/src/schemas/output_schemas/runShell_v3.schema.json +0 -236
  91. package/src/schemas/output_schemas/saveCookie_v3.schema.json +0 -245
  92. package/src/schemas/output_schemas/saveScreenshot_v2.schema.json +0 -149
  93. package/src/schemas/output_schemas/screenshot_v1.schema.json +0 -48
  94. package/src/schemas/output_schemas/screenshot_v3.schema.json +0 -681
  95. package/src/schemas/output_schemas/scroll_v1.schema.json +0 -50
  96. package/src/schemas/output_schemas/setVariables_v2.schema.json +0 -38
  97. package/src/schemas/output_schemas/sourceIntegration_v3.schema.json +0 -50
  98. package/src/schemas/output_schemas/spec_v2.schema.json +0 -2301
  99. package/src/schemas/output_schemas/spec_v3.schema.json +0 -16630
  100. package/src/schemas/output_schemas/startRecording_v1.schema.json +0 -55
  101. package/src/schemas/output_schemas/startRecording_v2.schema.json +0 -56
  102. package/src/schemas/output_schemas/step_v3.schema.json +0 -7317
  103. package/src/schemas/output_schemas/stopRecord_v3.schema.json +0 -12
  104. package/src/schemas/output_schemas/stopRecording_v1.schema.json +0 -20
  105. package/src/schemas/output_schemas/stopRecording_v2.schema.json +0 -32
  106. package/src/schemas/output_schemas/test_v2.schema.json +0 -1903
  107. package/src/schemas/output_schemas/test_v3.schema.json +0 -15863
  108. package/src/schemas/output_schemas/typeKeys_v2.schema.json +0 -71
  109. package/src/schemas/output_schemas/type_v1.schema.json +0 -62
  110. package/src/schemas/output_schemas/type_v3.schema.json +0 -244
  111. package/src/schemas/output_schemas/wait_v1.schema.json +0 -42
  112. package/src/schemas/output_schemas/wait_v2.schema.json +0 -41
  113. package/src/schemas/output_schemas/wait_v3.schema.json +0 -41
  114. package/src/schemas/schemas.json +0 -121331
  115. package/src/schemas/src_schemas/analytics_v1.schema.json +0 -585
  116. package/src/schemas/src_schemas/checkLink_v1.schema.json +0 -42
  117. package/src/schemas/src_schemas/checkLink_v2.schema.json +0 -65
  118. package/src/schemas/src_schemas/checkLink_v3.schema.json +0 -91
  119. package/src/schemas/src_schemas/click_v1.schema.json +0 -60
  120. package/src/schemas/src_schemas/click_v3.schema.json +0 -144
  121. package/src/schemas/src_schemas/config_v2.schema.json +0 -929
  122. package/src/schemas/src_schemas/config_v3.schema.json +0 -633
  123. package/src/schemas/src_schemas/context_v2.schema.json +0 -108
  124. package/src/schemas/src_schemas/context_v3.schema.json +0 -202
  125. package/src/schemas/src_schemas/dragAndDrop_v3.schema.json +0 -185
  126. package/src/schemas/src_schemas/find_v1.schema.json +0 -137
  127. package/src/schemas/src_schemas/find_v2.schema.json +0 -155
  128. package/src/schemas/src_schemas/find_v3.schema.json +0 -210
  129. package/src/schemas/src_schemas/goTo_v1.schema.json +0 -30
  130. package/src/schemas/src_schemas/goTo_v2.schema.json +0 -58
  131. package/src/schemas/src_schemas/goTo_v3.schema.json +0 -232
  132. package/src/schemas/src_schemas/httpRequest_v1.schema.json +0 -115
  133. package/src/schemas/src_schemas/httpRequest_v2.schema.json +0 -284
  134. package/src/schemas/src_schemas/httpRequest_v3.schema.json +0 -402
  135. package/src/schemas/src_schemas/loadCookie_v3.schema.json +0 -113
  136. package/src/schemas/src_schemas/loadVariables_v3.schema.json +0 -9
  137. package/src/schemas/src_schemas/matchText_v1.schema.json +0 -32
  138. package/src/schemas/src_schemas/moveMouse_v1.schema.json +0 -60
  139. package/src/schemas/src_schemas/moveTo_v2.schema.json +0 -89
  140. package/src/schemas/src_schemas/openApi_v2.schema.json +0 -64
  141. package/src/schemas/src_schemas/openApi_v3.schema.json +0 -161
  142. package/src/schemas/src_schemas/record_v3.schema.json +0 -69
  143. package/src/schemas/src_schemas/report_v3.schema.json +0 -52
  144. package/src/schemas/src_schemas/resolvedTests_v3.schema.json +0 -237
  145. package/src/schemas/src_schemas/runCode_v2.schema.json +0 -181
  146. package/src/schemas/src_schemas/runCode_v3.schema.json +0 -137
  147. package/src/schemas/src_schemas/runShell_v1.schema.json +0 -35
  148. package/src/schemas/src_schemas/runShell_v2.schema.json +0 -166
  149. package/src/schemas/src_schemas/runShell_v3.schema.json +0 -155
  150. package/src/schemas/src_schemas/saveCookie_v3.schema.json +0 -124
  151. package/src/schemas/src_schemas/saveScreenshot_v2.schema.json +0 -129
  152. package/src/schemas/src_schemas/screenshot_v1.schema.json +0 -48
  153. package/src/schemas/src_schemas/screenshot_v3.schema.json +0 -249
  154. package/src/schemas/src_schemas/scroll_v1.schema.json +0 -50
  155. package/src/schemas/src_schemas/setVariables_v2.schema.json +0 -38
  156. package/src/schemas/src_schemas/sourceIntegration_v3.schema.json +0 -45
  157. package/src/schemas/src_schemas/spec_v2.schema.json +0 -175
  158. package/src/schemas/src_schemas/spec_v3.schema.json +0 -212
  159. package/src/schemas/src_schemas/startRecording_v1.schema.json +0 -55
  160. package/src/schemas/src_schemas/startRecording_v2.schema.json +0 -54
  161. package/src/schemas/src_schemas/step_v3.schema.json +0 -632
  162. package/src/schemas/src_schemas/stopRecord_v3.schema.json +0 -9
  163. package/src/schemas/src_schemas/stopRecording_v1.schema.json +0 -20
  164. package/src/schemas/src_schemas/stopRecording_v2.schema.json +0 -32
  165. package/src/schemas/src_schemas/test_v2.schema.json +0 -200
  166. package/src/schemas/src_schemas/test_v3.schema.json +0 -268
  167. package/src/schemas/src_schemas/typeKeys_v2.schema.json +0 -63
  168. package/src/schemas/src_schemas/type_v1.schema.json +0 -62
  169. package/src/schemas/src_schemas/type_v3.schema.json +0 -118
  170. package/src/schemas/src_schemas/wait_v1.schema.json +0 -42
  171. package/src/schemas/src_schemas/wait_v2.schema.json +0 -41
  172. package/src/schemas/src_schemas/wait_v3.schema.json +0 -36
  173. package/src/types/generated/checkLink_v3.ts +0 -29
  174. package/src/types/generated/click_v3.ts +0 -17
  175. package/src/types/generated/config_v3.ts +0 -405
  176. package/src/types/generated/context_v3.ts +0 -112
  177. package/src/types/generated/dragAndDrop_v3.ts +0 -39
  178. package/src/types/generated/endRecord_v3.ts +0 -10
  179. package/src/types/generated/find_v3.ts +0 -17
  180. package/src/types/generated/goTo_v3.ts +0 -48
  181. package/src/types/generated/httpRequest_v3.ts +0 -17
  182. package/src/types/generated/loadCookie_v3.ts +0 -17
  183. package/src/types/generated/loadVariables_v3.ts +0 -10
  184. package/src/types/generated/openApi_v3.ts +0 -64
  185. package/src/types/generated/record_v3.ts +0 -34
  186. package/src/types/generated/report_v3.ts +0 -183
  187. package/src/types/generated/resolvedTests_v3.ts +0 -585
  188. package/src/types/generated/runCode_v3.ts +0 -59
  189. package/src/types/generated/runShell_v3.ts +0 -58
  190. package/src/types/generated/saveCookie_v3.ts +0 -17
  191. package/src/types/generated/screenshot_v3.ts +0 -76
  192. package/src/types/generated/sourceIntegration_v3.ts +0 -31
  193. package/src/types/generated/spec_v3.ts +0 -166
  194. package/src/types/generated/step_v3.ts +0 -1288
  195. package/src/types/generated/stopRecord_v3.ts +0 -10
  196. package/src/types/generated/test_v3.ts +0 -3048
  197. package/src/types/generated/type_v3.ts +0 -56
  198. package/src/types/generated/wait_v3.ts +0 -13
  199. package/src/validate.ts +0 -627
  200. package/tsconfig.json +0 -22
@@ -1,134 +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": [
11
- "name"
12
- ],
13
- "properties": {
14
- "name": {
15
- "type": "string",
16
- "description": "Name of the application.",
17
- "enum": [
18
- "chrome",
19
- "firefox",
20
- "safari",
21
- "edge"
22
- ]
23
- },
24
- "path": {
25
- "type": "string",
26
- "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."
27
- },
28
- "options": {
29
- "type": "object",
30
- "description": "Options to pass to the app. Only works when `name` is `firefox` or `chrome`.",
31
- "additionalProperties": false,
32
- "properties": {
33
- "width": {
34
- "type": "integer",
35
- "description": "Width of the window in pixels."
36
- },
37
- "height": {
38
- "type": "integer",
39
- "description": "Height of the window in pixels."
40
- },
41
- "viewport_height": {
42
- "type": "integer",
43
- "description": "Height of the viewport in pixels. Overrides `height`."
44
- },
45
- "viewport_width": {
46
- "type": "integer",
47
- "description": "Width of the viewport in pixels. Overrides `width`."
48
- },
49
- "headless": {
50
- "type": "boolean",
51
- "description": "If `true`, runs the browser in headless mode. Not supported by Safari."
52
- },
53
- "driverPath": {
54
- "type": "string",
55
- "description": "Path to the browser driver. If not specified, defaults to internally managed dependencies."
56
- }
57
- }
58
- }
59
- }
60
- },
61
- "platforms": {
62
- "description": "Supported platforms for the application.",
63
- "type": "array",
64
- "items": {
65
- "type": "string",
66
- "enum": [
67
- "linux",
68
- "mac",
69
- "windows"
70
- ]
71
- }
72
- }
73
- },
74
- "required": [
75
- "app",
76
- "platforms"
77
- ],
78
- "additionalProperties": false,
79
- "examples": [
80
- {
81
- "app": {
82
- "name": "chrome"
83
- },
84
- "platforms": [
85
- "linux"
86
- ]
87
- },
88
- {
89
- "app": {
90
- "name": "chrome",
91
- "options": {
92
- "viewport_width": 800,
93
- "viewport_height": 600
94
- }
95
- },
96
- "platforms": [
97
- "linux"
98
- ]
99
- },
100
- {
101
- "app": {
102
- "name": "firefox",
103
- "options": {
104
- "width": 800,
105
- "height": 600,
106
- "headless": false,
107
- "driverPath": "/usr/bin/geckodriver"
108
- }
109
- },
110
- "platforms": [
111
- "linux",
112
- "windows",
113
- "mac"
114
- ]
115
- },
116
- {
117
- "app": {
118
- "name": "safari"
119
- },
120
- "platforms": [
121
- "mac"
122
- ]
123
- },
124
- {
125
- "app": {
126
- "name": "firefox",
127
- "path": "/usr/bin/firefox"
128
- },
129
- "platforms": [
130
- "linux"
131
- ]
132
- }
133
- ]
134
- }
@@ -1,374 +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
- "type": "string",
27
- "enum": [
28
- "linux",
29
- "mac",
30
- "windows"
31
- ]
32
- },
33
- {
34
- "type": "array",
35
- "items": {
36
- "type": "string",
37
- "enum": [
38
- "linux",
39
- "mac",
40
- "windows"
41
- ]
42
- }
43
- }
44
- ]
45
- },
46
- "browsers": {
47
- "description": "Browsers to run tests on.",
48
- "anyOf": [
49
- {
50
- "type": "string",
51
- "description": "Name of the browser.",
52
- "enum": [
53
- "chrome",
54
- "firefox",
55
- "safari",
56
- "webkit"
57
- ],
58
- "$comment": "`safari` is just a shortcut for `webkit`. Included for visibility and to reduce questions."
59
- },
60
- {
61
- "type": "object",
62
- "description": "Browser configuration.",
63
- "required": [
64
- "name"
65
- ],
66
- "additionalProperties": false,
67
- "properties": {
68
- "name": {
69
- "type": "string",
70
- "description": "Name of the browser.",
71
- "enum": [
72
- "chrome",
73
- "firefox",
74
- "safari",
75
- "webkit"
76
- ],
77
- "$comment": "`safari` is just a shortcut for `webkit`. Included for visibility and to reduce questions."
78
- },
79
- "headless": {
80
- "type": "boolean",
81
- "description": "If `true`, runs the browser in headless mode.",
82
- "default": true
83
- },
84
- "window": {
85
- "type": "object",
86
- "description": "Browser dimensions.",
87
- "additionalProperties": false,
88
- "properties": {
89
- "width": {
90
- "type": "integer",
91
- "description": "Width of the browser window in pixels."
92
- },
93
- "height": {
94
- "type": "integer",
95
- "description": "Height of the browser window in pixels."
96
- }
97
- },
98
- "title": "Browser Window"
99
- },
100
- "viewport": {
101
- "type": "object",
102
- "description": "Viewport dimensions.",
103
- "additionalProperties": false,
104
- "properties": {
105
- "width": {
106
- "type": "integer",
107
- "description": "Width of the viewport in pixels."
108
- },
109
- "height": {
110
- "type": "integer",
111
- "description": "Height of the viewport in pixels."
112
- }
113
- },
114
- "title": "Browser Viewport"
115
- }
116
- },
117
- "title": "Browser"
118
- },
119
- {
120
- "type": "array",
121
- "items": {
122
- "anyOf": [
123
- {
124
- "type": "string",
125
- "description": "Name of the browser.",
126
- "enum": [
127
- "chrome",
128
- "firefox",
129
- "safari",
130
- "webkit"
131
- ],
132
- "$comment": "`safari` is just a shortcut for `webkit`. Included for visibility and to reduce questions."
133
- },
134
- {
135
- "type": "object",
136
- "description": "Browser configuration.",
137
- "required": [
138
- "name"
139
- ],
140
- "additionalProperties": false,
141
- "properties": {
142
- "name": {
143
- "type": "string",
144
- "description": "Name of the browser.",
145
- "enum": [
146
- "chrome",
147
- "firefox",
148
- "safari",
149
- "webkit"
150
- ],
151
- "$comment": "`safari` is just a shortcut for `webkit`. Included for visibility and to reduce questions."
152
- },
153
- "headless": {
154
- "type": "boolean",
155
- "description": "If `true`, runs the browser in headless mode.",
156
- "default": true
157
- },
158
- "window": {
159
- "type": "object",
160
- "description": "Browser dimensions.",
161
- "additionalProperties": false,
162
- "properties": {
163
- "width": {
164
- "type": "integer",
165
- "description": "Width of the browser window in pixels."
166
- },
167
- "height": {
168
- "type": "integer",
169
- "description": "Height of the browser window in pixels."
170
- }
171
- },
172
- "title": "Browser Window"
173
- },
174
- "viewport": {
175
- "type": "object",
176
- "description": "Viewport dimensions.",
177
- "additionalProperties": false,
178
- "properties": {
179
- "width": {
180
- "type": "integer",
181
- "description": "Width of the viewport in pixels."
182
- },
183
- "height": {
184
- "type": "integer",
185
- "description": "Height of the viewport in pixels."
186
- }
187
- },
188
- "title": "Browser Viewport"
189
- }
190
- },
191
- "title": "Browser"
192
- }
193
- ]
194
- }
195
- }
196
- ]
197
- }
198
- },
199
- "components": {
200
- "schemas": {
201
- "platform": {
202
- "type": "string",
203
- "enum": [
204
- "linux",
205
- "mac",
206
- "windows"
207
- ]
208
- },
209
- "browserName": {
210
- "type": "string",
211
- "description": "Name of the browser.",
212
- "enum": [
213
- "chrome",
214
- "firefox",
215
- "safari",
216
- "webkit"
217
- ],
218
- "$comment": "`safari` is just a shortcut for `webkit`. Included for visibility and to reduce questions."
219
- },
220
- "browser": {
221
- "type": "object",
222
- "description": "Browser configuration.",
223
- "required": [
224
- "name"
225
- ],
226
- "additionalProperties": false,
227
- "properties": {
228
- "name": {
229
- "type": "string",
230
- "description": "Name of the browser.",
231
- "enum": [
232
- "chrome",
233
- "firefox",
234
- "safari",
235
- "webkit"
236
- ],
237
- "$comment": "`safari` is just a shortcut for `webkit`. Included for visibility and to reduce questions."
238
- },
239
- "headless": {
240
- "type": "boolean",
241
- "description": "If `true`, runs the browser in headless mode.",
242
- "default": true
243
- },
244
- "window": {
245
- "type": "object",
246
- "description": "Browser dimensions.",
247
- "additionalProperties": false,
248
- "properties": {
249
- "width": {
250
- "type": "integer",
251
- "description": "Width of the browser window in pixels."
252
- },
253
- "height": {
254
- "type": "integer",
255
- "description": "Height of the browser window in pixels."
256
- }
257
- },
258
- "title": "Browser Window"
259
- },
260
- "viewport": {
261
- "type": "object",
262
- "description": "Viewport dimensions.",
263
- "additionalProperties": false,
264
- "properties": {
265
- "width": {
266
- "type": "integer",
267
- "description": "Width of the viewport in pixels."
268
- },
269
- "height": {
270
- "type": "integer",
271
- "description": "Height of the viewport in pixels."
272
- }
273
- },
274
- "title": "Browser Viewport"
275
- }
276
- },
277
- "title": "Browser"
278
- }
279
- }
280
- },
281
- "examples": [
282
- {
283
- "platforms": "linux",
284
- "browsers": "chrome"
285
- },
286
- {
287
- "platforms": [
288
- "windows",
289
- "mac",
290
- "linux"
291
- ],
292
- "browsers": [
293
- "chrome",
294
- "firefox",
295
- "webkit"
296
- ]
297
- },
298
- {
299
- "browsers": {
300
- "name": "chrome",
301
- "headless": true
302
- }
303
- },
304
- {
305
- "browsers": [
306
- {
307
- "name": "chrome",
308
- "headless": true
309
- },
310
- {
311
- "name": "firefox"
312
- }
313
- ]
314
- },
315
- {
316
- "platforms": [
317
- "mac",
318
- "linux"
319
- ],
320
- "browsers": {
321
- "name": "chrome",
322
- "headless": true
323
- }
324
- },
325
- {
326
- "platforms": [
327
- "windows",
328
- "mac",
329
- "linux"
330
- ],
331
- "browsers": [
332
- {
333
- "name": "chrome",
334
- "headless": true,
335
- "window": {
336
- "width": 1920,
337
- "height": 1080
338
- },
339
- "viewport": {
340
- "width": 1600,
341
- "height": 900
342
- }
343
- },
344
- {
345
- "name": "firefox",
346
- "window": {
347
- "width": 1366,
348
- "height": 768
349
- }
350
- },
351
- {
352
- "name": "webkit",
353
- "headless": false,
354
- "viewport": {
355
- "width": 1440,
356
- "height": 900
357
- }
358
- }
359
- ]
360
- },
361
- {
362
- "platforms": "mac",
363
- "browsers": [
364
- {
365
- "name": "safari",
366
- "window": {
367
- "width": 1280,
368
- "height": 800
369
- }
370
- }
371
- ]
372
- }
373
- ]
374
- }