doc-detective-common 1.19.3 → 1.20.0
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/package.json +1 -1
- package/src/schemas/output_schemas/config_v2.schema.json +75 -0
- package/src/schemas/output_schemas/saveScreenshot_v2.schema.json +75 -0
- package/src/schemas/output_schemas/spec_v2.schema.json +75 -0
- package/src/schemas/output_schemas/test_v2.schema.json +75 -0
- package/src/schemas/schemas.json +300 -0
- package/src/schemas/src_schemas/saveScreenshot_v2.schema.json +64 -9
package/package.json
CHANGED
|
@@ -1289,6 +1289,50 @@
|
|
|
1289
1289
|
"byVariation"
|
|
1290
1290
|
],
|
|
1291
1291
|
"default": "false"
|
|
1292
|
+
},
|
|
1293
|
+
"crop": {
|
|
1294
|
+
"type": "object",
|
|
1295
|
+
"description": "Crops the screenshot.",
|
|
1296
|
+
"properties": {
|
|
1297
|
+
"selector": {
|
|
1298
|
+
"type": "string",
|
|
1299
|
+
"description": "Selector of the element to crop the image to."
|
|
1300
|
+
},
|
|
1301
|
+
"padding": {
|
|
1302
|
+
"oneOf": [
|
|
1303
|
+
{
|
|
1304
|
+
"type": "number",
|
|
1305
|
+
"description": "Padding in pixels to add to the bounds of the element.",
|
|
1306
|
+
"minimum": 0
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
"type": "object",
|
|
1310
|
+
"properties": {
|
|
1311
|
+
"top": {
|
|
1312
|
+
"type": "number",
|
|
1313
|
+
"minimum": 0
|
|
1314
|
+
},
|
|
1315
|
+
"right": {
|
|
1316
|
+
"type": "number",
|
|
1317
|
+
"minimum": 0
|
|
1318
|
+
},
|
|
1319
|
+
"bottom": {
|
|
1320
|
+
"type": "number",
|
|
1321
|
+
"minimum": 0
|
|
1322
|
+
},
|
|
1323
|
+
"left": {
|
|
1324
|
+
"type": "number",
|
|
1325
|
+
"minimum": 0
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
]
|
|
1330
|
+
}
|
|
1331
|
+
},
|
|
1332
|
+
"required": [
|
|
1333
|
+
"selector"
|
|
1334
|
+
],
|
|
1335
|
+
"additionalProperties": false
|
|
1292
1336
|
}
|
|
1293
1337
|
},
|
|
1294
1338
|
"dynamicDefaults": {
|
|
@@ -1317,6 +1361,37 @@
|
|
|
1317
1361
|
"directory": "static/images",
|
|
1318
1362
|
"maxVariation": 10,
|
|
1319
1363
|
"overwrite": "byVariation"
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
"action": "saveScreenshot",
|
|
1367
|
+
"path": "results.png",
|
|
1368
|
+
"directory": "static/images",
|
|
1369
|
+
"crop": {
|
|
1370
|
+
"selector": "#element"
|
|
1371
|
+
}
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
"action": "saveScreenshot",
|
|
1375
|
+
"path": "results.png",
|
|
1376
|
+
"directory": "static/images",
|
|
1377
|
+
"crop": {
|
|
1378
|
+
"selector": "#element",
|
|
1379
|
+
"padding": 10
|
|
1380
|
+
}
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
"action": "saveScreenshot",
|
|
1384
|
+
"path": "results.png",
|
|
1385
|
+
"directory": "static/images",
|
|
1386
|
+
"crop": {
|
|
1387
|
+
"selector": "#element",
|
|
1388
|
+
"padding": {
|
|
1389
|
+
"top": 10,
|
|
1390
|
+
"right": 20,
|
|
1391
|
+
"bottom": 30,
|
|
1392
|
+
"left": 40
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1320
1395
|
}
|
|
1321
1396
|
]
|
|
1322
1397
|
},
|
|
@@ -41,6 +41,50 @@
|
|
|
41
41
|
"byVariation"
|
|
42
42
|
],
|
|
43
43
|
"default": "false"
|
|
44
|
+
},
|
|
45
|
+
"crop": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"description": "Crops the screenshot.",
|
|
48
|
+
"properties": {
|
|
49
|
+
"selector": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "Selector of the element to crop the image to."
|
|
52
|
+
},
|
|
53
|
+
"padding": {
|
|
54
|
+
"oneOf": [
|
|
55
|
+
{
|
|
56
|
+
"type": "number",
|
|
57
|
+
"description": "Padding in pixels to add to the bounds of the element.",
|
|
58
|
+
"minimum": 0
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "object",
|
|
62
|
+
"properties": {
|
|
63
|
+
"top": {
|
|
64
|
+
"type": "number",
|
|
65
|
+
"minimum": 0
|
|
66
|
+
},
|
|
67
|
+
"right": {
|
|
68
|
+
"type": "number",
|
|
69
|
+
"minimum": 0
|
|
70
|
+
},
|
|
71
|
+
"bottom": {
|
|
72
|
+
"type": "number",
|
|
73
|
+
"minimum": 0
|
|
74
|
+
},
|
|
75
|
+
"left": {
|
|
76
|
+
"type": "number",
|
|
77
|
+
"minimum": 0
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"required": [
|
|
85
|
+
"selector"
|
|
86
|
+
],
|
|
87
|
+
"additionalProperties": false
|
|
44
88
|
}
|
|
45
89
|
},
|
|
46
90
|
"dynamicDefaults": {
|
|
@@ -69,6 +113,37 @@
|
|
|
69
113
|
"directory": "static/images",
|
|
70
114
|
"maxVariation": 10,
|
|
71
115
|
"overwrite": "byVariation"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"action": "saveScreenshot",
|
|
119
|
+
"path": "results.png",
|
|
120
|
+
"directory": "static/images",
|
|
121
|
+
"crop": {
|
|
122
|
+
"selector": "#element"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"action": "saveScreenshot",
|
|
127
|
+
"path": "results.png",
|
|
128
|
+
"directory": "static/images",
|
|
129
|
+
"crop": {
|
|
130
|
+
"selector": "#element",
|
|
131
|
+
"padding": 10
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"action": "saveScreenshot",
|
|
136
|
+
"path": "results.png",
|
|
137
|
+
"directory": "static/images",
|
|
138
|
+
"crop": {
|
|
139
|
+
"selector": "#element",
|
|
140
|
+
"padding": {
|
|
141
|
+
"top": 10,
|
|
142
|
+
"right": 20,
|
|
143
|
+
"bottom": 30,
|
|
144
|
+
"left": 40
|
|
145
|
+
}
|
|
146
|
+
}
|
|
72
147
|
}
|
|
73
148
|
]
|
|
74
149
|
}
|
|
@@ -919,6 +919,50 @@
|
|
|
919
919
|
"byVariation"
|
|
920
920
|
],
|
|
921
921
|
"default": "false"
|
|
922
|
+
},
|
|
923
|
+
"crop": {
|
|
924
|
+
"type": "object",
|
|
925
|
+
"description": "Crops the screenshot.",
|
|
926
|
+
"properties": {
|
|
927
|
+
"selector": {
|
|
928
|
+
"type": "string",
|
|
929
|
+
"description": "Selector of the element to crop the image to."
|
|
930
|
+
},
|
|
931
|
+
"padding": {
|
|
932
|
+
"oneOf": [
|
|
933
|
+
{
|
|
934
|
+
"type": "number",
|
|
935
|
+
"description": "Padding in pixels to add to the bounds of the element.",
|
|
936
|
+
"minimum": 0
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
"type": "object",
|
|
940
|
+
"properties": {
|
|
941
|
+
"top": {
|
|
942
|
+
"type": "number",
|
|
943
|
+
"minimum": 0
|
|
944
|
+
},
|
|
945
|
+
"right": {
|
|
946
|
+
"type": "number",
|
|
947
|
+
"minimum": 0
|
|
948
|
+
},
|
|
949
|
+
"bottom": {
|
|
950
|
+
"type": "number",
|
|
951
|
+
"minimum": 0
|
|
952
|
+
},
|
|
953
|
+
"left": {
|
|
954
|
+
"type": "number",
|
|
955
|
+
"minimum": 0
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
]
|
|
960
|
+
}
|
|
961
|
+
},
|
|
962
|
+
"required": [
|
|
963
|
+
"selector"
|
|
964
|
+
],
|
|
965
|
+
"additionalProperties": false
|
|
922
966
|
}
|
|
923
967
|
},
|
|
924
968
|
"dynamicDefaults": {
|
|
@@ -947,6 +991,37 @@
|
|
|
947
991
|
"directory": "static/images",
|
|
948
992
|
"maxVariation": 10,
|
|
949
993
|
"overwrite": "byVariation"
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
"action": "saveScreenshot",
|
|
997
|
+
"path": "results.png",
|
|
998
|
+
"directory": "static/images",
|
|
999
|
+
"crop": {
|
|
1000
|
+
"selector": "#element"
|
|
1001
|
+
}
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
"action": "saveScreenshot",
|
|
1005
|
+
"path": "results.png",
|
|
1006
|
+
"directory": "static/images",
|
|
1007
|
+
"crop": {
|
|
1008
|
+
"selector": "#element",
|
|
1009
|
+
"padding": 10
|
|
1010
|
+
}
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"action": "saveScreenshot",
|
|
1014
|
+
"path": "results.png",
|
|
1015
|
+
"directory": "static/images",
|
|
1016
|
+
"crop": {
|
|
1017
|
+
"selector": "#element",
|
|
1018
|
+
"padding": {
|
|
1019
|
+
"top": 10,
|
|
1020
|
+
"right": 20,
|
|
1021
|
+
"bottom": 30,
|
|
1022
|
+
"left": 40
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
950
1025
|
}
|
|
951
1026
|
]
|
|
952
1027
|
},
|
|
@@ -775,6 +775,50 @@
|
|
|
775
775
|
"byVariation"
|
|
776
776
|
],
|
|
777
777
|
"default": "false"
|
|
778
|
+
},
|
|
779
|
+
"crop": {
|
|
780
|
+
"type": "object",
|
|
781
|
+
"description": "Crops the screenshot.",
|
|
782
|
+
"properties": {
|
|
783
|
+
"selector": {
|
|
784
|
+
"type": "string",
|
|
785
|
+
"description": "Selector of the element to crop the image to."
|
|
786
|
+
},
|
|
787
|
+
"padding": {
|
|
788
|
+
"oneOf": [
|
|
789
|
+
{
|
|
790
|
+
"type": "number",
|
|
791
|
+
"description": "Padding in pixels to add to the bounds of the element.",
|
|
792
|
+
"minimum": 0
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
"type": "object",
|
|
796
|
+
"properties": {
|
|
797
|
+
"top": {
|
|
798
|
+
"type": "number",
|
|
799
|
+
"minimum": 0
|
|
800
|
+
},
|
|
801
|
+
"right": {
|
|
802
|
+
"type": "number",
|
|
803
|
+
"minimum": 0
|
|
804
|
+
},
|
|
805
|
+
"bottom": {
|
|
806
|
+
"type": "number",
|
|
807
|
+
"minimum": 0
|
|
808
|
+
},
|
|
809
|
+
"left": {
|
|
810
|
+
"type": "number",
|
|
811
|
+
"minimum": 0
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
]
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
"required": [
|
|
819
|
+
"selector"
|
|
820
|
+
],
|
|
821
|
+
"additionalProperties": false
|
|
778
822
|
}
|
|
779
823
|
},
|
|
780
824
|
"dynamicDefaults": {
|
|
@@ -803,6 +847,37 @@
|
|
|
803
847
|
"directory": "static/images",
|
|
804
848
|
"maxVariation": 10,
|
|
805
849
|
"overwrite": "byVariation"
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"action": "saveScreenshot",
|
|
853
|
+
"path": "results.png",
|
|
854
|
+
"directory": "static/images",
|
|
855
|
+
"crop": {
|
|
856
|
+
"selector": "#element"
|
|
857
|
+
}
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
"action": "saveScreenshot",
|
|
861
|
+
"path": "results.png",
|
|
862
|
+
"directory": "static/images",
|
|
863
|
+
"crop": {
|
|
864
|
+
"selector": "#element",
|
|
865
|
+
"padding": 10
|
|
866
|
+
}
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"action": "saveScreenshot",
|
|
870
|
+
"path": "results.png",
|
|
871
|
+
"directory": "static/images",
|
|
872
|
+
"crop": {
|
|
873
|
+
"selector": "#element",
|
|
874
|
+
"padding": {
|
|
875
|
+
"top": 10,
|
|
876
|
+
"right": 20,
|
|
877
|
+
"bottom": 30,
|
|
878
|
+
"left": 40
|
|
879
|
+
}
|
|
880
|
+
}
|
|
806
881
|
}
|
|
807
882
|
]
|
|
808
883
|
},
|
package/src/schemas/schemas.json
CHANGED
|
@@ -1370,6 +1370,50 @@
|
|
|
1370
1370
|
"byVariation"
|
|
1371
1371
|
],
|
|
1372
1372
|
"default": "false"
|
|
1373
|
+
},
|
|
1374
|
+
"crop": {
|
|
1375
|
+
"type": "object",
|
|
1376
|
+
"description": "Crops the screenshot.",
|
|
1377
|
+
"properties": {
|
|
1378
|
+
"selector": {
|
|
1379
|
+
"type": "string",
|
|
1380
|
+
"description": "Selector of the element to crop the image to."
|
|
1381
|
+
},
|
|
1382
|
+
"padding": {
|
|
1383
|
+
"oneOf": [
|
|
1384
|
+
{
|
|
1385
|
+
"type": "number",
|
|
1386
|
+
"description": "Padding in pixels to add to the bounds of the element.",
|
|
1387
|
+
"minimum": 0
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
"type": "object",
|
|
1391
|
+
"properties": {
|
|
1392
|
+
"top": {
|
|
1393
|
+
"type": "number",
|
|
1394
|
+
"minimum": 0
|
|
1395
|
+
},
|
|
1396
|
+
"right": {
|
|
1397
|
+
"type": "number",
|
|
1398
|
+
"minimum": 0
|
|
1399
|
+
},
|
|
1400
|
+
"bottom": {
|
|
1401
|
+
"type": "number",
|
|
1402
|
+
"minimum": 0
|
|
1403
|
+
},
|
|
1404
|
+
"left": {
|
|
1405
|
+
"type": "number",
|
|
1406
|
+
"minimum": 0
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
]
|
|
1411
|
+
}
|
|
1412
|
+
},
|
|
1413
|
+
"required": [
|
|
1414
|
+
"selector"
|
|
1415
|
+
],
|
|
1416
|
+
"additionalProperties": false
|
|
1373
1417
|
}
|
|
1374
1418
|
},
|
|
1375
1419
|
"dynamicDefaults": {
|
|
@@ -1398,6 +1442,37 @@
|
|
|
1398
1442
|
"directory": "static/images",
|
|
1399
1443
|
"maxVariation": 10,
|
|
1400
1444
|
"overwrite": "byVariation"
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
"action": "saveScreenshot",
|
|
1448
|
+
"path": "results.png",
|
|
1449
|
+
"directory": "static/images",
|
|
1450
|
+
"crop": {
|
|
1451
|
+
"selector": "#element"
|
|
1452
|
+
}
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
"action": "saveScreenshot",
|
|
1456
|
+
"path": "results.png",
|
|
1457
|
+
"directory": "static/images",
|
|
1458
|
+
"crop": {
|
|
1459
|
+
"selector": "#element",
|
|
1460
|
+
"padding": 10
|
|
1461
|
+
}
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
"action": "saveScreenshot",
|
|
1465
|
+
"path": "results.png",
|
|
1466
|
+
"directory": "static/images",
|
|
1467
|
+
"crop": {
|
|
1468
|
+
"selector": "#element",
|
|
1469
|
+
"padding": {
|
|
1470
|
+
"top": 10,
|
|
1471
|
+
"right": 20,
|
|
1472
|
+
"bottom": 30,
|
|
1473
|
+
"left": 40
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1401
1476
|
}
|
|
1402
1477
|
]
|
|
1403
1478
|
},
|
|
@@ -3243,6 +3318,50 @@
|
|
|
3243
3318
|
"byVariation"
|
|
3244
3319
|
],
|
|
3245
3320
|
"default": "false"
|
|
3321
|
+
},
|
|
3322
|
+
"crop": {
|
|
3323
|
+
"type": "object",
|
|
3324
|
+
"description": "Crops the screenshot.",
|
|
3325
|
+
"properties": {
|
|
3326
|
+
"selector": {
|
|
3327
|
+
"type": "string",
|
|
3328
|
+
"description": "Selector of the element to crop the image to."
|
|
3329
|
+
},
|
|
3330
|
+
"padding": {
|
|
3331
|
+
"oneOf": [
|
|
3332
|
+
{
|
|
3333
|
+
"type": "number",
|
|
3334
|
+
"description": "Padding in pixels to add to the bounds of the element.",
|
|
3335
|
+
"minimum": 0
|
|
3336
|
+
},
|
|
3337
|
+
{
|
|
3338
|
+
"type": "object",
|
|
3339
|
+
"properties": {
|
|
3340
|
+
"top": {
|
|
3341
|
+
"type": "number",
|
|
3342
|
+
"minimum": 0
|
|
3343
|
+
},
|
|
3344
|
+
"right": {
|
|
3345
|
+
"type": "number",
|
|
3346
|
+
"minimum": 0
|
|
3347
|
+
},
|
|
3348
|
+
"bottom": {
|
|
3349
|
+
"type": "number",
|
|
3350
|
+
"minimum": 0
|
|
3351
|
+
},
|
|
3352
|
+
"left": {
|
|
3353
|
+
"type": "number",
|
|
3354
|
+
"minimum": 0
|
|
3355
|
+
}
|
|
3356
|
+
}
|
|
3357
|
+
}
|
|
3358
|
+
]
|
|
3359
|
+
}
|
|
3360
|
+
},
|
|
3361
|
+
"required": [
|
|
3362
|
+
"selector"
|
|
3363
|
+
],
|
|
3364
|
+
"additionalProperties": false
|
|
3246
3365
|
}
|
|
3247
3366
|
},
|
|
3248
3367
|
"dynamicDefaults": {
|
|
@@ -3271,6 +3390,37 @@
|
|
|
3271
3390
|
"directory": "static/images",
|
|
3272
3391
|
"maxVariation": 10,
|
|
3273
3392
|
"overwrite": "byVariation"
|
|
3393
|
+
},
|
|
3394
|
+
{
|
|
3395
|
+
"action": "saveScreenshot",
|
|
3396
|
+
"path": "results.png",
|
|
3397
|
+
"directory": "static/images",
|
|
3398
|
+
"crop": {
|
|
3399
|
+
"selector": "#element"
|
|
3400
|
+
}
|
|
3401
|
+
},
|
|
3402
|
+
{
|
|
3403
|
+
"action": "saveScreenshot",
|
|
3404
|
+
"path": "results.png",
|
|
3405
|
+
"directory": "static/images",
|
|
3406
|
+
"crop": {
|
|
3407
|
+
"selector": "#element",
|
|
3408
|
+
"padding": 10
|
|
3409
|
+
}
|
|
3410
|
+
},
|
|
3411
|
+
{
|
|
3412
|
+
"action": "saveScreenshot",
|
|
3413
|
+
"path": "results.png",
|
|
3414
|
+
"directory": "static/images",
|
|
3415
|
+
"crop": {
|
|
3416
|
+
"selector": "#element",
|
|
3417
|
+
"padding": {
|
|
3418
|
+
"top": 10,
|
|
3419
|
+
"right": 20,
|
|
3420
|
+
"bottom": 30,
|
|
3421
|
+
"left": 40
|
|
3422
|
+
}
|
|
3423
|
+
}
|
|
3274
3424
|
}
|
|
3275
3425
|
]
|
|
3276
3426
|
},
|
|
@@ -4321,6 +4471,50 @@
|
|
|
4321
4471
|
"byVariation"
|
|
4322
4472
|
],
|
|
4323
4473
|
"default": "false"
|
|
4474
|
+
},
|
|
4475
|
+
"crop": {
|
|
4476
|
+
"type": "object",
|
|
4477
|
+
"description": "Crops the screenshot.",
|
|
4478
|
+
"properties": {
|
|
4479
|
+
"selector": {
|
|
4480
|
+
"type": "string",
|
|
4481
|
+
"description": "Selector of the element to crop the image to."
|
|
4482
|
+
},
|
|
4483
|
+
"padding": {
|
|
4484
|
+
"oneOf": [
|
|
4485
|
+
{
|
|
4486
|
+
"type": "number",
|
|
4487
|
+
"description": "Padding in pixels to add to the bounds of the element.",
|
|
4488
|
+
"minimum": 0
|
|
4489
|
+
},
|
|
4490
|
+
{
|
|
4491
|
+
"type": "object",
|
|
4492
|
+
"properties": {
|
|
4493
|
+
"top": {
|
|
4494
|
+
"type": "number",
|
|
4495
|
+
"minimum": 0
|
|
4496
|
+
},
|
|
4497
|
+
"right": {
|
|
4498
|
+
"type": "number",
|
|
4499
|
+
"minimum": 0
|
|
4500
|
+
},
|
|
4501
|
+
"bottom": {
|
|
4502
|
+
"type": "number",
|
|
4503
|
+
"minimum": 0
|
|
4504
|
+
},
|
|
4505
|
+
"left": {
|
|
4506
|
+
"type": "number",
|
|
4507
|
+
"minimum": 0
|
|
4508
|
+
}
|
|
4509
|
+
}
|
|
4510
|
+
}
|
|
4511
|
+
]
|
|
4512
|
+
}
|
|
4513
|
+
},
|
|
4514
|
+
"required": [
|
|
4515
|
+
"selector"
|
|
4516
|
+
],
|
|
4517
|
+
"additionalProperties": false
|
|
4324
4518
|
}
|
|
4325
4519
|
},
|
|
4326
4520
|
"dynamicDefaults": {
|
|
@@ -4349,6 +4543,37 @@
|
|
|
4349
4543
|
"directory": "static/images",
|
|
4350
4544
|
"maxVariation": 10,
|
|
4351
4545
|
"overwrite": "byVariation"
|
|
4546
|
+
},
|
|
4547
|
+
{
|
|
4548
|
+
"action": "saveScreenshot",
|
|
4549
|
+
"path": "results.png",
|
|
4550
|
+
"directory": "static/images",
|
|
4551
|
+
"crop": {
|
|
4552
|
+
"selector": "#element"
|
|
4553
|
+
}
|
|
4554
|
+
},
|
|
4555
|
+
{
|
|
4556
|
+
"action": "saveScreenshot",
|
|
4557
|
+
"path": "results.png",
|
|
4558
|
+
"directory": "static/images",
|
|
4559
|
+
"crop": {
|
|
4560
|
+
"selector": "#element",
|
|
4561
|
+
"padding": 10
|
|
4562
|
+
}
|
|
4563
|
+
},
|
|
4564
|
+
{
|
|
4565
|
+
"action": "saveScreenshot",
|
|
4566
|
+
"path": "results.png",
|
|
4567
|
+
"directory": "static/images",
|
|
4568
|
+
"crop": {
|
|
4569
|
+
"selector": "#element",
|
|
4570
|
+
"padding": {
|
|
4571
|
+
"top": 10,
|
|
4572
|
+
"right": 20,
|
|
4573
|
+
"bottom": 30,
|
|
4574
|
+
"left": 40
|
|
4575
|
+
}
|
|
4576
|
+
}
|
|
4352
4577
|
}
|
|
4353
4578
|
]
|
|
4354
4579
|
},
|
|
@@ -5757,6 +5982,50 @@
|
|
|
5757
5982
|
"byVariation"
|
|
5758
5983
|
],
|
|
5759
5984
|
"default": "false"
|
|
5985
|
+
},
|
|
5986
|
+
"crop": {
|
|
5987
|
+
"type": "object",
|
|
5988
|
+
"description": "Crops the screenshot.",
|
|
5989
|
+
"properties": {
|
|
5990
|
+
"selector": {
|
|
5991
|
+
"type": "string",
|
|
5992
|
+
"description": "Selector of the element to crop the image to."
|
|
5993
|
+
},
|
|
5994
|
+
"padding": {
|
|
5995
|
+
"oneOf": [
|
|
5996
|
+
{
|
|
5997
|
+
"type": "number",
|
|
5998
|
+
"description": "Padding in pixels to add to the bounds of the element.",
|
|
5999
|
+
"minimum": 0
|
|
6000
|
+
},
|
|
6001
|
+
{
|
|
6002
|
+
"type": "object",
|
|
6003
|
+
"properties": {
|
|
6004
|
+
"top": {
|
|
6005
|
+
"type": "number",
|
|
6006
|
+
"minimum": 0
|
|
6007
|
+
},
|
|
6008
|
+
"right": {
|
|
6009
|
+
"type": "number",
|
|
6010
|
+
"minimum": 0
|
|
6011
|
+
},
|
|
6012
|
+
"bottom": {
|
|
6013
|
+
"type": "number",
|
|
6014
|
+
"minimum": 0
|
|
6015
|
+
},
|
|
6016
|
+
"left": {
|
|
6017
|
+
"type": "number",
|
|
6018
|
+
"minimum": 0
|
|
6019
|
+
}
|
|
6020
|
+
}
|
|
6021
|
+
}
|
|
6022
|
+
]
|
|
6023
|
+
}
|
|
6024
|
+
},
|
|
6025
|
+
"required": [
|
|
6026
|
+
"selector"
|
|
6027
|
+
],
|
|
6028
|
+
"additionalProperties": false
|
|
5760
6029
|
}
|
|
5761
6030
|
},
|
|
5762
6031
|
"dynamicDefaults": {
|
|
@@ -5785,6 +6054,37 @@
|
|
|
5785
6054
|
"directory": "static/images",
|
|
5786
6055
|
"maxVariation": 10,
|
|
5787
6056
|
"overwrite": "byVariation"
|
|
6057
|
+
},
|
|
6058
|
+
{
|
|
6059
|
+
"action": "saveScreenshot",
|
|
6060
|
+
"path": "results.png",
|
|
6061
|
+
"directory": "static/images",
|
|
6062
|
+
"crop": {
|
|
6063
|
+
"selector": "#element"
|
|
6064
|
+
}
|
|
6065
|
+
},
|
|
6066
|
+
{
|
|
6067
|
+
"action": "saveScreenshot",
|
|
6068
|
+
"path": "results.png",
|
|
6069
|
+
"directory": "static/images",
|
|
6070
|
+
"crop": {
|
|
6071
|
+
"selector": "#element",
|
|
6072
|
+
"padding": 10
|
|
6073
|
+
}
|
|
6074
|
+
},
|
|
6075
|
+
{
|
|
6076
|
+
"action": "saveScreenshot",
|
|
6077
|
+
"path": "results.png",
|
|
6078
|
+
"directory": "static/images",
|
|
6079
|
+
"crop": {
|
|
6080
|
+
"selector": "#element",
|
|
6081
|
+
"padding": {
|
|
6082
|
+
"top": 10,
|
|
6083
|
+
"right": 20,
|
|
6084
|
+
"bottom": 30,
|
|
6085
|
+
"left": 40
|
|
6086
|
+
}
|
|
6087
|
+
}
|
|
5788
6088
|
}
|
|
5789
6089
|
]
|
|
5790
6090
|
},
|
|
@@ -35,20 +35,44 @@
|
|
|
35
35
|
"overwrite": {
|
|
36
36
|
"type": "string",
|
|
37
37
|
"description": "If `true`, overwrites the existing screenshot at `path` if it exists.\nIf `byVariation`, overwrites the existing screenshot at `path` if the difference between the new screenshot and the existing screenshot is greater than `maxVariation`.",
|
|
38
|
-
"enum": [
|
|
39
|
-
"true",
|
|
40
|
-
"false",
|
|
41
|
-
"byVariation"
|
|
42
|
-
],
|
|
38
|
+
"enum": ["true", "false", "byVariation"],
|
|
43
39
|
"default": "false"
|
|
40
|
+
},
|
|
41
|
+
"crop": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"description": "Crops the screenshot.",
|
|
44
|
+
"properties": {
|
|
45
|
+
"selector": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"description": "Selector of the element to crop the image to."
|
|
48
|
+
},
|
|
49
|
+
"padding": {
|
|
50
|
+
"oneOf": [
|
|
51
|
+
{
|
|
52
|
+
"type": "number",
|
|
53
|
+
"description": "Padding in pixels to add to the bounds of the element.",
|
|
54
|
+
"minimum": 0
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"type": "object",
|
|
58
|
+
"properties": {
|
|
59
|
+
"top": { "type": "number", "minimum": 0 },
|
|
60
|
+
"right": { "type": "number", "minimum": 0 },
|
|
61
|
+
"bottom": { "type": "number", "minimum": 0 },
|
|
62
|
+
"left": { "type": "number", "minimum": 0 }
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"required": ["selector"],
|
|
69
|
+
"additionalProperties": false
|
|
44
70
|
}
|
|
45
71
|
},
|
|
46
72
|
"dynamicDefaults": {
|
|
47
73
|
"id": "uuid"
|
|
48
74
|
},
|
|
49
|
-
"required": [
|
|
50
|
-
"action"
|
|
51
|
-
],
|
|
75
|
+
"required": ["action"],
|
|
52
76
|
"additionalProperties": false,
|
|
53
77
|
"examples": [
|
|
54
78
|
{
|
|
@@ -69,6 +93,37 @@
|
|
|
69
93
|
"directory": "static/images",
|
|
70
94
|
"maxVariation": 10,
|
|
71
95
|
"overwrite": "byVariation"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"action": "saveScreenshot",
|
|
99
|
+
"path": "results.png",
|
|
100
|
+
"directory": "static/images",
|
|
101
|
+
"crop": {
|
|
102
|
+
"selector": "#element"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"action": "saveScreenshot",
|
|
107
|
+
"path": "results.png",
|
|
108
|
+
"directory": "static/images",
|
|
109
|
+
"crop": {
|
|
110
|
+
"selector": "#element",
|
|
111
|
+
"padding": 10
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"action": "saveScreenshot",
|
|
116
|
+
"path": "results.png",
|
|
117
|
+
"directory": "static/images",
|
|
118
|
+
"crop": {
|
|
119
|
+
"selector": "#element",
|
|
120
|
+
"padding": {
|
|
121
|
+
"top": 10,
|
|
122
|
+
"right": 20,
|
|
123
|
+
"bottom": 30,
|
|
124
|
+
"left": 40
|
|
125
|
+
}
|
|
126
|
+
}
|
|
72
127
|
}
|
|
73
128
|
]
|
|
74
|
-
}
|
|
129
|
+
}
|