doc-detective-common 3.1.1-dev.1 → 3.1.1-dev.2

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 (55) hide show
  1. package/dist/schemas/config_v3.schema.json +21 -0
  2. package/dist/schemas/resolvedTests_v3.schema.json +21 -0
  3. package/package.json +1 -1
  4. package/src/schemas/build/checkLink_v2.schema.json +81 -0
  5. package/src/schemas/build/checkLink_v3.schema.json +92 -0
  6. package/src/schemas/build/click_v3.schema.json +77 -0
  7. package/src/schemas/build/config_v2.schema.json +1079 -0
  8. package/src/schemas/build/config_v3.schema.json +526 -0
  9. package/src/schemas/build/context_v2.schema.json +135 -0
  10. package/src/schemas/build/context_v3.schema.json +229 -0
  11. package/src/schemas/build/find_v2.schema.json +168 -0
  12. package/src/schemas/build/find_v3.schema.json +128 -0
  13. package/src/schemas/build/goTo_v2.schema.json +63 -0
  14. package/src/schemas/build/goTo_v3.schema.json +63 -0
  15. package/src/schemas/build/httpRequest_v2.schema.json +321 -0
  16. package/src/schemas/build/httpRequest_v3.schema.json +385 -0
  17. package/src/schemas/build/loadVariables_v3.schema.json +10 -0
  18. package/src/schemas/build/moveTo_v2.schema.json +99 -0
  19. package/src/schemas/build/openApi_v2.schema.json +76 -0
  20. package/src/schemas/build/openApi_v3.schema.json +161 -0
  21. package/src/schemas/build/record_v3.schema.json +70 -0
  22. package/src/schemas/build/report_v3.schema.json +53 -0
  23. package/src/schemas/build/resolvedTests_v3.schema.json +238 -0
  24. package/src/schemas/build/runCode_v2.schema.json +201 -0
  25. package/src/schemas/build/runCode_v3.schema.json +138 -0
  26. package/src/schemas/build/runShell_v2.schema.json +189 -0
  27. package/src/schemas/build/runShell_v3.schema.json +156 -0
  28. package/src/schemas/build/saveScreenshot_v2.schema.json +150 -0
  29. package/src/schemas/build/screenshot_v3.schema.json +178 -0
  30. package/src/schemas/build/setVariables_v2.schema.json +39 -0
  31. package/src/schemas/build/spec_v2.schema.json +199 -0
  32. package/src/schemas/build/spec_v3.schema.json +213 -0
  33. package/src/schemas/build/startRecording_v2.schema.json +57 -0
  34. package/src/schemas/build/step_v3.schema.json +563 -0
  35. package/src/schemas/build/stopRecord_v3.schema.json +15 -0
  36. package/src/schemas/build/stopRecording_v2.schema.json +33 -0
  37. package/src/schemas/build/test_v2.schema.json +244 -0
  38. package/src/schemas/build/test_v3.schema.json +292 -0
  39. package/src/schemas/build/typeKeys_v2.schema.json +72 -0
  40. package/src/schemas/build/type_v3.schema.json +84 -0
  41. package/src/schemas/build/wait_v2.schema.json +42 -0
  42. package/src/schemas/build/wait_v3.schema.json +37 -0
  43. package/src/schemas/output_schemas/config_v3.schema.json +21 -0
  44. package/src/schemas/output_schemas/resolvedTests_v3.schema.json +21 -0
  45. package/src/schemas/schemas.json +42 -0
  46. package/src/schemas/src_schemas/config_v3.schema.json +18 -0
  47. package/.coderabbit.yaml +0 -92
  48. package/.devcontainer/devcontainer.json +0 -37
  49. package/.github/FUNDING.yml +0 -14
  50. package/.github/workflows/auto-dev-release.yml +0 -178
  51. package/.github/workflows/npm-test.yml +0 -86
  52. package/dev/dev.js +0 -3
  53. package/docs/auto-dev-release.md +0 -195
  54. package/test/files.test.js +0 -107
  55. package/test/schema.test.js +0 -30
@@ -5744,6 +5744,18 @@
5744
5744
  },
5745
5745
  "title": "Telemetry options"
5746
5746
  },
5747
+ "concurrentRunners": {
5748
+ "type": [
5749
+ "integer",
5750
+ "boolean"
5751
+ ],
5752
+ "default": 1,
5753
+ "minimum": 1,
5754
+ "description": "Number of concurrent test runners. Set to true to use CPU core count (capped at 4).",
5755
+ "not": {
5756
+ "const": false
5757
+ }
5758
+ },
5747
5759
  "environment": {
5748
5760
  "type": "object",
5749
5761
  "description": "Environment information for the system running Doc Detective.",
@@ -10588,6 +10600,15 @@
10588
10600
  "platform": "windows",
10589
10601
  "arch": "x64"
10590
10602
  }
10603
+ },
10604
+ {
10605
+ "concurrentRunners": 1
10606
+ },
10607
+ {
10608
+ "concurrentRunners": true
10609
+ },
10610
+ {
10611
+ "concurrentRunners": 4
10591
10612
  }
10592
10613
  ]
10593
10614
  }
@@ -5757,6 +5757,18 @@
5757
5757
  },
5758
5758
  "title": "Telemetry options"
5759
5759
  },
5760
+ "concurrentRunners": {
5761
+ "type": [
5762
+ "integer",
5763
+ "boolean"
5764
+ ],
5765
+ "default": 1,
5766
+ "minimum": 1,
5767
+ "description": "Number of concurrent test runners. Set to true to use CPU core count (capped at 4).",
5768
+ "not": {
5769
+ "const": false
5770
+ }
5771
+ },
5760
5772
  "environment": {
5761
5773
  "type": "object",
5762
5774
  "description": "Environment information for the system running Doc Detective.",
@@ -10601,6 +10613,15 @@
10601
10613
  "platform": "windows",
10602
10614
  "arch": "x64"
10603
10615
  }
10616
+ },
10617
+ {
10618
+ "concurrentRunners": 1
10619
+ },
10620
+ {
10621
+ "concurrentRunners": true
10622
+ },
10623
+ {
10624
+ "concurrentRunners": 4
10604
10625
  }
10605
10626
  ]
10606
10627
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doc-detective-common",
3
- "version": "3.1.1-dev.1",
3
+ "version": "3.1.1-dev.2",
4
4
  "description": "Shared components for Doc Detective projects.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -0,0 +1,81 @@
1
+ {
2
+ "title": "checkLink",
3
+ "type": "object",
4
+ "description": "Check if a URL returns an acceptable status code from a GET request.",
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": "checkLink",
17
+ "description": "Action to perform."
18
+ },
19
+ "url": {
20
+ "type": "string",
21
+ "description": "URL to check.",
22
+ "pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
23
+ "transform": [
24
+ "trim"
25
+ ]
26
+ },
27
+ "origin": {
28
+ "type": "string",
29
+ "description": "Protocol and domain to navigate to. Prepended to `url`.",
30
+ "transform": [
31
+ "trim"
32
+ ]
33
+ },
34
+ "statusCodes": {
35
+ "description": "Accepted status codes. If the specified URL returns a code other than what is specified here, the action fails.",
36
+ "type": "array",
37
+ "items": {
38
+ "oneOf": [
39
+ {
40
+ "type": "integer"
41
+ }
42
+ ]
43
+ },
44
+ "default": [
45
+ 200,
46
+ 201,
47
+ 202
48
+ ]
49
+ }
50
+ },
51
+ "dynamicDefaults": {
52
+ "id": "uuid"
53
+ },
54
+ "required": [
55
+ "action",
56
+ "url"
57
+ ],
58
+ "additionalProperties": false,
59
+ "examples": [
60
+ {
61
+ "action": "checkLink",
62
+ "url": "https://www.google.com"
63
+ },
64
+ {
65
+ "action": "checkLink",
66
+ "url": "https://www.google.com",
67
+ "statusCodes": [
68
+ 200
69
+ ]
70
+ },
71
+ {
72
+ "action": "checkLink",
73
+ "url": "/search",
74
+ "origin": "www.google.com",
75
+ "statusCodes": [
76
+ 200
77
+ ]
78
+ }
79
+ ],
80
+ "$id": "/home/runner/work/common/common/src/schemas/src_schemas/checkLink_v2.schema.json"
81
+ }
@@ -0,0 +1,92 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "checkLink",
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": "Check link (detailed)",
16
+ "description": "Check if an HTTP or HTTPS URL returns an acceptable status code from a GET request.",
17
+ "type": "string",
18
+ "pattern": "(^(http://|https://|\\/).*|\\$[A-Za-z0-9_]+$)",
19
+ "transform": [
20
+ "trim"
21
+ ]
22
+ },
23
+ "object": {
24
+ "title": "Check link (detailed)",
25
+ "description": "Check if an HTTP or HTTPS URL returns an acceptable status code from a GET request.",
26
+ "type": "object",
27
+ "additionalProperties": false,
28
+ "required": [
29
+ "url"
30
+ ],
31
+ "properties": {
32
+ "url": {
33
+ "type": "string",
34
+ "description": "URL to check. Can be a full URL or a path. If a path is provided, `origin` must be specified.",
35
+ "pattern": "(^(http://|https://|/).*|\\$[A-Za-z0-9_]+)",
36
+ "transform": [
37
+ "trim"
38
+ ]
39
+ },
40
+ "origin": {
41
+ "type": "string",
42
+ "description": "Protocol and domain to navigate to. Prepended to `url`.",
43
+ "transform": [
44
+ "trim"
45
+ ]
46
+ },
47
+ "statusCodes": {
48
+ "description": "Accepted status codes. If the specified URL returns a code other than what is specified here, the action fails.",
49
+ "anyOf": [
50
+ {
51
+ "type": "integer"
52
+ },
53
+ {
54
+ "type": "array",
55
+ "items": {
56
+ "oneOf": [
57
+ {
58
+ "type": "integer"
59
+ }
60
+ ]
61
+ }
62
+ }
63
+ ],
64
+ "default": [
65
+ 200,
66
+ 301,
67
+ 302,
68
+ 307,
69
+ 308
70
+ ]
71
+ }
72
+ }
73
+ }
74
+ }
75
+ },
76
+ "examples": [
77
+ "https://www.google.com",
78
+ "/search",
79
+ {
80
+ "url": "https://www.google.com",
81
+ "statusCodes": 200
82
+ },
83
+ {
84
+ "url": "/search",
85
+ "origin": "www.google.com",
86
+ "statusCodes": [
87
+ 200
88
+ ]
89
+ }
90
+ ],
91
+ "$id": "/home/runner/work/common/common/src/schemas/src_schemas/checkLink_v3.schema.json"
92
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "click",
4
+ "description": "Click or tap an element.",
5
+ "anyOf": [
6
+ {
7
+ "$ref": "#/components/schemas/string"
8
+ },
9
+ {
10
+ "$ref": "#/components/schemas/object"
11
+ },
12
+ {
13
+ "type": "boolean"
14
+ }
15
+ ],
16
+ "components": {
17
+ "schemas": {
18
+ "string": {
19
+ "title": "Click element (simple)",
20
+ "type": "string",
21
+ "description": "Display text or selector of the element to find."
22
+ },
23
+ "button": {
24
+ "description": "Kind of click to perform.",
25
+ "type": "string",
26
+ "enum": [
27
+ "left",
28
+ "right",
29
+ "middle"
30
+ ]
31
+ },
32
+ "object": {
33
+ "title": "Click element (detailed)",
34
+ "type": "object",
35
+ "anyOf": [
36
+ {
37
+ "required": [
38
+ "selector"
39
+ ]
40
+ },
41
+ {
42
+ "required": [
43
+ "elementText"
44
+ ]
45
+ }
46
+ ],
47
+ "properties": {
48
+ "button": {
49
+ "$ref": "#/components/schemas/button"
50
+ },
51
+ "elementText": {
52
+ "type": "string",
53
+ "description": "Display text of the element to click. If combined with `selector`, the element must match both the text and the selector."
54
+ },
55
+ "selector": {
56
+ "type": "string",
57
+ "description": "Selector of the element to click. If combined with `elementText`, the element must match both the text and the selector."
58
+ }
59
+ }
60
+ }
61
+ }
62
+ },
63
+ "examples": [
64
+ true,
65
+ "right",
66
+ {
67
+ "button": "left",
68
+ "elementText": "Element text"
69
+ },
70
+ {
71
+ "selector": "#elementToScreenshot",
72
+ "elementText": "Element text",
73
+ "button": "middle"
74
+ }
75
+ ],
76
+ "$id": "/home/runner/work/common/common/src/schemas/src_schemas/click_v3.schema.json"
77
+ }