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
|
@@ -3864,7 +3864,6 @@
|
|
|
3864
3864
|
"type": "string",
|
|
3865
3865
|
"title": "Cookie file path",
|
|
3866
3866
|
"description": "File path to save the cookie, relative to directory. Uses Netscape cookie format.",
|
|
3867
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
3868
3867
|
"transform": [
|
|
3869
3868
|
"trim"
|
|
3870
3869
|
]
|
|
@@ -3921,11 +3920,6 @@
|
|
|
3921
3920
|
"required": [
|
|
3922
3921
|
"directory"
|
|
3923
3922
|
]
|
|
3924
|
-
},
|
|
3925
|
-
{
|
|
3926
|
-
"required": [
|
|
3927
|
-
"overwrite"
|
|
3928
|
-
]
|
|
3929
3923
|
}
|
|
3930
3924
|
]
|
|
3931
3925
|
}
|
|
@@ -3976,7 +3970,6 @@
|
|
|
3976
3970
|
"type": "string",
|
|
3977
3971
|
"title": "Cookie file path",
|
|
3978
3972
|
"description": "File path to save the cookie, relative to directory. Uses Netscape cookie format.",
|
|
3979
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
3980
3973
|
"transform": [
|
|
3981
3974
|
"trim"
|
|
3982
3975
|
]
|
|
@@ -4033,11 +4026,6 @@
|
|
|
4033
4026
|
"required": [
|
|
4034
4027
|
"directory"
|
|
4035
4028
|
]
|
|
4036
|
-
},
|
|
4037
|
-
{
|
|
4038
|
-
"required": [
|
|
4039
|
-
"overwrite"
|
|
4040
|
-
]
|
|
4041
4029
|
}
|
|
4042
4030
|
]
|
|
4043
4031
|
}
|
|
@@ -4049,6 +4037,7 @@
|
|
|
4049
4037
|
},
|
|
4050
4038
|
"examples": [
|
|
4051
4039
|
"session_token",
|
|
4040
|
+
"test_env_cookie",
|
|
4052
4041
|
{
|
|
4053
4042
|
"name": "auth_cookie",
|
|
4054
4043
|
"path": "auth-cookie.txt"
|
|
@@ -4057,6 +4046,11 @@
|
|
|
4057
4046
|
"name": "session_token",
|
|
4058
4047
|
"variable": "SESSION_TOKEN"
|
|
4059
4048
|
},
|
|
4049
|
+
{
|
|
4050
|
+
"name": "test_cookie",
|
|
4051
|
+
"path": "test-cookie.txt",
|
|
4052
|
+
"overwrite": true
|
|
4053
|
+
},
|
|
4060
4054
|
{
|
|
4061
4055
|
"name": "user_session",
|
|
4062
4056
|
"path": "user-session.txt",
|
|
@@ -4412,6 +4406,301 @@
|
|
|
4412
4406
|
}
|
|
4413
4407
|
]
|
|
4414
4408
|
},
|
|
4409
|
+
{
|
|
4410
|
+
"allOf": [
|
|
4411
|
+
{
|
|
4412
|
+
"type": "object",
|
|
4413
|
+
"dynamicDefaults": {
|
|
4414
|
+
"stepId": "uuid"
|
|
4415
|
+
},
|
|
4416
|
+
"properties": {
|
|
4417
|
+
"$schema": {
|
|
4418
|
+
"description": "JSON Schema for this object.",
|
|
4419
|
+
"type": "string",
|
|
4420
|
+
"enum": [
|
|
4421
|
+
"https://raw.githubusercontent.com/doc-detective/common/refs/heads/main/dist/schemas/step_v3.schema.json"
|
|
4422
|
+
]
|
|
4423
|
+
},
|
|
4424
|
+
"stepId": {
|
|
4425
|
+
"type": "string",
|
|
4426
|
+
"description": "ID of the step."
|
|
4427
|
+
},
|
|
4428
|
+
"description": {
|
|
4429
|
+
"type": "string",
|
|
4430
|
+
"description": "Description of the step."
|
|
4431
|
+
},
|
|
4432
|
+
"unsafe": {
|
|
4433
|
+
"type": "boolean",
|
|
4434
|
+
"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.",
|
|
4435
|
+
"default": false
|
|
4436
|
+
},
|
|
4437
|
+
"outputs": {
|
|
4438
|
+
"type": "object",
|
|
4439
|
+
"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.",
|
|
4440
|
+
"default": {},
|
|
4441
|
+
"patternProperties": {
|
|
4442
|
+
"^[A-Za-z0-9_]+$": {
|
|
4443
|
+
"type": "string",
|
|
4444
|
+
"description": "Runtime expression for a user-defined output value."
|
|
4445
|
+
}
|
|
4446
|
+
},
|
|
4447
|
+
"title": "Outputs (step)"
|
|
4448
|
+
},
|
|
4449
|
+
"variables": {
|
|
4450
|
+
"type": "object",
|
|
4451
|
+
"description": "Environment variables to set from user-defined expressions.",
|
|
4452
|
+
"default": {},
|
|
4453
|
+
"patternProperties": {
|
|
4454
|
+
"^[A-Za-z0-9_]+$": {
|
|
4455
|
+
"type": "string",
|
|
4456
|
+
"description": "Runtime expression for a user-defined output value."
|
|
4457
|
+
}
|
|
4458
|
+
},
|
|
4459
|
+
"title": "Variables (step)"
|
|
4460
|
+
},
|
|
4461
|
+
"breakpoint": {
|
|
4462
|
+
"type": "boolean",
|
|
4463
|
+
"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.",
|
|
4464
|
+
"default": false
|
|
4465
|
+
}
|
|
4466
|
+
},
|
|
4467
|
+
"title": "Common"
|
|
4468
|
+
},
|
|
4469
|
+
{
|
|
4470
|
+
"title": "dragAndDrop",
|
|
4471
|
+
"type": "object",
|
|
4472
|
+
"required": [
|
|
4473
|
+
"dragAndDrop"
|
|
4474
|
+
],
|
|
4475
|
+
"properties": {
|
|
4476
|
+
"dragAndDrop": {
|
|
4477
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4478
|
+
"title": "dragAndDrop",
|
|
4479
|
+
"description": "Drag and drop an element from source to target.",
|
|
4480
|
+
"type": "object",
|
|
4481
|
+
"required": [
|
|
4482
|
+
"source",
|
|
4483
|
+
"target"
|
|
4484
|
+
],
|
|
4485
|
+
"properties": {
|
|
4486
|
+
"source": {
|
|
4487
|
+
"description": "The element to drag.",
|
|
4488
|
+
"anyOf": [
|
|
4489
|
+
{
|
|
4490
|
+
"title": "Element (simple)",
|
|
4491
|
+
"type": "string",
|
|
4492
|
+
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
4493
|
+
},
|
|
4494
|
+
{
|
|
4495
|
+
"title": "Element (detailed)",
|
|
4496
|
+
"type": "object",
|
|
4497
|
+
"anyOf": [
|
|
4498
|
+
{
|
|
4499
|
+
"required": [
|
|
4500
|
+
"selector"
|
|
4501
|
+
]
|
|
4502
|
+
},
|
|
4503
|
+
{
|
|
4504
|
+
"required": [
|
|
4505
|
+
"elementText"
|
|
4506
|
+
]
|
|
4507
|
+
}
|
|
4508
|
+
],
|
|
4509
|
+
"properties": {
|
|
4510
|
+
"elementText": {
|
|
4511
|
+
"type": "string",
|
|
4512
|
+
"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."
|
|
4513
|
+
},
|
|
4514
|
+
"selector": {
|
|
4515
|
+
"type": "string",
|
|
4516
|
+
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
4517
|
+
},
|
|
4518
|
+
"timeout": {
|
|
4519
|
+
"type": "integer",
|
|
4520
|
+
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
4521
|
+
"default": 5000
|
|
4522
|
+
}
|
|
4523
|
+
}
|
|
4524
|
+
}
|
|
4525
|
+
]
|
|
4526
|
+
},
|
|
4527
|
+
"target": {
|
|
4528
|
+
"description": "The target location to drop the element.",
|
|
4529
|
+
"anyOf": [
|
|
4530
|
+
{
|
|
4531
|
+
"title": "Element (simple)",
|
|
4532
|
+
"type": "string",
|
|
4533
|
+
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
4534
|
+
},
|
|
4535
|
+
{
|
|
4536
|
+
"title": "Element (detailed)",
|
|
4537
|
+
"type": "object",
|
|
4538
|
+
"anyOf": [
|
|
4539
|
+
{
|
|
4540
|
+
"required": [
|
|
4541
|
+
"selector"
|
|
4542
|
+
]
|
|
4543
|
+
},
|
|
4544
|
+
{
|
|
4545
|
+
"required": [
|
|
4546
|
+
"elementText"
|
|
4547
|
+
]
|
|
4548
|
+
}
|
|
4549
|
+
],
|
|
4550
|
+
"properties": {
|
|
4551
|
+
"elementText": {
|
|
4552
|
+
"type": "string",
|
|
4553
|
+
"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."
|
|
4554
|
+
},
|
|
4555
|
+
"selector": {
|
|
4556
|
+
"type": "string",
|
|
4557
|
+
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
4558
|
+
},
|
|
4559
|
+
"timeout": {
|
|
4560
|
+
"type": "integer",
|
|
4561
|
+
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
4562
|
+
"default": 5000
|
|
4563
|
+
}
|
|
4564
|
+
}
|
|
4565
|
+
}
|
|
4566
|
+
]
|
|
4567
|
+
},
|
|
4568
|
+
"duration": {
|
|
4569
|
+
"type": "integer",
|
|
4570
|
+
"description": "Duration of the drag operation in milliseconds.",
|
|
4571
|
+
"default": 1000,
|
|
4572
|
+
"minimum": 0
|
|
4573
|
+
}
|
|
4574
|
+
},
|
|
4575
|
+
"components": {
|
|
4576
|
+
"schemas": {
|
|
4577
|
+
"elementSpecification": {
|
|
4578
|
+
"anyOf": [
|
|
4579
|
+
{
|
|
4580
|
+
"title": "Element (simple)",
|
|
4581
|
+
"type": "string",
|
|
4582
|
+
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
4583
|
+
},
|
|
4584
|
+
{
|
|
4585
|
+
"title": "Element (detailed)",
|
|
4586
|
+
"type": "object",
|
|
4587
|
+
"anyOf": [
|
|
4588
|
+
{
|
|
4589
|
+
"required": [
|
|
4590
|
+
"selector"
|
|
4591
|
+
]
|
|
4592
|
+
},
|
|
4593
|
+
{
|
|
4594
|
+
"required": [
|
|
4595
|
+
"elementText"
|
|
4596
|
+
]
|
|
4597
|
+
}
|
|
4598
|
+
],
|
|
4599
|
+
"properties": {
|
|
4600
|
+
"elementText": {
|
|
4601
|
+
"type": "string",
|
|
4602
|
+
"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."
|
|
4603
|
+
},
|
|
4604
|
+
"selector": {
|
|
4605
|
+
"type": "string",
|
|
4606
|
+
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
4607
|
+
},
|
|
4608
|
+
"timeout": {
|
|
4609
|
+
"type": "integer",
|
|
4610
|
+
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
4611
|
+
"default": 5000
|
|
4612
|
+
}
|
|
4613
|
+
}
|
|
4614
|
+
}
|
|
4615
|
+
]
|
|
4616
|
+
},
|
|
4617
|
+
"string": {
|
|
4618
|
+
"title": "Element (simple)",
|
|
4619
|
+
"type": "string",
|
|
4620
|
+
"description": "Display text, selector, or regex pattern (enclosed in forward slashes) of the element."
|
|
4621
|
+
},
|
|
4622
|
+
"object": {
|
|
4623
|
+
"title": "Element (detailed)",
|
|
4624
|
+
"type": "object",
|
|
4625
|
+
"anyOf": [
|
|
4626
|
+
{
|
|
4627
|
+
"required": [
|
|
4628
|
+
"selector"
|
|
4629
|
+
]
|
|
4630
|
+
},
|
|
4631
|
+
{
|
|
4632
|
+
"required": [
|
|
4633
|
+
"elementText"
|
|
4634
|
+
]
|
|
4635
|
+
}
|
|
4636
|
+
],
|
|
4637
|
+
"properties": {
|
|
4638
|
+
"elementText": {
|
|
4639
|
+
"type": "string",
|
|
4640
|
+
"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."
|
|
4641
|
+
},
|
|
4642
|
+
"selector": {
|
|
4643
|
+
"type": "string",
|
|
4644
|
+
"description": "Selector of the element. If combined with `elementText`, the element must match both the text and the selector."
|
|
4645
|
+
},
|
|
4646
|
+
"timeout": {
|
|
4647
|
+
"type": "integer",
|
|
4648
|
+
"description": "Max duration in milliseconds to wait for the element to exist.",
|
|
4649
|
+
"default": 5000
|
|
4650
|
+
}
|
|
4651
|
+
}
|
|
4652
|
+
}
|
|
4653
|
+
}
|
|
4654
|
+
},
|
|
4655
|
+
"examples": [
|
|
4656
|
+
{
|
|
4657
|
+
"source": "Table",
|
|
4658
|
+
"target": "#canvas"
|
|
4659
|
+
},
|
|
4660
|
+
{
|
|
4661
|
+
"source": ".draggable-block",
|
|
4662
|
+
"target": ".drop-zone",
|
|
4663
|
+
"duration": 2000
|
|
4664
|
+
},
|
|
4665
|
+
{
|
|
4666
|
+
"source": {
|
|
4667
|
+
"selector": ".widget",
|
|
4668
|
+
"elementText": "Data Table"
|
|
4669
|
+
},
|
|
4670
|
+
"target": {
|
|
4671
|
+
"selector": "#design-canvas"
|
|
4672
|
+
},
|
|
4673
|
+
"duration": 500
|
|
4674
|
+
},
|
|
4675
|
+
{
|
|
4676
|
+
"source": {
|
|
4677
|
+
"selector": ".draggable",
|
|
4678
|
+
"timeout": 10000
|
|
4679
|
+
},
|
|
4680
|
+
"target": {
|
|
4681
|
+
"elementText": "Drop Zone",
|
|
4682
|
+
"timeout": 5000
|
|
4683
|
+
}
|
|
4684
|
+
},
|
|
4685
|
+
{
|
|
4686
|
+
"source": "/Widget Item.*/",
|
|
4687
|
+
"target": "#canvas"
|
|
4688
|
+
},
|
|
4689
|
+
{
|
|
4690
|
+
"source": {
|
|
4691
|
+
"selector": ".draggable",
|
|
4692
|
+
"elementText": "/Button [0-9]+/"
|
|
4693
|
+
},
|
|
4694
|
+
"target": {
|
|
4695
|
+
"elementText": "/Drop Zone.*/"
|
|
4696
|
+
}
|
|
4697
|
+
}
|
|
4698
|
+
]
|
|
4699
|
+
}
|
|
4700
|
+
}
|
|
4701
|
+
}
|
|
4702
|
+
]
|
|
4703
|
+
},
|
|
4415
4704
|
{
|
|
4416
4705
|
"allOf": [
|
|
4417
4706
|
{
|
|
@@ -4558,7 +4847,6 @@
|
|
|
4558
4847
|
"type": "string",
|
|
4559
4848
|
"title": "Cookie file path",
|
|
4560
4849
|
"description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
|
|
4561
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
4562
4850
|
"transform": [
|
|
4563
4851
|
"trim"
|
|
4564
4852
|
]
|
|
@@ -4659,7 +4947,6 @@
|
|
|
4659
4947
|
"type": "string",
|
|
4660
4948
|
"title": "Cookie file path",
|
|
4661
4949
|
"description": "File path to cookie file, relative to directory. Supports Netscape cookie format.",
|
|
4662
|
-
"pattern": "^(?:[A-Za-z0-9_.-]+\\.(?:txt|cookies)|\\$[A-Za-z_][A-Za-z0-9_]*)$",
|
|
4663
4950
|
"transform": [
|
|
4664
4951
|
"trim"
|
|
4665
4952
|
]
|
|
@@ -4688,10 +4975,15 @@
|
|
|
4688
4975
|
"examples": [
|
|
4689
4976
|
"session_token",
|
|
4690
4977
|
"./test-data/auth-session.txt",
|
|
4978
|
+
"test_env_cookie",
|
|
4691
4979
|
{
|
|
4692
4980
|
"name": "auth_cookie",
|
|
4693
4981
|
"variable": "AUTH_COOKIE"
|
|
4694
4982
|
},
|
|
4983
|
+
{
|
|
4984
|
+
"name": "test_cookie",
|
|
4985
|
+
"path": "test-cookie.txt"
|
|
4986
|
+
},
|
|
4695
4987
|
{
|
|
4696
4988
|
"name": "session_token",
|
|
4697
4989
|
"path": "session-token.txt",
|
|
@@ -5197,6 +5489,16 @@
|
|
|
5197
5489
|
{
|
|
5198
5490
|
"checkLink": "https://www.google.com",
|
|
5199
5491
|
"breakpoint": false
|
|
5492
|
+
},
|
|
5493
|
+
{
|
|
5494
|
+
"dragAndDrop": {
|
|
5495
|
+
"source": {
|
|
5496
|
+
"selector": "#sourceElement"
|
|
5497
|
+
},
|
|
5498
|
+
"target": {
|
|
5499
|
+
"selector": "#targetElement"
|
|
5500
|
+
}
|
|
5501
|
+
}
|
|
5200
5502
|
}
|
|
5201
5503
|
]
|
|
5202
5504
|
}
|