doc-detective-common 3.1.2-dev.3 → 3.2.0-dev.1
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/dist/schemas/config_v3.schema.json +632 -28
- package/dist/schemas/dragAndDrop_v3.schema.json +224 -0
- package/dist/schemas/loadCookie_v3.schema.json +5 -2
- package/dist/schemas/report_v3.schema.json +632 -28
- package/dist/schemas/resolvedTests_v3.schema.json +1274 -66
- package/dist/schemas/saveCookie_v3.schema.json +6 -12
- package/dist/schemas/spec_v3.schema.json +632 -28
- package/dist/schemas/step_v3.schema.json +316 -14
- package/dist/schemas/test_v3.schema.json +632 -28
- package/package.json +3 -3
- package/src/schemas/build/dragAndDrop_v3.schema.json +121 -0
- package/src/schemas/build/loadCookie_v3.schema.json +5 -1
- package/src/schemas/build/saveCookie_v3.schema.json +6 -6
- package/src/schemas/build/step_v3.schema.json +29 -0
- package/src/schemas/dereferenceSchemas.js +1 -0
- package/src/schemas/output_schemas/config_v3.schema.json +632 -28
- package/src/schemas/output_schemas/dragAndDrop_v3.schema.json +224 -0
- package/src/schemas/output_schemas/loadCookie_v3.schema.json +5 -2
- package/src/schemas/output_schemas/report_v3.schema.json +632 -28
- package/src/schemas/output_schemas/resolvedTests_v3.schema.json +1274 -66
- package/src/schemas/output_schemas/saveCookie_v3.schema.json +6 -12
- package/src/schemas/output_schemas/spec_v3.schema.json +632 -28
- package/src/schemas/output_schemas/step_v3.schema.json +316 -14
- package/src/schemas/output_schemas/test_v3.schema.json +632 -28
- package/src/schemas/schemas.json +4688 -541
- package/src/schemas/src_schemas/dragAndDrop_v3.schema.json +117 -0
- package/src/schemas/src_schemas/loadCookie_v3.schema.json +5 -1
- package/src/schemas/src_schemas/saveCookie_v3.schema.json +6 -4
- package/src/schemas/src_schemas/step_v3.schema.json +27 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doc-detective-common",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0-dev.1",
|
|
4
4
|
"description": "Shared components for Doc Detective projects.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
},
|
|
21
21
|
"homepage": "https://github.com/doc-detective/doc-detective-common#readme",
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"chai": "^5.
|
|
23
|
+
"chai": "^5.3.1",
|
|
24
24
|
"mocha": "^11.7.1",
|
|
25
25
|
"sinon": "^21.0.0"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@apidevtools/json-schema-ref-parser": "^14.
|
|
28
|
+
"@apidevtools/json-schema-ref-parser": "^14.2.0",
|
|
29
29
|
"ajv": "^8.17.1",
|
|
30
30
|
"ajv-errors": "^3.0.0",
|
|
31
31
|
"ajv-formats": "^3.0.1",
|
|
@@ -0,0 +1,121 @@
|
|
|
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": [
|
|
7
|
+
"source",
|
|
8
|
+
"target"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"source": {
|
|
12
|
+
"$ref": "#/components/schemas/elementSpecification",
|
|
13
|
+
"description": "The element to drag."
|
|
14
|
+
},
|
|
15
|
+
"target": {
|
|
16
|
+
"$ref": "#/components/schemas/elementSpecification",
|
|
17
|
+
"description": "The target location to drop the element."
|
|
18
|
+
},
|
|
19
|
+
"duration": {
|
|
20
|
+
"type": "integer",
|
|
21
|
+
"description": "Duration of the drag operation in milliseconds.",
|
|
22
|
+
"default": 1000,
|
|
23
|
+
"minimum": 0
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"components": {
|
|
27
|
+
"schemas": {
|
|
28
|
+
"elementSpecification": {
|
|
29
|
+
"anyOf": [
|
|
30
|
+
{
|
|
31
|
+
"$ref": "#/components/schemas/string"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"$ref": "#/components/schemas/object"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"string": {
|
|
39
|
+
"title": "Element (simple)",
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
42
|
+
},
|
|
43
|
+
"object": {
|
|
44
|
+
"title": "Element (detailed)",
|
|
45
|
+
"type": "object",
|
|
46
|
+
"anyOf": [
|
|
47
|
+
{
|
|
48
|
+
"required": [
|
|
49
|
+
"selector"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"required": [
|
|
54
|
+
"elementText"
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"properties": {
|
|
59
|
+
"elementText": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"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."
|
|
62
|
+
},
|
|
63
|
+
"selector": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
66
|
+
},
|
|
67
|
+
"timeout": {
|
|
68
|
+
"type": "integer",
|
|
69
|
+
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
70
|
+
"default": 5000
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"examples": [
|
|
77
|
+
{
|
|
78
|
+
"source": "Table",
|
|
79
|
+
"target": "#canvas"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"source": ".draggable-block",
|
|
83
|
+
"target": ".drop-zone",
|
|
84
|
+
"duration": 2000
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"source": {
|
|
88
|
+
"selector": ".widget",
|
|
89
|
+
"elementText": "Data Table"
|
|
90
|
+
},
|
|
91
|
+
"target": {
|
|
92
|
+
"selector": "#design-canvas"
|
|
93
|
+
},
|
|
94
|
+
"duration": 500
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"source": {
|
|
98
|
+
"selector": ".draggable",
|
|
99
|
+
"timeout": 10000
|
|
100
|
+
},
|
|
101
|
+
"target": {
|
|
102
|
+
"elementText": "Drop Zone",
|
|
103
|
+
"timeout": 5000
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"source": "/Widget Item.*/",
|
|
108
|
+
"target": "#canvas"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"source": {
|
|
112
|
+
"selector": ".draggable",
|
|
113
|
+
"elementText": "/Button [0-9]+/"
|
|
114
|
+
},
|
|
115
|
+
"target": {
|
|
116
|
+
"elementText": "/Drop Zone.*/"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"$id": "/home/runner/work/common/common/src/schemas/src_schemas/dragAndDrop_v3.schema.json"
|
|
121
|
+
}
|
|
@@ -86,7 +86,6 @@
|
|
|
86
86
|
"type": "string",
|
|
87
87
|
"title": "Cookie file path",
|
|
88
88
|
"description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
|
|
89
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
90
89
|
"transform": [
|
|
91
90
|
"trim"
|
|
92
91
|
]
|
|
@@ -115,10 +114,15 @@
|
|
|
115
114
|
"examples": [
|
|
116
115
|
"session_token",
|
|
117
116
|
"./test-data/auth-session.txt",
|
|
117
|
+
"test_env_cookie",
|
|
118
118
|
{
|
|
119
119
|
"name": "auth_cookie",
|
|
120
120
|
"variable": "AUTH_COOKIE"
|
|
121
121
|
},
|
|
122
|
+
{
|
|
123
|
+
"name": "test_cookie",
|
|
124
|
+
"path": "test-cookie.txt"
|
|
125
|
+
},
|
|
122
126
|
{
|
|
123
127
|
"name": "session_token",
|
|
124
128
|
"path": "session-token.txt",
|
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
"type": "string",
|
|
53
53
|
"title": "Cookie file path",
|
|
54
54
|
"description": "File path to save the cookie, relative to directory. Uses Netscape cookie format.",
|
|
55
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
56
55
|
"transform": [
|
|
57
56
|
"trim"
|
|
58
57
|
]
|
|
@@ -109,11 +108,6 @@
|
|
|
109
108
|
"required": [
|
|
110
109
|
"directory"
|
|
111
110
|
]
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"required": [
|
|
115
|
-
"overwrite"
|
|
116
|
-
]
|
|
117
111
|
}
|
|
118
112
|
]
|
|
119
113
|
}
|
|
@@ -125,6 +119,7 @@
|
|
|
125
119
|
},
|
|
126
120
|
"examples": [
|
|
127
121
|
"session_token",
|
|
122
|
+
"test_env_cookie",
|
|
128
123
|
{
|
|
129
124
|
"name": "auth_cookie",
|
|
130
125
|
"path": "auth-cookie.txt"
|
|
@@ -133,6 +128,11 @@
|
|
|
133
128
|
"name": "session_token",
|
|
134
129
|
"variable": "SESSION_TOKEN"
|
|
135
130
|
},
|
|
131
|
+
{
|
|
132
|
+
"name": "test_cookie",
|
|
133
|
+
"path": "test-cookie.txt",
|
|
134
|
+
"overwrite": true
|
|
135
|
+
},
|
|
136
136
|
{
|
|
137
137
|
"name": "user_session",
|
|
138
138
|
"path": "user-session.txt",
|
|
@@ -334,6 +334,25 @@
|
|
|
334
334
|
}
|
|
335
335
|
]
|
|
336
336
|
},
|
|
337
|
+
{
|
|
338
|
+
"allOf": [
|
|
339
|
+
{
|
|
340
|
+
"$ref": "#/components/schemas/common"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"title": "dragAndDrop",
|
|
344
|
+
"type": "object",
|
|
345
|
+
"required": [
|
|
346
|
+
"dragAndDrop"
|
|
347
|
+
],
|
|
348
|
+
"properties": {
|
|
349
|
+
"dragAndDrop": {
|
|
350
|
+
"$ref": "/home/runner/work/common/common/src/schemas/build/dragAndDrop_v3.schema.json#"
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
]
|
|
355
|
+
},
|
|
337
356
|
{
|
|
338
357
|
"allOf": [
|
|
339
358
|
{
|
|
@@ -634,6 +653,16 @@
|
|
|
634
653
|
{
|
|
635
654
|
"checkLink": "https://www.google.com",
|
|
636
655
|
"breakpoint": false
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"dragAndDrop": {
|
|
659
|
+
"source": {
|
|
660
|
+
"selector": "#sourceElement"
|
|
661
|
+
},
|
|
662
|
+
"target": {
|
|
663
|
+
"selector": "#targetElement"
|
|
664
|
+
}
|
|
665
|
+
}
|
|
637
666
|
}
|
|
638
667
|
],
|
|
639
668
|
"$id": "/home/runner/work/common/common/src/schemas/src_schemas/step_v3.schema.json"
|