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.
Files changed (29) hide show
  1. package/dist/schemas/config_v3.schema.json +632 -28
  2. package/dist/schemas/dragAndDrop_v3.schema.json +224 -0
  3. package/dist/schemas/loadCookie_v3.schema.json +5 -2
  4. package/dist/schemas/report_v3.schema.json +632 -28
  5. package/dist/schemas/resolvedTests_v3.schema.json +1274 -66
  6. package/dist/schemas/saveCookie_v3.schema.json +6 -12
  7. package/dist/schemas/spec_v3.schema.json +632 -28
  8. package/dist/schemas/step_v3.schema.json +316 -14
  9. package/dist/schemas/test_v3.schema.json +632 -28
  10. package/package.json +3 -3
  11. package/src/schemas/build/dragAndDrop_v3.schema.json +121 -0
  12. package/src/schemas/build/loadCookie_v3.schema.json +5 -1
  13. package/src/schemas/build/saveCookie_v3.schema.json +6 -6
  14. package/src/schemas/build/step_v3.schema.json +29 -0
  15. package/src/schemas/dereferenceSchemas.js +1 -0
  16. package/src/schemas/output_schemas/config_v3.schema.json +632 -28
  17. package/src/schemas/output_schemas/dragAndDrop_v3.schema.json +224 -0
  18. package/src/schemas/output_schemas/loadCookie_v3.schema.json +5 -2
  19. package/src/schemas/output_schemas/report_v3.schema.json +632 -28
  20. package/src/schemas/output_schemas/resolvedTests_v3.schema.json +1274 -66
  21. package/src/schemas/output_schemas/saveCookie_v3.schema.json +6 -12
  22. package/src/schemas/output_schemas/spec_v3.schema.json +632 -28
  23. package/src/schemas/output_schemas/step_v3.schema.json +316 -14
  24. package/src/schemas/output_schemas/test_v3.schema.json +632 -28
  25. package/src/schemas/schemas.json +4688 -541
  26. package/src/schemas/src_schemas/dragAndDrop_v3.schema.json +117 -0
  27. package/src/schemas/src_schemas/loadCookie_v3.schema.json +5 -1
  28. package/src/schemas/src_schemas/saveCookie_v3.schema.json +6 -4
  29. package/src/schemas/src_schemas/step_v3.schema.json +27 -0
@@ -5082,7 +5082,6 @@
5082
5082
  "type": "string",
5083
5083
  "title": "Cookie file path",
5084
5084
  "description": "File path to save the cookie, relative to directory. Uses Netscape cookie format.",
5085
- "pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
5086
5085
  "transform": [
5087
5086
  "trim"
5088
5087
  ]
@@ -5139,11 +5138,6 @@
5139
5138
  "required": [
5140
5139
  "directory"
5141
5140
  ]
5142
- },
5143
- {
5144
- "required": [
5145
- "overwrite"
5146
- ]
5147
5141
  }
5148
5142
  ]
5149
5143
  }
@@ -5194,7 +5188,6 @@
5194
5188
  "type": "string",
5195
5189
  "title": "Cookie file path",
5196
5190
  "description": "File path to save the cookie, relative to directory. Uses Netscape cookie format.",
5197
- "pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
5198
5191
  "transform": [
5199
5192
  "trim"
5200
5193
  ]
@@ -5251,11 +5244,6 @@
5251
5244
  "required": [
5252
5245
  "directory"
5253
5246
  ]
5254
- },
5255
- {
5256
- "required": [
5257
- "overwrite"
5258
- ]
5259
5247
  }
5260
5248
  ]
5261
5249
  }
@@ -5267,6 +5255,7 @@
5267
5255
  },
5268
5256
  "examples": [
5269
5257
  "session_token",
5258
+ "test_env_cookie",
5270
5259
  {
5271
5260
  "name": "auth_cookie",
5272
5261
  "path": "auth-cookie.txt"
@@ -5275,6 +5264,11 @@
5275
5264
  "name": "session_token",
5276
5265
  "variable": "SESSION_TOKEN"
5277
5266
  },
5267
+ {
5268
+ "name": "test_cookie",
5269
+ "path": "test-cookie.txt",
5270
+ "overwrite": true
5271
+ },
5278
5272
  {
5279
5273
  "name": "user_session",
5280
5274
  "path": "user-session.txt",
@@ -5630,6 +5624,301 @@
5630
5624
  }
5631
5625
  ]
5632
5626
  },
5627
+ {
5628
+ "allOf": [
5629
+ {
5630
+ "type": "object",
5631
+ "dynamicDefaults": {
5632
+ "stepId": "uuid"
5633
+ },
5634
+ "properties": {
5635
+ "$schema": {
5636
+ "description": "JSON Schema for this object.",
5637
+ "type": "string",
5638
+ "enum": [
5639
+ "https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/step_v3.schema.json"
5640
+ ]
5641
+ },
5642
+ "stepId": {
5643
+ "type": "string",
5644
+ "description": "ID of the step."
5645
+ },
5646
+ "description": {
5647
+ "type": "string",
5648
+ "description": "Description of the step."
5649
+ },
5650
+ "unsafe": {
5651
+ "type": "boolean",
5652
+ "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.",
5653
+ "default": false
5654
+ },
5655
+ "outputs": {
5656
+ "type": "object",
5657
+ "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.",
5658
+ "default": {},
5659
+ "patternProperties": {
5660
+ "^[A-Za-z0-9_]+$": {
5661
+ "type": "string",
5662
+ "description": "Runtime expression for a user-defined output value."
5663
+ }
5664
+ },
5665
+ "title": "Outputs (step)"
5666
+ },
5667
+ "variables": {
5668
+ "type": "object",
5669
+ "description": "Environment variables to set from user-defined expressions.",
5670
+ "default": {},
5671
+ "patternProperties": {
5672
+ "^[A-Za-z0-9_]+$": {
5673
+ "type": "string",
5674
+ "description": "Runtime expression for a user-defined output value."
5675
+ }
5676
+ },
5677
+ "title": "Variables (step)"
5678
+ },
5679
+ "breakpoint": {
5680
+ "type": "boolean",
5681
+ "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.",
5682
+ "default": false
5683
+ }
5684
+ },
5685
+ "title": "Common"
5686
+ },
5687
+ {
5688
+ "title": "dragAndDrop",
5689
+ "type": "object",
5690
+ "required": [
5691
+ "dragAndDrop"
5692
+ ],
5693
+ "properties": {
5694
+ "dragAndDrop": {
5695
+ "$schema": "http://json-schema.org/draft-07/schema#",
5696
+ "title": "dragAndDrop",
5697
+ "description": "Drag and drop an element from source to target.",
5698
+ "type": "object",
5699
+ "required": [
5700
+ "source",
5701
+ "target"
5702
+ ],
5703
+ "properties": {
5704
+ "source": {
5705
+ "description": "The element to drag.",
5706
+ "anyOf": [
5707
+ {
5708
+ "title": "Element (simple)",
5709
+ "type": "string",
5710
+ "description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
5711
+ },
5712
+ {
5713
+ "title": "Element (detailed)",
5714
+ "type": "object",
5715
+ "anyOf": [
5716
+ {
5717
+ "required": [
5718
+ "selector"
5719
+ ]
5720
+ },
5721
+ {
5722
+ "required": [
5723
+ "elementText"
5724
+ ]
5725
+ }
5726
+ ],
5727
+ "properties": {
5728
+ "elementText": {
5729
+ "type": "string",
5730
+ "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."
5731
+ },
5732
+ "selector": {
5733
+ "type": "string",
5734
+ "description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
5735
+ },
5736
+ "timeout": {
5737
+ "type": "integer",
5738
+ "description": "Max duration in milliseconds to wait for the element to exist.",
5739
+ "default": 5000
5740
+ }
5741
+ }
5742
+ }
5743
+ ]
5744
+ },
5745
+ "target": {
5746
+ "description": "The target location to drop the element.",
5747
+ "anyOf": [
5748
+ {
5749
+ "title": "Element (simple)",
5750
+ "type": "string",
5751
+ "description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
5752
+ },
5753
+ {
5754
+ "title": "Element (detailed)",
5755
+ "type": "object",
5756
+ "anyOf": [
5757
+ {
5758
+ "required": [
5759
+ "selector"
5760
+ ]
5761
+ },
5762
+ {
5763
+ "required": [
5764
+ "elementText"
5765
+ ]
5766
+ }
5767
+ ],
5768
+ "properties": {
5769
+ "elementText": {
5770
+ "type": "string",
5771
+ "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."
5772
+ },
5773
+ "selector": {
5774
+ "type": "string",
5775
+ "description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
5776
+ },
5777
+ "timeout": {
5778
+ "type": "integer",
5779
+ "description": "Max duration in milliseconds to wait for the element to exist.",
5780
+ "default": 5000
5781
+ }
5782
+ }
5783
+ }
5784
+ ]
5785
+ },
5786
+ "duration": {
5787
+ "type": "integer",
5788
+ "description": "Duration of the drag operation in milliseconds.",
5789
+ "default": 1000,
5790
+ "minimum": 0
5791
+ }
5792
+ },
5793
+ "components": {
5794
+ "schemas": {
5795
+ "elementSpecification": {
5796
+ "anyOf": [
5797
+ {
5798
+ "title": "Element (simple)",
5799
+ "type": "string",
5800
+ "description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
5801
+ },
5802
+ {
5803
+ "title": "Element (detailed)",
5804
+ "type": "object",
5805
+ "anyOf": [
5806
+ {
5807
+ "required": [
5808
+ "selector"
5809
+ ]
5810
+ },
5811
+ {
5812
+ "required": [
5813
+ "elementText"
5814
+ ]
5815
+ }
5816
+ ],
5817
+ "properties": {
5818
+ "elementText": {
5819
+ "type": "string",
5820
+ "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."
5821
+ },
5822
+ "selector": {
5823
+ "type": "string",
5824
+ "description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
5825
+ },
5826
+ "timeout": {
5827
+ "type": "integer",
5828
+ "description": "Max duration in milliseconds to wait for the element to exist.",
5829
+ "default": 5000
5830
+ }
5831
+ }
5832
+ }
5833
+ ]
5834
+ },
5835
+ "string": {
5836
+ "title": "Element (simple)",
5837
+ "type": "string",
5838
+ "description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
5839
+ },
5840
+ "object": {
5841
+ "title": "Element (detailed)",
5842
+ "type": "object",
5843
+ "anyOf": [
5844
+ {
5845
+ "required": [
5846
+ "selector"
5847
+ ]
5848
+ },
5849
+ {
5850
+ "required": [
5851
+ "elementText"
5852
+ ]
5853
+ }
5854
+ ],
5855
+ "properties": {
5856
+ "elementText": {
5857
+ "type": "string",
5858
+ "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."
5859
+ },
5860
+ "selector": {
5861
+ "type": "string",
5862
+ "description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
5863
+ },
5864
+ "timeout": {
5865
+ "type": "integer",
5866
+ "description": "Max duration in milliseconds to wait for the element to exist.",
5867
+ "default": 5000
5868
+ }
5869
+ }
5870
+ }
5871
+ }
5872
+ },
5873
+ "examples": [
5874
+ {
5875
+ "source": "Table",
5876
+ "target": "#canvas"
5877
+ },
5878
+ {
5879
+ "source": ".draggable-block",
5880
+ "target": ".drop-zone",
5881
+ "duration": 2000
5882
+ },
5883
+ {
5884
+ "source": {
5885
+ "selector": ".widget",
5886
+ "elementText": "Data Table"
5887
+ },
5888
+ "target": {
5889
+ "selector": "#design-canvas"
5890
+ },
5891
+ "duration": 500
5892
+ },
5893
+ {
5894
+ "source": {
5895
+ "selector": ".draggable",
5896
+ "timeout": 10000
5897
+ },
5898
+ "target": {
5899
+ "elementText": "Drop Zone",
5900
+ "timeout": 5000
5901
+ }
5902
+ },
5903
+ {
5904
+ "source": "/Widget Item.*/",
5905
+ "target": "#canvas"
5906
+ },
5907
+ {
5908
+ "source": {
5909
+ "selector": ".draggable",
5910
+ "elementText": "/Button [0-9]+/"
5911
+ },
5912
+ "target": {
5913
+ "elementText": "/Drop Zone.*/"
5914
+ }
5915
+ }
5916
+ ]
5917
+ }
5918
+ }
5919
+ }
5920
+ ]
5921
+ },
5633
5922
  {
5634
5923
  "allOf": [
5635
5924
  {
@@ -5776,7 +6065,6 @@
5776
6065
  "type": "string",
5777
6066
  "title": "Cookie file path",
5778
6067
  "description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
5779
- "pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
5780
6068
  "transform": [
5781
6069
  "trim"
5782
6070
  ]
@@ -5877,7 +6165,6 @@
5877
6165
  "type": "string",
5878
6166
  "title": "Cookie file path",
5879
6167
  "description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
5880
- "pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
5881
6168
  "transform": [
5882
6169
  "trim"
5883
6170
  ]
@@ -5906,10 +6193,15 @@
5906
6193
  "examples": [
5907
6194
  "session_token",
5908
6195
  "./test-data/auth-session.txt",
6196
+ "test_env_cookie",
5909
6197
  {
5910
6198
  "name": "auth_cookie",
5911
6199
  "variable": "AUTH_COOKIE"
5912
6200
  },
6201
+ {
6202
+ "name": "test_cookie",
6203
+ "path": "test-cookie.txt"
6204
+ },
5913
6205
  {
5914
6206
  "name": "session_token",
5915
6207
  "path": "session-token.txt",
@@ -6415,6 +6707,16 @@
6415
6707
  {
6416
6708
  "checkLink": "https://www.google.com",
6417
6709
  "breakpoint": false
6710
+ },
6711
+ {
6712
+ "dragAndDrop": {
6713
+ "source": {
6714
+ "selector": "#sourceElement"
6715
+ },
6716
+ "target": {
6717
+ "selector": "#targetElement"
6718
+ }
6719
+ }
6418
6720
  }
6419
6721
  ]
6420
6722
  }
@@ -10542,7 +10844,6 @@
10542
10844
  "type": "string",
10543
10845
  "title": "Cookie file path",
10544
10846
  "description": "File path to save the cookie, relative to directory. Uses Netscape cookie format.",
10545
- "pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
10546
10847
  "transform": [
10547
10848
  "trim"
10548
10849
  ]
@@ -10599,11 +10900,6 @@
10599
10900
  "required": [
10600
10901
  "directory"
10601
10902
  ]
10602
- },
10603
- {
10604
- "required": [
10605
- "overwrite"
10606
- ]
10607
10903
  }
10608
10904
  ]
10609
10905
  }
@@ -10654,7 +10950,6 @@
10654
10950
  "type": "string",
10655
10951
  "title": "Cookie file path",
10656
10952
  "description": "File path to save the cookie, relative to directory. Uses Netscape cookie format.",
10657
- "pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
10658
10953
  "transform": [
10659
10954
  "trim"
10660
10955
  ]
@@ -10711,11 +11006,6 @@
10711
11006
  "required": [
10712
11007
  "directory"
10713
11008
  ]
10714
- },
10715
- {
10716
- "required": [
10717
- "overwrite"
10718
- ]
10719
11009
  }
10720
11010
  ]
10721
11011
  }
@@ -10727,6 +11017,7 @@
10727
11017
  },
10728
11018
  "examples": [
10729
11019
  "session_token",
11020
+ "test_env_cookie",
10730
11021
  {
10731
11022
  "name": "auth_cookie",
10732
11023
  "path": "auth-cookie.txt"
@@ -10735,6 +11026,11 @@
10735
11026
  "name": "session_token",
10736
11027
  "variable": "SESSION_TOKEN"
10737
11028
  },
11029
+ {
11030
+ "name": "test_cookie",
11031
+ "path": "test-cookie.txt",
11032
+ "overwrite": true
11033
+ },
10738
11034
  {
10739
11035
  "name": "user_session",
10740
11036
  "path": "user-session.txt",
@@ -11090,6 +11386,301 @@
11090
11386
  }
11091
11387
  ]
11092
11388
  },
11389
+ {
11390
+ "allOf": [
11391
+ {
11392
+ "type": "object",
11393
+ "dynamicDefaults": {
11394
+ "stepId": "uuid"
11395
+ },
11396
+ "properties": {
11397
+ "$schema": {
11398
+ "description": "JSON Schema for this object.",
11399
+ "type": "string",
11400
+ "enum": [
11401
+ "https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/step_v3.schema.json"
11402
+ ]
11403
+ },
11404
+ "stepId": {
11405
+ "type": "string",
11406
+ "description": "ID of the step."
11407
+ },
11408
+ "description": {
11409
+ "type": "string",
11410
+ "description": "Description of the step."
11411
+ },
11412
+ "unsafe": {
11413
+ "type": "boolean",
11414
+ "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.",
11415
+ "default": false
11416
+ },
11417
+ "outputs": {
11418
+ "type": "object",
11419
+ "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.",
11420
+ "default": {},
11421
+ "patternProperties": {
11422
+ "^[A-Za-z0-9_]+$": {
11423
+ "type": "string",
11424
+ "description": "Runtime expression for a user-defined output value."
11425
+ }
11426
+ },
11427
+ "title": "Outputs (step)"
11428
+ },
11429
+ "variables": {
11430
+ "type": "object",
11431
+ "description": "Environment variables to set from user-defined expressions.",
11432
+ "default": {},
11433
+ "patternProperties": {
11434
+ "^[A-Za-z0-9_]+$": {
11435
+ "type": "string",
11436
+ "description": "Runtime expression for a user-defined output value."
11437
+ }
11438
+ },
11439
+ "title": "Variables (step)"
11440
+ },
11441
+ "breakpoint": {
11442
+ "type": "boolean",
11443
+ "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.",
11444
+ "default": false
11445
+ }
11446
+ },
11447
+ "title": "Common"
11448
+ },
11449
+ {
11450
+ "title": "dragAndDrop",
11451
+ "type": "object",
11452
+ "required": [
11453
+ "dragAndDrop"
11454
+ ],
11455
+ "properties": {
11456
+ "dragAndDrop": {
11457
+ "$schema": "http://json-schema.org/draft-07/schema#",
11458
+ "title": "dragAndDrop",
11459
+ "description": "Drag and drop an element from source to target.",
11460
+ "type": "object",
11461
+ "required": [
11462
+ "source",
11463
+ "target"
11464
+ ],
11465
+ "properties": {
11466
+ "source": {
11467
+ "description": "The element to drag.",
11468
+ "anyOf": [
11469
+ {
11470
+ "title": "Element (simple)",
11471
+ "type": "string",
11472
+ "description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
11473
+ },
11474
+ {
11475
+ "title": "Element (detailed)",
11476
+ "type": "object",
11477
+ "anyOf": [
11478
+ {
11479
+ "required": [
11480
+ "selector"
11481
+ ]
11482
+ },
11483
+ {
11484
+ "required": [
11485
+ "elementText"
11486
+ ]
11487
+ }
11488
+ ],
11489
+ "properties": {
11490
+ "elementText": {
11491
+ "type": "string",
11492
+ "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."
11493
+ },
11494
+ "selector": {
11495
+ "type": "string",
11496
+ "description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
11497
+ },
11498
+ "timeout": {
11499
+ "type": "integer",
11500
+ "description": "Max duration in milliseconds to wait for the element to exist.",
11501
+ "default": 5000
11502
+ }
11503
+ }
11504
+ }
11505
+ ]
11506
+ },
11507
+ "target": {
11508
+ "description": "The target location to drop the element.",
11509
+ "anyOf": [
11510
+ {
11511
+ "title": "Element (simple)",
11512
+ "type": "string",
11513
+ "description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
11514
+ },
11515
+ {
11516
+ "title": "Element (detailed)",
11517
+ "type": "object",
11518
+ "anyOf": [
11519
+ {
11520
+ "required": [
11521
+ "selector"
11522
+ ]
11523
+ },
11524
+ {
11525
+ "required": [
11526
+ "elementText"
11527
+ ]
11528
+ }
11529
+ ],
11530
+ "properties": {
11531
+ "elementText": {
11532
+ "type": "string",
11533
+ "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."
11534
+ },
11535
+ "selector": {
11536
+ "type": "string",
11537
+ "description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
11538
+ },
11539
+ "timeout": {
11540
+ "type": "integer",
11541
+ "description": "Max duration in milliseconds to wait for the element to exist.",
11542
+ "default": 5000
11543
+ }
11544
+ }
11545
+ }
11546
+ ]
11547
+ },
11548
+ "duration": {
11549
+ "type": "integer",
11550
+ "description": "Duration of the drag operation in milliseconds.",
11551
+ "default": 1000,
11552
+ "minimum": 0
11553
+ }
11554
+ },
11555
+ "components": {
11556
+ "schemas": {
11557
+ "elementSpecification": {
11558
+ "anyOf": [
11559
+ {
11560
+ "title": "Element (simple)",
11561
+ "type": "string",
11562
+ "description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
11563
+ },
11564
+ {
11565
+ "title": "Element (detailed)",
11566
+ "type": "object",
11567
+ "anyOf": [
11568
+ {
11569
+ "required": [
11570
+ "selector"
11571
+ ]
11572
+ },
11573
+ {
11574
+ "required": [
11575
+ "elementText"
11576
+ ]
11577
+ }
11578
+ ],
11579
+ "properties": {
11580
+ "elementText": {
11581
+ "type": "string",
11582
+ "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."
11583
+ },
11584
+ "selector": {
11585
+ "type": "string",
11586
+ "description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
11587
+ },
11588
+ "timeout": {
11589
+ "type": "integer",
11590
+ "description": "Max duration in milliseconds to wait for the element to exist.",
11591
+ "default": 5000
11592
+ }
11593
+ }
11594
+ }
11595
+ ]
11596
+ },
11597
+ "string": {
11598
+ "title": "Element (simple)",
11599
+ "type": "string",
11600
+ "description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
11601
+ },
11602
+ "object": {
11603
+ "title": "Element (detailed)",
11604
+ "type": "object",
11605
+ "anyOf": [
11606
+ {
11607
+ "required": [
11608
+ "selector"
11609
+ ]
11610
+ },
11611
+ {
11612
+ "required": [
11613
+ "elementText"
11614
+ ]
11615
+ }
11616
+ ],
11617
+ "properties": {
11618
+ "elementText": {
11619
+ "type": "string",
11620
+ "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."
11621
+ },
11622
+ "selector": {
11623
+ "type": "string",
11624
+ "description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
11625
+ },
11626
+ "timeout": {
11627
+ "type": "integer",
11628
+ "description": "Max duration in milliseconds to wait for the element to exist.",
11629
+ "default": 5000
11630
+ }
11631
+ }
11632
+ }
11633
+ }
11634
+ },
11635
+ "examples": [
11636
+ {
11637
+ "source": "Table",
11638
+ "target": "#canvas"
11639
+ },
11640
+ {
11641
+ "source": ".draggable-block",
11642
+ "target": ".drop-zone",
11643
+ "duration": 2000
11644
+ },
11645
+ {
11646
+ "source": {
11647
+ "selector": ".widget",
11648
+ "elementText": "Data Table"
11649
+ },
11650
+ "target": {
11651
+ "selector": "#design-canvas"
11652
+ },
11653
+ "duration": 500
11654
+ },
11655
+ {
11656
+ "source": {
11657
+ "selector": ".draggable",
11658
+ "timeout": 10000
11659
+ },
11660
+ "target": {
11661
+ "elementText": "Drop Zone",
11662
+ "timeout": 5000
11663
+ }
11664
+ },
11665
+ {
11666
+ "source": "/Widget Item.*/",
11667
+ "target": "#canvas"
11668
+ },
11669
+ {
11670
+ "source": {
11671
+ "selector": ".draggable",
11672
+ "elementText": "/Button [0-9]+/"
11673
+ },
11674
+ "target": {
11675
+ "elementText": "/Drop Zone.*/"
11676
+ }
11677
+ }
11678
+ ]
11679
+ }
11680
+ }
11681
+ }
11682
+ ]
11683
+ },
11093
11684
  {
11094
11685
  "allOf": [
11095
11686
  {
@@ -11236,7 +11827,6 @@
11236
11827
  "type": "string",
11237
11828
  "title": "Cookie file path",
11238
11829
  "description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
11239
- "pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
11240
11830
  "transform": [
11241
11831
  "trim"
11242
11832
  ]
@@ -11337,7 +11927,6 @@
11337
11927
  "type": "string",
11338
11928
  "title": "Cookie file path",
11339
11929
  "description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
11340
- "pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
11341
11930
  "transform": [
11342
11931
  "trim"
11343
11932
  ]
@@ -11366,10 +11955,15 @@
11366
11955
  "examples": [
11367
11956
  "session_token",
11368
11957
  "./test-data/auth-session.txt",
11958
+ "test_env_cookie",
11369
11959
  {
11370
11960
  "name": "auth_cookie",
11371
11961
  "variable": "AUTH_COOKIE"
11372
11962
  },
11963
+ {
11964
+ "name": "test_cookie",
11965
+ "path": "test-cookie.txt"
11966
+ },
11373
11967
  {
11374
11968
  "name": "session_token",
11375
11969
  "path": "session-token.txt",
@@ -11875,6 +12469,16 @@
11875
12469
  {
11876
12470
  "checkLink": "https://www.google.com",
11877
12471
  "breakpoint": false
12472
+ },
12473
+ {
12474
+ "dragAndDrop": {
12475
+ "source": {
12476
+ "selector": "#sourceElement"
12477
+ },
12478
+ "target": {
12479
+ "selector": "#targetElement"
12480
+ }
12481
+ }
11878
12482
  }
11879
12483
  ]
11880
12484
  }