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
|
@@ -4463,7 +4463,6 @@
|
|
|
4463
4463
|
"type": "string",
|
|
4464
4464
|
"title": "Cookie file path",
|
|
4465
4465
|
"description": "File path to save the cookie, relative to directory. Uses Netscape cookie format.",
|
|
4466
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
4467
4466
|
"transform": [
|
|
4468
4467
|
"trim"
|
|
4469
4468
|
]
|
|
@@ -4520,11 +4519,6 @@
|
|
|
4520
4519
|
"required": [
|
|
4521
4520
|
"directory"
|
|
4522
4521
|
]
|
|
4523
|
-
},
|
|
4524
|
-
{
|
|
4525
|
-
"required": [
|
|
4526
|
-
"overwrite"
|
|
4527
|
-
]
|
|
4528
4522
|
}
|
|
4529
4523
|
]
|
|
4530
4524
|
}
|
|
@@ -4575,7 +4569,6 @@
|
|
|
4575
4569
|
"type": "string",
|
|
4576
4570
|
"title": "Cookie file path",
|
|
4577
4571
|
"description": "File path to save the cookie, relative to directory. Uses Netscape cookie format.",
|
|
4578
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
4579
4572
|
"transform": [
|
|
4580
4573
|
"trim"
|
|
4581
4574
|
]
|
|
@@ -4632,11 +4625,6 @@
|
|
|
4632
4625
|
"required": [
|
|
4633
4626
|
"directory"
|
|
4634
4627
|
]
|
|
4635
|
-
},
|
|
4636
|
-
{
|
|
4637
|
-
"required": [
|
|
4638
|
-
"overwrite"
|
|
4639
|
-
]
|
|
4640
4628
|
}
|
|
4641
4629
|
]
|
|
4642
4630
|
}
|
|
@@ -4648,6 +4636,7 @@
|
|
|
4648
4636
|
},
|
|
4649
4637
|
"examples": [
|
|
4650
4638
|
"session_token",
|
|
4639
|
+
"test_env_cookie",
|
|
4651
4640
|
{
|
|
4652
4641
|
"name": "auth_cookie",
|
|
4653
4642
|
"path": "auth-cookie.txt"
|
|
@@ -4656,6 +4645,11 @@
|
|
|
4656
4645
|
"name": "session_token",
|
|
4657
4646
|
"variable": "SESSION_TOKEN"
|
|
4658
4647
|
},
|
|
4648
|
+
{
|
|
4649
|
+
"name": "test_cookie",
|
|
4650
|
+
"path": "test-cookie.txt",
|
|
4651
|
+
"overwrite": true
|
|
4652
|
+
},
|
|
4659
4653
|
{
|
|
4660
4654
|
"name": "user_session",
|
|
4661
4655
|
"path": "user-session.txt",
|
|
@@ -5011,6 +5005,301 @@
|
|
|
5011
5005
|
}
|
|
5012
5006
|
]
|
|
5013
5007
|
},
|
|
5008
|
+
{
|
|
5009
|
+
"allOf": [
|
|
5010
|
+
{
|
|
5011
|
+
"type": "object",
|
|
5012
|
+
"dynamicDefaults": {
|
|
5013
|
+
"stepId": "uuid"
|
|
5014
|
+
},
|
|
5015
|
+
"properties": {
|
|
5016
|
+
"$schema": {
|
|
5017
|
+
"description": "JSON Schema for this object.",
|
|
5018
|
+
"type": "string",
|
|
5019
|
+
"enum": [
|
|
5020
|
+
"https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/step_v3.schema.json"
|
|
5021
|
+
]
|
|
5022
|
+
},
|
|
5023
|
+
"stepId": {
|
|
5024
|
+
"type": "string",
|
|
5025
|
+
"description": "ID of the step."
|
|
5026
|
+
},
|
|
5027
|
+
"description": {
|
|
5028
|
+
"type": "string",
|
|
5029
|
+
"description": "Description of the step."
|
|
5030
|
+
},
|
|
5031
|
+
"unsafe": {
|
|
5032
|
+
"type": "boolean",
|
|
5033
|
+
"description": "Whether or not the step may be unsafe. Unsafe steps may perform actions that could modify the system or environment in unexpected ways. Unsafe steps are only performed within Docker containers or if unsafe steps are enabled with the `allowUnsafeSteps` config property or the `--allow-unsafe` flag.",
|
|
5034
|
+
"default": false
|
|
5035
|
+
},
|
|
5036
|
+
"outputs": {
|
|
5037
|
+
"type": "object",
|
|
5038
|
+
"description": "Outputs from step processes and user-defined expressions. Use the `outputs` object to reference outputs in subsequent steps. If a user-defined output matches the key for a step-defined output, the user-defined output takes precedence.",
|
|
5039
|
+
"default": {},
|
|
5040
|
+
"patternProperties": {
|
|
5041
|
+
"^[A-Za-z0-9_]+$": {
|
|
5042
|
+
"type": "string",
|
|
5043
|
+
"description": "Runtime expression for a user-defined output value."
|
|
5044
|
+
}
|
|
5045
|
+
},
|
|
5046
|
+
"title": "Outputs (step)"
|
|
5047
|
+
},
|
|
5048
|
+
"variables": {
|
|
5049
|
+
"type": "object",
|
|
5050
|
+
"description": "Environment variables to set from user-defined expressions.",
|
|
5051
|
+
"default": {},
|
|
5052
|
+
"patternProperties": {
|
|
5053
|
+
"^[A-Za-z0-9_]+$": {
|
|
5054
|
+
"type": "string",
|
|
5055
|
+
"description": "Runtime expression for a user-defined output value."
|
|
5056
|
+
}
|
|
5057
|
+
},
|
|
5058
|
+
"title": "Variables (step)"
|
|
5059
|
+
},
|
|
5060
|
+
"breakpoint": {
|
|
5061
|
+
"type": "boolean",
|
|
5062
|
+
"description": "Whether or not this step should act as a breakpoint when debugging is enabled. When `true`, execution will pause at this step when debug mode is enabled.",
|
|
5063
|
+
"default": false
|
|
5064
|
+
}
|
|
5065
|
+
},
|
|
5066
|
+
"title": "Common"
|
|
5067
|
+
},
|
|
5068
|
+
{
|
|
5069
|
+
"title": "dragAndDrop",
|
|
5070
|
+
"type": "object",
|
|
5071
|
+
"required": [
|
|
5072
|
+
"dragAndDrop"
|
|
5073
|
+
],
|
|
5074
|
+
"properties": {
|
|
5075
|
+
"dragAndDrop": {
|
|
5076
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5077
|
+
"title": "dragAndDrop",
|
|
5078
|
+
"description": "Drag and drop an element from source to target.",
|
|
5079
|
+
"type": "object",
|
|
5080
|
+
"required": [
|
|
5081
|
+
"source",
|
|
5082
|
+
"target"
|
|
5083
|
+
],
|
|
5084
|
+
"properties": {
|
|
5085
|
+
"source": {
|
|
5086
|
+
"description": "The element to drag.",
|
|
5087
|
+
"anyOf": [
|
|
5088
|
+
{
|
|
5089
|
+
"title": "Element (simple)",
|
|
5090
|
+
"type": "string",
|
|
5091
|
+
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
5092
|
+
},
|
|
5093
|
+
{
|
|
5094
|
+
"title": "Element (detailed)",
|
|
5095
|
+
"type": "object",
|
|
5096
|
+
"anyOf": [
|
|
5097
|
+
{
|
|
5098
|
+
"required": [
|
|
5099
|
+
"selector"
|
|
5100
|
+
]
|
|
5101
|
+
},
|
|
5102
|
+
{
|
|
5103
|
+
"required": [
|
|
5104
|
+
"elementText"
|
|
5105
|
+
]
|
|
5106
|
+
}
|
|
5107
|
+
],
|
|
5108
|
+
"properties": {
|
|
5109
|
+
"elementText": {
|
|
5110
|
+
"type": "string",
|
|
5111
|
+
"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."
|
|
5112
|
+
},
|
|
5113
|
+
"selector": {
|
|
5114
|
+
"type": "string",
|
|
5115
|
+
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
5116
|
+
},
|
|
5117
|
+
"timeout": {
|
|
5118
|
+
"type": "integer",
|
|
5119
|
+
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
5120
|
+
"default": 5000
|
|
5121
|
+
}
|
|
5122
|
+
}
|
|
5123
|
+
}
|
|
5124
|
+
]
|
|
5125
|
+
},
|
|
5126
|
+
"target": {
|
|
5127
|
+
"description": "The target location to drop the element.",
|
|
5128
|
+
"anyOf": [
|
|
5129
|
+
{
|
|
5130
|
+
"title": "Element (simple)",
|
|
5131
|
+
"type": "string",
|
|
5132
|
+
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
5133
|
+
},
|
|
5134
|
+
{
|
|
5135
|
+
"title": "Element (detailed)",
|
|
5136
|
+
"type": "object",
|
|
5137
|
+
"anyOf": [
|
|
5138
|
+
{
|
|
5139
|
+
"required": [
|
|
5140
|
+
"selector"
|
|
5141
|
+
]
|
|
5142
|
+
},
|
|
5143
|
+
{
|
|
5144
|
+
"required": [
|
|
5145
|
+
"elementText"
|
|
5146
|
+
]
|
|
5147
|
+
}
|
|
5148
|
+
],
|
|
5149
|
+
"properties": {
|
|
5150
|
+
"elementText": {
|
|
5151
|
+
"type": "string",
|
|
5152
|
+
"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."
|
|
5153
|
+
},
|
|
5154
|
+
"selector": {
|
|
5155
|
+
"type": "string",
|
|
5156
|
+
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
5157
|
+
},
|
|
5158
|
+
"timeout": {
|
|
5159
|
+
"type": "integer",
|
|
5160
|
+
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
5161
|
+
"default": 5000
|
|
5162
|
+
}
|
|
5163
|
+
}
|
|
5164
|
+
}
|
|
5165
|
+
]
|
|
5166
|
+
},
|
|
5167
|
+
"duration": {
|
|
5168
|
+
"type": "integer",
|
|
5169
|
+
"description": "Duration of the drag operation in milliseconds.",
|
|
5170
|
+
"default": 1000,
|
|
5171
|
+
"minimum": 0
|
|
5172
|
+
}
|
|
5173
|
+
},
|
|
5174
|
+
"components": {
|
|
5175
|
+
"schemas": {
|
|
5176
|
+
"elementSpecification": {
|
|
5177
|
+
"anyOf": [
|
|
5178
|
+
{
|
|
5179
|
+
"title": "Element (simple)",
|
|
5180
|
+
"type": "string",
|
|
5181
|
+
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
5182
|
+
},
|
|
5183
|
+
{
|
|
5184
|
+
"title": "Element (detailed)",
|
|
5185
|
+
"type": "object",
|
|
5186
|
+
"anyOf": [
|
|
5187
|
+
{
|
|
5188
|
+
"required": [
|
|
5189
|
+
"selector"
|
|
5190
|
+
]
|
|
5191
|
+
},
|
|
5192
|
+
{
|
|
5193
|
+
"required": [
|
|
5194
|
+
"elementText"
|
|
5195
|
+
]
|
|
5196
|
+
}
|
|
5197
|
+
],
|
|
5198
|
+
"properties": {
|
|
5199
|
+
"elementText": {
|
|
5200
|
+
"type": "string",
|
|
5201
|
+
"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."
|
|
5202
|
+
},
|
|
5203
|
+
"selector": {
|
|
5204
|
+
"type": "string",
|
|
5205
|
+
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
5206
|
+
},
|
|
5207
|
+
"timeout": {
|
|
5208
|
+
"type": "integer",
|
|
5209
|
+
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
5210
|
+
"default": 5000
|
|
5211
|
+
}
|
|
5212
|
+
}
|
|
5213
|
+
}
|
|
5214
|
+
]
|
|
5215
|
+
},
|
|
5216
|
+
"string": {
|
|
5217
|
+
"title": "Element (simple)",
|
|
5218
|
+
"type": "string",
|
|
5219
|
+
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
5220
|
+
},
|
|
5221
|
+
"object": {
|
|
5222
|
+
"title": "Element (detailed)",
|
|
5223
|
+
"type": "object",
|
|
5224
|
+
"anyOf": [
|
|
5225
|
+
{
|
|
5226
|
+
"required": [
|
|
5227
|
+
"selector"
|
|
5228
|
+
]
|
|
5229
|
+
},
|
|
5230
|
+
{
|
|
5231
|
+
"required": [
|
|
5232
|
+
"elementText"
|
|
5233
|
+
]
|
|
5234
|
+
}
|
|
5235
|
+
],
|
|
5236
|
+
"properties": {
|
|
5237
|
+
"elementText": {
|
|
5238
|
+
"type": "string",
|
|
5239
|
+
"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."
|
|
5240
|
+
},
|
|
5241
|
+
"selector": {
|
|
5242
|
+
"type": "string",
|
|
5243
|
+
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
5244
|
+
},
|
|
5245
|
+
"timeout": {
|
|
5246
|
+
"type": "integer",
|
|
5247
|
+
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
5248
|
+
"default": 5000
|
|
5249
|
+
}
|
|
5250
|
+
}
|
|
5251
|
+
}
|
|
5252
|
+
}
|
|
5253
|
+
},
|
|
5254
|
+
"examples": [
|
|
5255
|
+
{
|
|
5256
|
+
"source": "Table",
|
|
5257
|
+
"target": "#canvas"
|
|
5258
|
+
},
|
|
5259
|
+
{
|
|
5260
|
+
"source": ".draggable-block",
|
|
5261
|
+
"target": ".drop-zone",
|
|
5262
|
+
"duration": 2000
|
|
5263
|
+
},
|
|
5264
|
+
{
|
|
5265
|
+
"source": {
|
|
5266
|
+
"selector": ".widget",
|
|
5267
|
+
"elementText": "Data Table"
|
|
5268
|
+
},
|
|
5269
|
+
"target": {
|
|
5270
|
+
"selector": "#design-canvas"
|
|
5271
|
+
},
|
|
5272
|
+
"duration": 500
|
|
5273
|
+
},
|
|
5274
|
+
{
|
|
5275
|
+
"source": {
|
|
5276
|
+
"selector": ".draggable",
|
|
5277
|
+
"timeout": 10000
|
|
5278
|
+
},
|
|
5279
|
+
"target": {
|
|
5280
|
+
"elementText": "Drop Zone",
|
|
5281
|
+
"timeout": 5000
|
|
5282
|
+
}
|
|
5283
|
+
},
|
|
5284
|
+
{
|
|
5285
|
+
"source": "/Widget Item.*/",
|
|
5286
|
+
"target": "#canvas"
|
|
5287
|
+
},
|
|
5288
|
+
{
|
|
5289
|
+
"source": {
|
|
5290
|
+
"selector": ".draggable",
|
|
5291
|
+
"elementText": "/Button [0-9]+/"
|
|
5292
|
+
},
|
|
5293
|
+
"target": {
|
|
5294
|
+
"elementText": "/Drop Zone.*/"
|
|
5295
|
+
}
|
|
5296
|
+
}
|
|
5297
|
+
]
|
|
5298
|
+
}
|
|
5299
|
+
}
|
|
5300
|
+
}
|
|
5301
|
+
]
|
|
5302
|
+
},
|
|
5014
5303
|
{
|
|
5015
5304
|
"allOf": [
|
|
5016
5305
|
{
|
|
@@ -5157,7 +5446,6 @@
|
|
|
5157
5446
|
"type": "string",
|
|
5158
5447
|
"title": "Cookie file path",
|
|
5159
5448
|
"description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
|
|
5160
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
5161
5449
|
"transform": [
|
|
5162
5450
|
"trim"
|
|
5163
5451
|
]
|
|
@@ -5258,7 +5546,6 @@
|
|
|
5258
5546
|
"type": "string",
|
|
5259
5547
|
"title": "Cookie file path",
|
|
5260
5548
|
"description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
|
|
5261
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
5262
5549
|
"transform": [
|
|
5263
5550
|
"trim"
|
|
5264
5551
|
]
|
|
@@ -5287,10 +5574,15 @@
|
|
|
5287
5574
|
"examples": [
|
|
5288
5575
|
"session_token",
|
|
5289
5576
|
"./test-data/auth-session.txt",
|
|
5577
|
+
"test_env_cookie",
|
|
5290
5578
|
{
|
|
5291
5579
|
"name": "auth_cookie",
|
|
5292
5580
|
"variable": "AUTH_COOKIE"
|
|
5293
5581
|
},
|
|
5582
|
+
{
|
|
5583
|
+
"name": "test_cookie",
|
|
5584
|
+
"path": "test-cookie.txt"
|
|
5585
|
+
},
|
|
5294
5586
|
{
|
|
5295
5587
|
"name": "session_token",
|
|
5296
5588
|
"path": "session-token.txt",
|
|
@@ -5796,6 +6088,16 @@
|
|
|
5796
6088
|
{
|
|
5797
6089
|
"checkLink": "https://www.google.com",
|
|
5798
6090
|
"breakpoint": false
|
|
6091
|
+
},
|
|
6092
|
+
{
|
|
6093
|
+
"dragAndDrop": {
|
|
6094
|
+
"source": {
|
|
6095
|
+
"selector": "#sourceElement"
|
|
6096
|
+
},
|
|
6097
|
+
"target": {
|
|
6098
|
+
"selector": "#targetElement"
|
|
6099
|
+
}
|
|
6100
|
+
}
|
|
5799
6101
|
}
|
|
5800
6102
|
]
|
|
5801
6103
|
}
|
|
@@ -9923,7 +10225,6 @@
|
|
|
9923
10225
|
"type": "string",
|
|
9924
10226
|
"title": "Cookie file path",
|
|
9925
10227
|
"description": "File path to save the cookie, relative to directory. Uses Netscape cookie format.",
|
|
9926
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
9927
10228
|
"transform": [
|
|
9928
10229
|
"trim"
|
|
9929
10230
|
]
|
|
@@ -9980,11 +10281,6 @@
|
|
|
9980
10281
|
"required": [
|
|
9981
10282
|
"directory"
|
|
9982
10283
|
]
|
|
9983
|
-
},
|
|
9984
|
-
{
|
|
9985
|
-
"required": [
|
|
9986
|
-
"overwrite"
|
|
9987
|
-
]
|
|
9988
10284
|
}
|
|
9989
10285
|
]
|
|
9990
10286
|
}
|
|
@@ -10035,7 +10331,6 @@
|
|
|
10035
10331
|
"type": "string",
|
|
10036
10332
|
"title": "Cookie file path",
|
|
10037
10333
|
"description": "File path to save the cookie, relative to directory. Uses Netscape cookie format.",
|
|
10038
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
10039
10334
|
"transform": [
|
|
10040
10335
|
"trim"
|
|
10041
10336
|
]
|
|
@@ -10092,11 +10387,6 @@
|
|
|
10092
10387
|
"required": [
|
|
10093
10388
|
"directory"
|
|
10094
10389
|
]
|
|
10095
|
-
},
|
|
10096
|
-
{
|
|
10097
|
-
"required": [
|
|
10098
|
-
"overwrite"
|
|
10099
|
-
]
|
|
10100
10390
|
}
|
|
10101
10391
|
]
|
|
10102
10392
|
}
|
|
@@ -10108,6 +10398,7 @@
|
|
|
10108
10398
|
},
|
|
10109
10399
|
"examples": [
|
|
10110
10400
|
"session_token",
|
|
10401
|
+
"test_env_cookie",
|
|
10111
10402
|
{
|
|
10112
10403
|
"name": "auth_cookie",
|
|
10113
10404
|
"path": "auth-cookie.txt"
|
|
@@ -10116,6 +10407,11 @@
|
|
|
10116
10407
|
"name": "session_token",
|
|
10117
10408
|
"variable": "SESSION_TOKEN"
|
|
10118
10409
|
},
|
|
10410
|
+
{
|
|
10411
|
+
"name": "test_cookie",
|
|
10412
|
+
"path": "test-cookie.txt",
|
|
10413
|
+
"overwrite": true
|
|
10414
|
+
},
|
|
10119
10415
|
{
|
|
10120
10416
|
"name": "user_session",
|
|
10121
10417
|
"path": "user-session.txt",
|
|
@@ -10471,6 +10767,301 @@
|
|
|
10471
10767
|
}
|
|
10472
10768
|
]
|
|
10473
10769
|
},
|
|
10770
|
+
{
|
|
10771
|
+
"allOf": [
|
|
10772
|
+
{
|
|
10773
|
+
"type": "object",
|
|
10774
|
+
"dynamicDefaults": {
|
|
10775
|
+
"stepId": "uuid"
|
|
10776
|
+
},
|
|
10777
|
+
"properties": {
|
|
10778
|
+
"$schema": {
|
|
10779
|
+
"description": "JSON Schema for this object.",
|
|
10780
|
+
"type": "string",
|
|
10781
|
+
"enum": [
|
|
10782
|
+
"https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/step_v3.schema.json"
|
|
10783
|
+
]
|
|
10784
|
+
},
|
|
10785
|
+
"stepId": {
|
|
10786
|
+
"type": "string",
|
|
10787
|
+
"description": "ID of the step."
|
|
10788
|
+
},
|
|
10789
|
+
"description": {
|
|
10790
|
+
"type": "string",
|
|
10791
|
+
"description": "Description of the step."
|
|
10792
|
+
},
|
|
10793
|
+
"unsafe": {
|
|
10794
|
+
"type": "boolean",
|
|
10795
|
+
"description": "Whether or not the step may be unsafe. Unsafe steps may perform actions that could modify the system or environment in unexpected ways. Unsafe steps are only performed within Docker containers or if unsafe steps are enabled with the `allowUnsafeSteps` config property or the `--allow-unsafe` flag.",
|
|
10796
|
+
"default": false
|
|
10797
|
+
},
|
|
10798
|
+
"outputs": {
|
|
10799
|
+
"type": "object",
|
|
10800
|
+
"description": "Outputs from step processes and user-defined expressions. Use the `outputs` object to reference outputs in subsequent steps. If a user-defined output matches the key for a step-defined output, the user-defined output takes precedence.",
|
|
10801
|
+
"default": {},
|
|
10802
|
+
"patternProperties": {
|
|
10803
|
+
"^[A-Za-z0-9_]+$": {
|
|
10804
|
+
"type": "string",
|
|
10805
|
+
"description": "Runtime expression for a user-defined output value."
|
|
10806
|
+
}
|
|
10807
|
+
},
|
|
10808
|
+
"title": "Outputs (step)"
|
|
10809
|
+
},
|
|
10810
|
+
"variables": {
|
|
10811
|
+
"type": "object",
|
|
10812
|
+
"description": "Environment variables to set from user-defined expressions.",
|
|
10813
|
+
"default": {},
|
|
10814
|
+
"patternProperties": {
|
|
10815
|
+
"^[A-Za-z0-9_]+$": {
|
|
10816
|
+
"type": "string",
|
|
10817
|
+
"description": "Runtime expression for a user-defined output value."
|
|
10818
|
+
}
|
|
10819
|
+
},
|
|
10820
|
+
"title": "Variables (step)"
|
|
10821
|
+
},
|
|
10822
|
+
"breakpoint": {
|
|
10823
|
+
"type": "boolean",
|
|
10824
|
+
"description": "Whether or not this step should act as a breakpoint when debugging is enabled. When `true`, execution will pause at this step when debug mode is enabled.",
|
|
10825
|
+
"default": false
|
|
10826
|
+
}
|
|
10827
|
+
},
|
|
10828
|
+
"title": "Common"
|
|
10829
|
+
},
|
|
10830
|
+
{
|
|
10831
|
+
"title": "dragAndDrop",
|
|
10832
|
+
"type": "object",
|
|
10833
|
+
"required": [
|
|
10834
|
+
"dragAndDrop"
|
|
10835
|
+
],
|
|
10836
|
+
"properties": {
|
|
10837
|
+
"dragAndDrop": {
|
|
10838
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
10839
|
+
"title": "dragAndDrop",
|
|
10840
|
+
"description": "Drag and drop an element from source to target.",
|
|
10841
|
+
"type": "object",
|
|
10842
|
+
"required": [
|
|
10843
|
+
"source",
|
|
10844
|
+
"target"
|
|
10845
|
+
],
|
|
10846
|
+
"properties": {
|
|
10847
|
+
"source": {
|
|
10848
|
+
"description": "The element to drag.",
|
|
10849
|
+
"anyOf": [
|
|
10850
|
+
{
|
|
10851
|
+
"title": "Element (simple)",
|
|
10852
|
+
"type": "string",
|
|
10853
|
+
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
10854
|
+
},
|
|
10855
|
+
{
|
|
10856
|
+
"title": "Element (detailed)",
|
|
10857
|
+
"type": "object",
|
|
10858
|
+
"anyOf": [
|
|
10859
|
+
{
|
|
10860
|
+
"required": [
|
|
10861
|
+
"selector"
|
|
10862
|
+
]
|
|
10863
|
+
},
|
|
10864
|
+
{
|
|
10865
|
+
"required": [
|
|
10866
|
+
"elementText"
|
|
10867
|
+
]
|
|
10868
|
+
}
|
|
10869
|
+
],
|
|
10870
|
+
"properties": {
|
|
10871
|
+
"elementText": {
|
|
10872
|
+
"type": "string",
|
|
10873
|
+
"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."
|
|
10874
|
+
},
|
|
10875
|
+
"selector": {
|
|
10876
|
+
"type": "string",
|
|
10877
|
+
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
10878
|
+
},
|
|
10879
|
+
"timeout": {
|
|
10880
|
+
"type": "integer",
|
|
10881
|
+
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
10882
|
+
"default": 5000
|
|
10883
|
+
}
|
|
10884
|
+
}
|
|
10885
|
+
}
|
|
10886
|
+
]
|
|
10887
|
+
},
|
|
10888
|
+
"target": {
|
|
10889
|
+
"description": "The target location to drop the element.",
|
|
10890
|
+
"anyOf": [
|
|
10891
|
+
{
|
|
10892
|
+
"title": "Element (simple)",
|
|
10893
|
+
"type": "string",
|
|
10894
|
+
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
10895
|
+
},
|
|
10896
|
+
{
|
|
10897
|
+
"title": "Element (detailed)",
|
|
10898
|
+
"type": "object",
|
|
10899
|
+
"anyOf": [
|
|
10900
|
+
{
|
|
10901
|
+
"required": [
|
|
10902
|
+
"selector"
|
|
10903
|
+
]
|
|
10904
|
+
},
|
|
10905
|
+
{
|
|
10906
|
+
"required": [
|
|
10907
|
+
"elementText"
|
|
10908
|
+
]
|
|
10909
|
+
}
|
|
10910
|
+
],
|
|
10911
|
+
"properties": {
|
|
10912
|
+
"elementText": {
|
|
10913
|
+
"type": "string",
|
|
10914
|
+
"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."
|
|
10915
|
+
},
|
|
10916
|
+
"selector": {
|
|
10917
|
+
"type": "string",
|
|
10918
|
+
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
10919
|
+
},
|
|
10920
|
+
"timeout": {
|
|
10921
|
+
"type": "integer",
|
|
10922
|
+
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
10923
|
+
"default": 5000
|
|
10924
|
+
}
|
|
10925
|
+
}
|
|
10926
|
+
}
|
|
10927
|
+
]
|
|
10928
|
+
},
|
|
10929
|
+
"duration": {
|
|
10930
|
+
"type": "integer",
|
|
10931
|
+
"description": "Duration of the drag operation in milliseconds.",
|
|
10932
|
+
"default": 1000,
|
|
10933
|
+
"minimum": 0
|
|
10934
|
+
}
|
|
10935
|
+
},
|
|
10936
|
+
"components": {
|
|
10937
|
+
"schemas": {
|
|
10938
|
+
"elementSpecification": {
|
|
10939
|
+
"anyOf": [
|
|
10940
|
+
{
|
|
10941
|
+
"title": "Element (simple)",
|
|
10942
|
+
"type": "string",
|
|
10943
|
+
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
10944
|
+
},
|
|
10945
|
+
{
|
|
10946
|
+
"title": "Element (detailed)",
|
|
10947
|
+
"type": "object",
|
|
10948
|
+
"anyOf": [
|
|
10949
|
+
{
|
|
10950
|
+
"required": [
|
|
10951
|
+
"selector"
|
|
10952
|
+
]
|
|
10953
|
+
},
|
|
10954
|
+
{
|
|
10955
|
+
"required": [
|
|
10956
|
+
"elementText"
|
|
10957
|
+
]
|
|
10958
|
+
}
|
|
10959
|
+
],
|
|
10960
|
+
"properties": {
|
|
10961
|
+
"elementText": {
|
|
10962
|
+
"type": "string",
|
|
10963
|
+
"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."
|
|
10964
|
+
},
|
|
10965
|
+
"selector": {
|
|
10966
|
+
"type": "string",
|
|
10967
|
+
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
10968
|
+
},
|
|
10969
|
+
"timeout": {
|
|
10970
|
+
"type": "integer",
|
|
10971
|
+
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
10972
|
+
"default": 5000
|
|
10973
|
+
}
|
|
10974
|
+
}
|
|
10975
|
+
}
|
|
10976
|
+
]
|
|
10977
|
+
},
|
|
10978
|
+
"string": {
|
|
10979
|
+
"title": "Element (simple)",
|
|
10980
|
+
"type": "string",
|
|
10981
|
+
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
10982
|
+
},
|
|
10983
|
+
"object": {
|
|
10984
|
+
"title": "Element (detailed)",
|
|
10985
|
+
"type": "object",
|
|
10986
|
+
"anyOf": [
|
|
10987
|
+
{
|
|
10988
|
+
"required": [
|
|
10989
|
+
"selector"
|
|
10990
|
+
]
|
|
10991
|
+
},
|
|
10992
|
+
{
|
|
10993
|
+
"required": [
|
|
10994
|
+
"elementText"
|
|
10995
|
+
]
|
|
10996
|
+
}
|
|
10997
|
+
],
|
|
10998
|
+
"properties": {
|
|
10999
|
+
"elementText": {
|
|
11000
|
+
"type": "string",
|
|
11001
|
+
"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."
|
|
11002
|
+
},
|
|
11003
|
+
"selector": {
|
|
11004
|
+
"type": "string",
|
|
11005
|
+
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
11006
|
+
},
|
|
11007
|
+
"timeout": {
|
|
11008
|
+
"type": "integer",
|
|
11009
|
+
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
11010
|
+
"default": 5000
|
|
11011
|
+
}
|
|
11012
|
+
}
|
|
11013
|
+
}
|
|
11014
|
+
}
|
|
11015
|
+
},
|
|
11016
|
+
"examples": [
|
|
11017
|
+
{
|
|
11018
|
+
"source": "Table",
|
|
11019
|
+
"target": "#canvas"
|
|
11020
|
+
},
|
|
11021
|
+
{
|
|
11022
|
+
"source": ".draggable-block",
|
|
11023
|
+
"target": ".drop-zone",
|
|
11024
|
+
"duration": 2000
|
|
11025
|
+
},
|
|
11026
|
+
{
|
|
11027
|
+
"source": {
|
|
11028
|
+
"selector": ".widget",
|
|
11029
|
+
"elementText": "Data Table"
|
|
11030
|
+
},
|
|
11031
|
+
"target": {
|
|
11032
|
+
"selector": "#design-canvas"
|
|
11033
|
+
},
|
|
11034
|
+
"duration": 500
|
|
11035
|
+
},
|
|
11036
|
+
{
|
|
11037
|
+
"source": {
|
|
11038
|
+
"selector": ".draggable",
|
|
11039
|
+
"timeout": 10000
|
|
11040
|
+
},
|
|
11041
|
+
"target": {
|
|
11042
|
+
"elementText": "Drop Zone",
|
|
11043
|
+
"timeout": 5000
|
|
11044
|
+
}
|
|
11045
|
+
},
|
|
11046
|
+
{
|
|
11047
|
+
"source": "/Widget Item.*/",
|
|
11048
|
+
"target": "#canvas"
|
|
11049
|
+
},
|
|
11050
|
+
{
|
|
11051
|
+
"source": {
|
|
11052
|
+
"selector": ".draggable",
|
|
11053
|
+
"elementText": "/Button [0-9]+/"
|
|
11054
|
+
},
|
|
11055
|
+
"target": {
|
|
11056
|
+
"elementText": "/Drop Zone.*/"
|
|
11057
|
+
}
|
|
11058
|
+
}
|
|
11059
|
+
]
|
|
11060
|
+
}
|
|
11061
|
+
}
|
|
11062
|
+
}
|
|
11063
|
+
]
|
|
11064
|
+
},
|
|
10474
11065
|
{
|
|
10475
11066
|
"allOf": [
|
|
10476
11067
|
{
|
|
@@ -10617,7 +11208,6 @@
|
|
|
10617
11208
|
"type": "string",
|
|
10618
11209
|
"title": "Cookie file path",
|
|
10619
11210
|
"description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
|
|
10620
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
10621
11211
|
"transform": [
|
|
10622
11212
|
"trim"
|
|
10623
11213
|
]
|
|
@@ -10718,7 +11308,6 @@
|
|
|
10718
11308
|
"type": "string",
|
|
10719
11309
|
"title": "Cookie file path",
|
|
10720
11310
|
"description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
|
|
10721
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
10722
11311
|
"transform": [
|
|
10723
11312
|
"trim"
|
|
10724
11313
|
]
|
|
@@ -10747,10 +11336,15 @@
|
|
|
10747
11336
|
"examples": [
|
|
10748
11337
|
"session_token",
|
|
10749
11338
|
"./test-data/auth-session.txt",
|
|
11339
|
+
"test_env_cookie",
|
|
10750
11340
|
{
|
|
10751
11341
|
"name": "auth_cookie",
|
|
10752
11342
|
"variable": "AUTH_COOKIE"
|
|
10753
11343
|
},
|
|
11344
|
+
{
|
|
11345
|
+
"name": "test_cookie",
|
|
11346
|
+
"path": "test-cookie.txt"
|
|
11347
|
+
},
|
|
10754
11348
|
{
|
|
10755
11349
|
"name": "session_token",
|
|
10756
11350
|
"path": "session-token.txt",
|
|
@@ -11256,6 +11850,16 @@
|
|
|
11256
11850
|
{
|
|
11257
11851
|
"checkLink": "https://www.google.com",
|
|
11258
11852
|
"breakpoint": false
|
|
11853
|
+
},
|
|
11854
|
+
{
|
|
11855
|
+
"dragAndDrop": {
|
|
11856
|
+
"source": {
|
|
11857
|
+
"selector": "#sourceElement"
|
|
11858
|
+
},
|
|
11859
|
+
"target": {
|
|
11860
|
+
"selector": "#targetElement"
|
|
11861
|
+
}
|
|
11862
|
+
}
|
|
11259
11863
|
}
|
|
11260
11864
|
]
|
|
11261
11865
|
}
|