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
|
@@ -4637,7 +4637,6 @@
|
|
|
4637
4637
|
"type": "string",
|
|
4638
4638
|
"title": "Cookie file path",
|
|
4639
4639
|
"description": "File path to save the cookie, relative to directory. Uses Netscape cookie format.",
|
|
4640
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
4641
4640
|
"transform": [
|
|
4642
4641
|
"trim"
|
|
4643
4642
|
]
|
|
@@ -4694,11 +4693,6 @@
|
|
|
4694
4693
|
"required": [
|
|
4695
4694
|
"directory"
|
|
4696
4695
|
]
|
|
4697
|
-
},
|
|
4698
|
-
{
|
|
4699
|
-
"required": [
|
|
4700
|
-
"overwrite"
|
|
4701
|
-
]
|
|
4702
4696
|
}
|
|
4703
4697
|
]
|
|
4704
4698
|
}
|
|
@@ -4749,7 +4743,6 @@
|
|
|
4749
4743
|
"type": "string",
|
|
4750
4744
|
"title": "Cookie file path",
|
|
4751
4745
|
"description": "File path to save the cookie, relative to directory. Uses Netscape cookie format.",
|
|
4752
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
4753
4746
|
"transform": [
|
|
4754
4747
|
"trim"
|
|
4755
4748
|
]
|
|
@@ -4806,11 +4799,6 @@
|
|
|
4806
4799
|
"required": [
|
|
4807
4800
|
"directory"
|
|
4808
4801
|
]
|
|
4809
|
-
},
|
|
4810
|
-
{
|
|
4811
|
-
"required": [
|
|
4812
|
-
"overwrite"
|
|
4813
|
-
]
|
|
4814
4802
|
}
|
|
4815
4803
|
]
|
|
4816
4804
|
}
|
|
@@ -4822,6 +4810,7 @@
|
|
|
4822
4810
|
},
|
|
4823
4811
|
"examples": [
|
|
4824
4812
|
"session_token",
|
|
4813
|
+
"test_env_cookie",
|
|
4825
4814
|
{
|
|
4826
4815
|
"name": "auth_cookie",
|
|
4827
4816
|
"path": "auth-cookie.txt"
|
|
@@ -4830,6 +4819,11 @@
|
|
|
4830
4819
|
"name": "session_token",
|
|
4831
4820
|
"variable": "SESSION_TOKEN"
|
|
4832
4821
|
},
|
|
4822
|
+
{
|
|
4823
|
+
"name": "test_cookie",
|
|
4824
|
+
"path": "test-cookie.txt",
|
|
4825
|
+
"overwrite": true
|
|
4826
|
+
},
|
|
4833
4827
|
{
|
|
4834
4828
|
"name": "user_session",
|
|
4835
4829
|
"path": "user-session.txt",
|
|
@@ -5185,6 +5179,301 @@
|
|
|
5185
5179
|
}
|
|
5186
5180
|
]
|
|
5187
5181
|
},
|
|
5182
|
+
{
|
|
5183
|
+
"allOf": [
|
|
5184
|
+
{
|
|
5185
|
+
"type": "object",
|
|
5186
|
+
"dynamicDefaults": {
|
|
5187
|
+
"stepId": "uuid"
|
|
5188
|
+
},
|
|
5189
|
+
"properties": {
|
|
5190
|
+
"$schema": {
|
|
5191
|
+
"description": "JSON Schema for this object.",
|
|
5192
|
+
"type": "string",
|
|
5193
|
+
"enum": [
|
|
5194
|
+
"https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/step_v3.schema.json"
|
|
5195
|
+
]
|
|
5196
|
+
},
|
|
5197
|
+
"stepId": {
|
|
5198
|
+
"type": "string",
|
|
5199
|
+
"description": "ID of the step."
|
|
5200
|
+
},
|
|
5201
|
+
"description": {
|
|
5202
|
+
"type": "string",
|
|
5203
|
+
"description": "Description of the step."
|
|
5204
|
+
},
|
|
5205
|
+
"unsafe": {
|
|
5206
|
+
"type": "boolean",
|
|
5207
|
+
"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.",
|
|
5208
|
+
"default": false
|
|
5209
|
+
},
|
|
5210
|
+
"outputs": {
|
|
5211
|
+
"type": "object",
|
|
5212
|
+
"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.",
|
|
5213
|
+
"default": {},
|
|
5214
|
+
"patternProperties": {
|
|
5215
|
+
"^[A-Za-z0-9_]+$": {
|
|
5216
|
+
"type": "string",
|
|
5217
|
+
"description": "Runtime expression for a user-defined output value."
|
|
5218
|
+
}
|
|
5219
|
+
},
|
|
5220
|
+
"title": "Outputs (step)"
|
|
5221
|
+
},
|
|
5222
|
+
"variables": {
|
|
5223
|
+
"type": "object",
|
|
5224
|
+
"description": "Environment variables to set from user-defined expressions.",
|
|
5225
|
+
"default": {},
|
|
5226
|
+
"patternProperties": {
|
|
5227
|
+
"^[A-Za-z0-9_]+$": {
|
|
5228
|
+
"type": "string",
|
|
5229
|
+
"description": "Runtime expression for a user-defined output value."
|
|
5230
|
+
}
|
|
5231
|
+
},
|
|
5232
|
+
"title": "Variables (step)"
|
|
5233
|
+
},
|
|
5234
|
+
"breakpoint": {
|
|
5235
|
+
"type": "boolean",
|
|
5236
|
+
"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.",
|
|
5237
|
+
"default": false
|
|
5238
|
+
}
|
|
5239
|
+
},
|
|
5240
|
+
"title": "Common"
|
|
5241
|
+
},
|
|
5242
|
+
{
|
|
5243
|
+
"title": "dragAndDrop",
|
|
5244
|
+
"type": "object",
|
|
5245
|
+
"required": [
|
|
5246
|
+
"dragAndDrop"
|
|
5247
|
+
],
|
|
5248
|
+
"properties": {
|
|
5249
|
+
"dragAndDrop": {
|
|
5250
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5251
|
+
"title": "dragAndDrop",
|
|
5252
|
+
"description": "Drag and drop an element from source to target.",
|
|
5253
|
+
"type": "object",
|
|
5254
|
+
"required": [
|
|
5255
|
+
"source",
|
|
5256
|
+
"target"
|
|
5257
|
+
],
|
|
5258
|
+
"properties": {
|
|
5259
|
+
"source": {
|
|
5260
|
+
"description": "The element to drag.",
|
|
5261
|
+
"anyOf": [
|
|
5262
|
+
{
|
|
5263
|
+
"title": "Element (simple)",
|
|
5264
|
+
"type": "string",
|
|
5265
|
+
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
5266
|
+
},
|
|
5267
|
+
{
|
|
5268
|
+
"title": "Element (detailed)",
|
|
5269
|
+
"type": "object",
|
|
5270
|
+
"anyOf": [
|
|
5271
|
+
{
|
|
5272
|
+
"required": [
|
|
5273
|
+
"selector"
|
|
5274
|
+
]
|
|
5275
|
+
},
|
|
5276
|
+
{
|
|
5277
|
+
"required": [
|
|
5278
|
+
"elementText"
|
|
5279
|
+
]
|
|
5280
|
+
}
|
|
5281
|
+
],
|
|
5282
|
+
"properties": {
|
|
5283
|
+
"elementText": {
|
|
5284
|
+
"type": "string",
|
|
5285
|
+
"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."
|
|
5286
|
+
},
|
|
5287
|
+
"selector": {
|
|
5288
|
+
"type": "string",
|
|
5289
|
+
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
5290
|
+
},
|
|
5291
|
+
"timeout": {
|
|
5292
|
+
"type": "integer",
|
|
5293
|
+
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
5294
|
+
"default": 5000
|
|
5295
|
+
}
|
|
5296
|
+
}
|
|
5297
|
+
}
|
|
5298
|
+
]
|
|
5299
|
+
},
|
|
5300
|
+
"target": {
|
|
5301
|
+
"description": "The target location to drop the element.",
|
|
5302
|
+
"anyOf": [
|
|
5303
|
+
{
|
|
5304
|
+
"title": "Element (simple)",
|
|
5305
|
+
"type": "string",
|
|
5306
|
+
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
5307
|
+
},
|
|
5308
|
+
{
|
|
5309
|
+
"title": "Element (detailed)",
|
|
5310
|
+
"type": "object",
|
|
5311
|
+
"anyOf": [
|
|
5312
|
+
{
|
|
5313
|
+
"required": [
|
|
5314
|
+
"selector"
|
|
5315
|
+
]
|
|
5316
|
+
},
|
|
5317
|
+
{
|
|
5318
|
+
"required": [
|
|
5319
|
+
"elementText"
|
|
5320
|
+
]
|
|
5321
|
+
}
|
|
5322
|
+
],
|
|
5323
|
+
"properties": {
|
|
5324
|
+
"elementText": {
|
|
5325
|
+
"type": "string",
|
|
5326
|
+
"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."
|
|
5327
|
+
},
|
|
5328
|
+
"selector": {
|
|
5329
|
+
"type": "string",
|
|
5330
|
+
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
5331
|
+
},
|
|
5332
|
+
"timeout": {
|
|
5333
|
+
"type": "integer",
|
|
5334
|
+
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
5335
|
+
"default": 5000
|
|
5336
|
+
}
|
|
5337
|
+
}
|
|
5338
|
+
}
|
|
5339
|
+
]
|
|
5340
|
+
},
|
|
5341
|
+
"duration": {
|
|
5342
|
+
"type": "integer",
|
|
5343
|
+
"description": "Duration of the drag operation in milliseconds.",
|
|
5344
|
+
"default": 1000,
|
|
5345
|
+
"minimum": 0
|
|
5346
|
+
}
|
|
5347
|
+
},
|
|
5348
|
+
"components": {
|
|
5349
|
+
"schemas": {
|
|
5350
|
+
"elementSpecification": {
|
|
5351
|
+
"anyOf": [
|
|
5352
|
+
{
|
|
5353
|
+
"title": "Element (simple)",
|
|
5354
|
+
"type": "string",
|
|
5355
|
+
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
5356
|
+
},
|
|
5357
|
+
{
|
|
5358
|
+
"title": "Element (detailed)",
|
|
5359
|
+
"type": "object",
|
|
5360
|
+
"anyOf": [
|
|
5361
|
+
{
|
|
5362
|
+
"required": [
|
|
5363
|
+
"selector"
|
|
5364
|
+
]
|
|
5365
|
+
},
|
|
5366
|
+
{
|
|
5367
|
+
"required": [
|
|
5368
|
+
"elementText"
|
|
5369
|
+
]
|
|
5370
|
+
}
|
|
5371
|
+
],
|
|
5372
|
+
"properties": {
|
|
5373
|
+
"elementText": {
|
|
5374
|
+
"type": "string",
|
|
5375
|
+
"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."
|
|
5376
|
+
},
|
|
5377
|
+
"selector": {
|
|
5378
|
+
"type": "string",
|
|
5379
|
+
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
5380
|
+
},
|
|
5381
|
+
"timeout": {
|
|
5382
|
+
"type": "integer",
|
|
5383
|
+
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
5384
|
+
"default": 5000
|
|
5385
|
+
}
|
|
5386
|
+
}
|
|
5387
|
+
}
|
|
5388
|
+
]
|
|
5389
|
+
},
|
|
5390
|
+
"string": {
|
|
5391
|
+
"title": "Element (simple)",
|
|
5392
|
+
"type": "string",
|
|
5393
|
+
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
5394
|
+
},
|
|
5395
|
+
"object": {
|
|
5396
|
+
"title": "Element (detailed)",
|
|
5397
|
+
"type": "object",
|
|
5398
|
+
"anyOf": [
|
|
5399
|
+
{
|
|
5400
|
+
"required": [
|
|
5401
|
+
"selector"
|
|
5402
|
+
]
|
|
5403
|
+
},
|
|
5404
|
+
{
|
|
5405
|
+
"required": [
|
|
5406
|
+
"elementText"
|
|
5407
|
+
]
|
|
5408
|
+
}
|
|
5409
|
+
],
|
|
5410
|
+
"properties": {
|
|
5411
|
+
"elementText": {
|
|
5412
|
+
"type": "string",
|
|
5413
|
+
"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."
|
|
5414
|
+
},
|
|
5415
|
+
"selector": {
|
|
5416
|
+
"type": "string",
|
|
5417
|
+
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
5418
|
+
},
|
|
5419
|
+
"timeout": {
|
|
5420
|
+
"type": "integer",
|
|
5421
|
+
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
5422
|
+
"default": 5000
|
|
5423
|
+
}
|
|
5424
|
+
}
|
|
5425
|
+
}
|
|
5426
|
+
}
|
|
5427
|
+
},
|
|
5428
|
+
"examples": [
|
|
5429
|
+
{
|
|
5430
|
+
"source": "Table",
|
|
5431
|
+
"target": "#canvas"
|
|
5432
|
+
},
|
|
5433
|
+
{
|
|
5434
|
+
"source": ".draggable-block",
|
|
5435
|
+
"target": ".drop-zone",
|
|
5436
|
+
"duration": 2000
|
|
5437
|
+
},
|
|
5438
|
+
{
|
|
5439
|
+
"source": {
|
|
5440
|
+
"selector": ".widget",
|
|
5441
|
+
"elementText": "Data Table"
|
|
5442
|
+
},
|
|
5443
|
+
"target": {
|
|
5444
|
+
"selector": "#design-canvas"
|
|
5445
|
+
},
|
|
5446
|
+
"duration": 500
|
|
5447
|
+
},
|
|
5448
|
+
{
|
|
5449
|
+
"source": {
|
|
5450
|
+
"selector": ".draggable",
|
|
5451
|
+
"timeout": 10000
|
|
5452
|
+
},
|
|
5453
|
+
"target": {
|
|
5454
|
+
"elementText": "Drop Zone",
|
|
5455
|
+
"timeout": 5000
|
|
5456
|
+
}
|
|
5457
|
+
},
|
|
5458
|
+
{
|
|
5459
|
+
"source": "/Widget Item.*/",
|
|
5460
|
+
"target": "#canvas"
|
|
5461
|
+
},
|
|
5462
|
+
{
|
|
5463
|
+
"source": {
|
|
5464
|
+
"selector": ".draggable",
|
|
5465
|
+
"elementText": "/Button [0-9]+/"
|
|
5466
|
+
},
|
|
5467
|
+
"target": {
|
|
5468
|
+
"elementText": "/Drop Zone.*/"
|
|
5469
|
+
}
|
|
5470
|
+
}
|
|
5471
|
+
]
|
|
5472
|
+
}
|
|
5473
|
+
}
|
|
5474
|
+
}
|
|
5475
|
+
]
|
|
5476
|
+
},
|
|
5188
5477
|
{
|
|
5189
5478
|
"allOf": [
|
|
5190
5479
|
{
|
|
@@ -5331,7 +5620,6 @@
|
|
|
5331
5620
|
"type": "string",
|
|
5332
5621
|
"title": "Cookie file path",
|
|
5333
5622
|
"description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
|
|
5334
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
5335
5623
|
"transform": [
|
|
5336
5624
|
"trim"
|
|
5337
5625
|
]
|
|
@@ -5432,7 +5720,6 @@
|
|
|
5432
5720
|
"type": "string",
|
|
5433
5721
|
"title": "Cookie file path",
|
|
5434
5722
|
"description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
|
|
5435
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
5436
5723
|
"transform": [
|
|
5437
5724
|
"trim"
|
|
5438
5725
|
]
|
|
@@ -5461,10 +5748,15 @@
|
|
|
5461
5748
|
"examples": [
|
|
5462
5749
|
"session_token",
|
|
5463
5750
|
"./test-data/auth-session.txt",
|
|
5751
|
+
"test_env_cookie",
|
|
5464
5752
|
{
|
|
5465
5753
|
"name": "auth_cookie",
|
|
5466
5754
|
"variable": "AUTH_COOKIE"
|
|
5467
5755
|
},
|
|
5756
|
+
{
|
|
5757
|
+
"name": "test_cookie",
|
|
5758
|
+
"path": "test-cookie.txt"
|
|
5759
|
+
},
|
|
5468
5760
|
{
|
|
5469
5761
|
"name": "session_token",
|
|
5470
5762
|
"path": "session-token.txt",
|
|
@@ -5970,6 +6262,16 @@
|
|
|
5970
6262
|
{
|
|
5971
6263
|
"checkLink": "https://www.google.com",
|
|
5972
6264
|
"breakpoint": false
|
|
6265
|
+
},
|
|
6266
|
+
{
|
|
6267
|
+
"dragAndDrop": {
|
|
6268
|
+
"source": {
|
|
6269
|
+
"selector": "#sourceElement"
|
|
6270
|
+
},
|
|
6271
|
+
"target": {
|
|
6272
|
+
"selector": "#targetElement"
|
|
6273
|
+
}
|
|
6274
|
+
}
|
|
5973
6275
|
}
|
|
5974
6276
|
]
|
|
5975
6277
|
}
|
|
@@ -10516,7 +10818,6 @@
|
|
|
10516
10818
|
"type": "string",
|
|
10517
10819
|
"title": "Cookie file path",
|
|
10518
10820
|
"description": "File path to save the cookie, relative to directory. Uses Netscape cookie format.",
|
|
10519
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
10520
10821
|
"transform": [
|
|
10521
10822
|
"trim"
|
|
10522
10823
|
]
|
|
@@ -10573,11 +10874,6 @@
|
|
|
10573
10874
|
"required": [
|
|
10574
10875
|
"directory"
|
|
10575
10876
|
]
|
|
10576
|
-
},
|
|
10577
|
-
{
|
|
10578
|
-
"required": [
|
|
10579
|
-
"overwrite"
|
|
10580
|
-
]
|
|
10581
10877
|
}
|
|
10582
10878
|
]
|
|
10583
10879
|
}
|
|
@@ -10628,7 +10924,6 @@
|
|
|
10628
10924
|
"type": "string",
|
|
10629
10925
|
"title": "Cookie file path",
|
|
10630
10926
|
"description": "File path to save the cookie, relative to directory. Uses Netscape cookie format.",
|
|
10631
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
10632
10927
|
"transform": [
|
|
10633
10928
|
"trim"
|
|
10634
10929
|
]
|
|
@@ -10685,11 +10980,6 @@
|
|
|
10685
10980
|
"required": [
|
|
10686
10981
|
"directory"
|
|
10687
10982
|
]
|
|
10688
|
-
},
|
|
10689
|
-
{
|
|
10690
|
-
"required": [
|
|
10691
|
-
"overwrite"
|
|
10692
|
-
]
|
|
10693
10983
|
}
|
|
10694
10984
|
]
|
|
10695
10985
|
}
|
|
@@ -10701,6 +10991,7 @@
|
|
|
10701
10991
|
},
|
|
10702
10992
|
"examples": [
|
|
10703
10993
|
"session_token",
|
|
10994
|
+
"test_env_cookie",
|
|
10704
10995
|
{
|
|
10705
10996
|
"name": "auth_cookie",
|
|
10706
10997
|
"path": "auth-cookie.txt"
|
|
@@ -10709,6 +11000,11 @@
|
|
|
10709
11000
|
"name": "session_token",
|
|
10710
11001
|
"variable": "SESSION_TOKEN"
|
|
10711
11002
|
},
|
|
11003
|
+
{
|
|
11004
|
+
"name": "test_cookie",
|
|
11005
|
+
"path": "test-cookie.txt",
|
|
11006
|
+
"overwrite": true
|
|
11007
|
+
},
|
|
10712
11008
|
{
|
|
10713
11009
|
"name": "user_session",
|
|
10714
11010
|
"path": "user-session.txt",
|
|
@@ -11064,6 +11360,301 @@
|
|
|
11064
11360
|
}
|
|
11065
11361
|
]
|
|
11066
11362
|
},
|
|
11363
|
+
{
|
|
11364
|
+
"allOf": [
|
|
11365
|
+
{
|
|
11366
|
+
"type": "object",
|
|
11367
|
+
"dynamicDefaults": {
|
|
11368
|
+
"stepId": "uuid"
|
|
11369
|
+
},
|
|
11370
|
+
"properties": {
|
|
11371
|
+
"$schema": {
|
|
11372
|
+
"description": "JSON Schema for this object.",
|
|
11373
|
+
"type": "string",
|
|
11374
|
+
"enum": [
|
|
11375
|
+
"https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/step_v3.schema.json"
|
|
11376
|
+
]
|
|
11377
|
+
},
|
|
11378
|
+
"stepId": {
|
|
11379
|
+
"type": "string",
|
|
11380
|
+
"description": "ID of the step."
|
|
11381
|
+
},
|
|
11382
|
+
"description": {
|
|
11383
|
+
"type": "string",
|
|
11384
|
+
"description": "Description of the step."
|
|
11385
|
+
},
|
|
11386
|
+
"unsafe": {
|
|
11387
|
+
"type": "boolean",
|
|
11388
|
+
"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.",
|
|
11389
|
+
"default": false
|
|
11390
|
+
},
|
|
11391
|
+
"outputs": {
|
|
11392
|
+
"type": "object",
|
|
11393
|
+
"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.",
|
|
11394
|
+
"default": {},
|
|
11395
|
+
"patternProperties": {
|
|
11396
|
+
"^[A-Za-z0-9_]+$": {
|
|
11397
|
+
"type": "string",
|
|
11398
|
+
"description": "Runtime expression for a user-defined output value."
|
|
11399
|
+
}
|
|
11400
|
+
},
|
|
11401
|
+
"title": "Outputs (step)"
|
|
11402
|
+
},
|
|
11403
|
+
"variables": {
|
|
11404
|
+
"type": "object",
|
|
11405
|
+
"description": "Environment variables to set from user-defined expressions.",
|
|
11406
|
+
"default": {},
|
|
11407
|
+
"patternProperties": {
|
|
11408
|
+
"^[A-Za-z0-9_]+$": {
|
|
11409
|
+
"type": "string",
|
|
11410
|
+
"description": "Runtime expression for a user-defined output value."
|
|
11411
|
+
}
|
|
11412
|
+
},
|
|
11413
|
+
"title": "Variables (step)"
|
|
11414
|
+
},
|
|
11415
|
+
"breakpoint": {
|
|
11416
|
+
"type": "boolean",
|
|
11417
|
+
"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.",
|
|
11418
|
+
"default": false
|
|
11419
|
+
}
|
|
11420
|
+
},
|
|
11421
|
+
"title": "Common"
|
|
11422
|
+
},
|
|
11423
|
+
{
|
|
11424
|
+
"title": "dragAndDrop",
|
|
11425
|
+
"type": "object",
|
|
11426
|
+
"required": [
|
|
11427
|
+
"dragAndDrop"
|
|
11428
|
+
],
|
|
11429
|
+
"properties": {
|
|
11430
|
+
"dragAndDrop": {
|
|
11431
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
11432
|
+
"title": "dragAndDrop",
|
|
11433
|
+
"description": "Drag and drop an element from source to target.",
|
|
11434
|
+
"type": "object",
|
|
11435
|
+
"required": [
|
|
11436
|
+
"source",
|
|
11437
|
+
"target"
|
|
11438
|
+
],
|
|
11439
|
+
"properties": {
|
|
11440
|
+
"source": {
|
|
11441
|
+
"description": "The element to drag.",
|
|
11442
|
+
"anyOf": [
|
|
11443
|
+
{
|
|
11444
|
+
"title": "Element (simple)",
|
|
11445
|
+
"type": "string",
|
|
11446
|
+
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
11447
|
+
},
|
|
11448
|
+
{
|
|
11449
|
+
"title": "Element (detailed)",
|
|
11450
|
+
"type": "object",
|
|
11451
|
+
"anyOf": [
|
|
11452
|
+
{
|
|
11453
|
+
"required": [
|
|
11454
|
+
"selector"
|
|
11455
|
+
]
|
|
11456
|
+
},
|
|
11457
|
+
{
|
|
11458
|
+
"required": [
|
|
11459
|
+
"elementText"
|
|
11460
|
+
]
|
|
11461
|
+
}
|
|
11462
|
+
],
|
|
11463
|
+
"properties": {
|
|
11464
|
+
"elementText": {
|
|
11465
|
+
"type": "string",
|
|
11466
|
+
"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."
|
|
11467
|
+
},
|
|
11468
|
+
"selector": {
|
|
11469
|
+
"type": "string",
|
|
11470
|
+
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
11471
|
+
},
|
|
11472
|
+
"timeout": {
|
|
11473
|
+
"type": "integer",
|
|
11474
|
+
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
11475
|
+
"default": 5000
|
|
11476
|
+
}
|
|
11477
|
+
}
|
|
11478
|
+
}
|
|
11479
|
+
]
|
|
11480
|
+
},
|
|
11481
|
+
"target": {
|
|
11482
|
+
"description": "The target location to drop the element.",
|
|
11483
|
+
"anyOf": [
|
|
11484
|
+
{
|
|
11485
|
+
"title": "Element (simple)",
|
|
11486
|
+
"type": "string",
|
|
11487
|
+
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
11488
|
+
},
|
|
11489
|
+
{
|
|
11490
|
+
"title": "Element (detailed)",
|
|
11491
|
+
"type": "object",
|
|
11492
|
+
"anyOf": [
|
|
11493
|
+
{
|
|
11494
|
+
"required": [
|
|
11495
|
+
"selector"
|
|
11496
|
+
]
|
|
11497
|
+
},
|
|
11498
|
+
{
|
|
11499
|
+
"required": [
|
|
11500
|
+
"elementText"
|
|
11501
|
+
]
|
|
11502
|
+
}
|
|
11503
|
+
],
|
|
11504
|
+
"properties": {
|
|
11505
|
+
"elementText": {
|
|
11506
|
+
"type": "string",
|
|
11507
|
+
"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."
|
|
11508
|
+
},
|
|
11509
|
+
"selector": {
|
|
11510
|
+
"type": "string",
|
|
11511
|
+
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
11512
|
+
},
|
|
11513
|
+
"timeout": {
|
|
11514
|
+
"type": "integer",
|
|
11515
|
+
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
11516
|
+
"default": 5000
|
|
11517
|
+
}
|
|
11518
|
+
}
|
|
11519
|
+
}
|
|
11520
|
+
]
|
|
11521
|
+
},
|
|
11522
|
+
"duration": {
|
|
11523
|
+
"type": "integer",
|
|
11524
|
+
"description": "Duration of the drag operation in milliseconds.",
|
|
11525
|
+
"default": 1000,
|
|
11526
|
+
"minimum": 0
|
|
11527
|
+
}
|
|
11528
|
+
},
|
|
11529
|
+
"components": {
|
|
11530
|
+
"schemas": {
|
|
11531
|
+
"elementSpecification": {
|
|
11532
|
+
"anyOf": [
|
|
11533
|
+
{
|
|
11534
|
+
"title": "Element (simple)",
|
|
11535
|
+
"type": "string",
|
|
11536
|
+
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
11537
|
+
},
|
|
11538
|
+
{
|
|
11539
|
+
"title": "Element (detailed)",
|
|
11540
|
+
"type": "object",
|
|
11541
|
+
"anyOf": [
|
|
11542
|
+
{
|
|
11543
|
+
"required": [
|
|
11544
|
+
"selector"
|
|
11545
|
+
]
|
|
11546
|
+
},
|
|
11547
|
+
{
|
|
11548
|
+
"required": [
|
|
11549
|
+
"elementText"
|
|
11550
|
+
]
|
|
11551
|
+
}
|
|
11552
|
+
],
|
|
11553
|
+
"properties": {
|
|
11554
|
+
"elementText": {
|
|
11555
|
+
"type": "string",
|
|
11556
|
+
"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."
|
|
11557
|
+
},
|
|
11558
|
+
"selector": {
|
|
11559
|
+
"type": "string",
|
|
11560
|
+
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
11561
|
+
},
|
|
11562
|
+
"timeout": {
|
|
11563
|
+
"type": "integer",
|
|
11564
|
+
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
11565
|
+
"default": 5000
|
|
11566
|
+
}
|
|
11567
|
+
}
|
|
11568
|
+
}
|
|
11569
|
+
]
|
|
11570
|
+
},
|
|
11571
|
+
"string": {
|
|
11572
|
+
"title": "Element (simple)",
|
|
11573
|
+
"type": "string",
|
|
11574
|
+
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
11575
|
+
},
|
|
11576
|
+
"object": {
|
|
11577
|
+
"title": "Element (detailed)",
|
|
11578
|
+
"type": "object",
|
|
11579
|
+
"anyOf": [
|
|
11580
|
+
{
|
|
11581
|
+
"required": [
|
|
11582
|
+
"selector"
|
|
11583
|
+
]
|
|
11584
|
+
},
|
|
11585
|
+
{
|
|
11586
|
+
"required": [
|
|
11587
|
+
"elementText"
|
|
11588
|
+
]
|
|
11589
|
+
}
|
|
11590
|
+
],
|
|
11591
|
+
"properties": {
|
|
11592
|
+
"elementText": {
|
|
11593
|
+
"type": "string",
|
|
11594
|
+
"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."
|
|
11595
|
+
},
|
|
11596
|
+
"selector": {
|
|
11597
|
+
"type": "string",
|
|
11598
|
+
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
11599
|
+
},
|
|
11600
|
+
"timeout": {
|
|
11601
|
+
"type": "integer",
|
|
11602
|
+
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
11603
|
+
"default": 5000
|
|
11604
|
+
}
|
|
11605
|
+
}
|
|
11606
|
+
}
|
|
11607
|
+
}
|
|
11608
|
+
},
|
|
11609
|
+
"examples": [
|
|
11610
|
+
{
|
|
11611
|
+
"source": "Table",
|
|
11612
|
+
"target": "#canvas"
|
|
11613
|
+
},
|
|
11614
|
+
{
|
|
11615
|
+
"source": ".draggable-block",
|
|
11616
|
+
"target": ".drop-zone",
|
|
11617
|
+
"duration": 2000
|
|
11618
|
+
},
|
|
11619
|
+
{
|
|
11620
|
+
"source": {
|
|
11621
|
+
"selector": ".widget",
|
|
11622
|
+
"elementText": "Data Table"
|
|
11623
|
+
},
|
|
11624
|
+
"target": {
|
|
11625
|
+
"selector": "#design-canvas"
|
|
11626
|
+
},
|
|
11627
|
+
"duration": 500
|
|
11628
|
+
},
|
|
11629
|
+
{
|
|
11630
|
+
"source": {
|
|
11631
|
+
"selector": ".draggable",
|
|
11632
|
+
"timeout": 10000
|
|
11633
|
+
},
|
|
11634
|
+
"target": {
|
|
11635
|
+
"elementText": "Drop Zone",
|
|
11636
|
+
"timeout": 5000
|
|
11637
|
+
}
|
|
11638
|
+
},
|
|
11639
|
+
{
|
|
11640
|
+
"source": "/Widget Item.*/",
|
|
11641
|
+
"target": "#canvas"
|
|
11642
|
+
},
|
|
11643
|
+
{
|
|
11644
|
+
"source": {
|
|
11645
|
+
"selector": ".draggable",
|
|
11646
|
+
"elementText": "/Button [0-9]+/"
|
|
11647
|
+
},
|
|
11648
|
+
"target": {
|
|
11649
|
+
"elementText": "/Drop Zone.*/"
|
|
11650
|
+
}
|
|
11651
|
+
}
|
|
11652
|
+
]
|
|
11653
|
+
}
|
|
11654
|
+
}
|
|
11655
|
+
}
|
|
11656
|
+
]
|
|
11657
|
+
},
|
|
11067
11658
|
{
|
|
11068
11659
|
"allOf": [
|
|
11069
11660
|
{
|
|
@@ -11210,7 +11801,6 @@
|
|
|
11210
11801
|
"type": "string",
|
|
11211
11802
|
"title": "Cookie file path",
|
|
11212
11803
|
"description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
|
|
11213
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
11214
11804
|
"transform": [
|
|
11215
11805
|
"trim"
|
|
11216
11806
|
]
|
|
@@ -11311,7 +11901,6 @@
|
|
|
11311
11901
|
"type": "string",
|
|
11312
11902
|
"title": "Cookie file path",
|
|
11313
11903
|
"description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
|
|
11314
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
11315
11904
|
"transform": [
|
|
11316
11905
|
"trim"
|
|
11317
11906
|
]
|
|
@@ -11340,10 +11929,15 @@
|
|
|
11340
11929
|
"examples": [
|
|
11341
11930
|
"session_token",
|
|
11342
11931
|
"./test-data/auth-session.txt",
|
|
11932
|
+
"test_env_cookie",
|
|
11343
11933
|
{
|
|
11344
11934
|
"name": "auth_cookie",
|
|
11345
11935
|
"variable": "AUTH_COOKIE"
|
|
11346
11936
|
},
|
|
11937
|
+
{
|
|
11938
|
+
"name": "test_cookie",
|
|
11939
|
+
"path": "test-cookie.txt"
|
|
11940
|
+
},
|
|
11347
11941
|
{
|
|
11348
11942
|
"name": "session_token",
|
|
11349
11943
|
"path": "session-token.txt",
|
|
@@ -11849,6 +12443,16 @@
|
|
|
11849
12443
|
{
|
|
11850
12444
|
"checkLink": "https://www.google.com",
|
|
11851
12445
|
"breakpoint": false
|
|
12446
|
+
},
|
|
12447
|
+
{
|
|
12448
|
+
"dragAndDrop": {
|
|
12449
|
+
"source": {
|
|
12450
|
+
"selector": "#sourceElement"
|
|
12451
|
+
},
|
|
12452
|
+
"target": {
|
|
12453
|
+
"selector": "#targetElement"
|
|
12454
|
+
}
|
|
12455
|
+
}
|
|
11852
12456
|
}
|
|
11853
12457
|
]
|
|
11854
12458
|
}
|