doc-detective-common 1.2.9 → 1.2.11

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.
@@ -3,9 +3,10 @@
3
3
 
4
4
  name: Node.js Package
5
5
 
6
- on:
6
+ on:
7
7
  release:
8
8
  types: [created]
9
+ workflow_dispatch:
9
10
 
10
11
  jobs:
11
12
  build:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doc-detective-common",
3
- "version": "1.2.9",
3
+ "version": "1.2.11",
4
4
  "description": "Shared components for Doc Detective projects.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -307,6 +307,10 @@
307
307
  "type": "object",
308
308
  "additionalProperties": false,
309
309
  "properties": {
310
+ "name": {
311
+ "description": "Name of the file type.",
312
+ "type": "string"
313
+ },
310
314
  "extensions": {
311
315
  "description": "File extensions to support with this configuration.",
312
316
  "type": "array",
@@ -366,6 +370,28 @@
366
370
  }
367
371
  ]
368
372
  }
373
+ },
374
+ "actions": {
375
+ "description": "Actions that apply to the markup type.",
376
+ "type": "array",
377
+ "items": {
378
+ "oneOf": [
379
+ {
380
+ "type": "string",
381
+ "enum": [
382
+ "checkLink",
383
+ "find",
384
+ "goTo",
385
+ "httpRequest",
386
+ "runShell",
387
+ "saveScreenshot",
388
+ "setVariables",
389
+ "typeKeys",
390
+ "wait"
391
+ ]
392
+ }
393
+ ]
394
+ }
369
395
  }
370
396
  },
371
397
  "required": [
@@ -390,7 +416,156 @@
390
416
  }
391
417
  ]
392
418
  },
393
- "default": []
419
+ "default": [
420
+ {
421
+ "name": "Markdown",
422
+ "extensions": [
423
+ ".md",
424
+ ".mdx"
425
+ ],
426
+ "testStartStatementOpen": "[comment]: # (test start",
427
+ "testStartStatementClose": ")",
428
+ "testIgnoreStatement": "[comment]: # (test ignore)",
429
+ "testEndStatement": "[comment]: # (test end)",
430
+ "stepStatementOpen": "[comment]: # (step",
431
+ "stepStatementClose": ")",
432
+ "markup": [
433
+ {
434
+ "name": "onscreenText",
435
+ "regex": [
436
+ "\\*\\*.+?\\*\\*"
437
+ ],
438
+ "actions": [
439
+ "find"
440
+ ]
441
+ },
442
+ {
443
+ "name": "emphasis",
444
+ "regex": [
445
+ "(?<!\\*)\\*(?!\\*).+?(?<!\\*)\\*(?!\\*)"
446
+ ],
447
+ "actions": [
448
+ "find"
449
+ ]
450
+ },
451
+ {
452
+ "name": "image",
453
+ "regex": [
454
+ "!\\[.+?\\]\\(.+?\\)"
455
+ ],
456
+ "actions": [
457
+ "checkLink"
458
+ ]
459
+ },
460
+ {
461
+ "name": "hyperlink",
462
+ "regex": [
463
+ "(?<!!)\\[.+?\\]\\(.+?\\)"
464
+ ],
465
+ "actions": [
466
+ "checkLink",
467
+ "goTo",
468
+ "httpRequest"
469
+ ]
470
+ },
471
+ {
472
+ "name": "orderedList",
473
+ "regex": [
474
+ "(?<=\n) *?[0-9][0-9]?[0-9]?.\\s*.*"
475
+ ]
476
+ },
477
+ {
478
+ "name": "unorderedList",
479
+ "regex": [
480
+ "(?<=\n) *?\\*.\\s*.*",
481
+ "(?<=\n) *?-.\\s*.*"
482
+ ]
483
+ },
484
+ {
485
+ "name": "codeInline",
486
+ "regex": [
487
+ "(?<!`)`(?!`).+?(?<!`)`(?!`)"
488
+ ],
489
+ "actions": [
490
+ "runShell",
491
+ "setVariables",
492
+ "httpRequest"
493
+ ]
494
+ },
495
+ {
496
+ "name": "codeBlock",
497
+ "regex": [
498
+ "(?=(```))(\\w|\\W)*(?<=```)"
499
+ ],
500
+ "actions": [
501
+ "runShell",
502
+ "setVariables",
503
+ "httpRequest"
504
+ ]
505
+ },
506
+ {
507
+ "name": "interaction",
508
+ "regex": [
509
+ "[cC]lick",
510
+ "[tT]ap",
511
+ "[tT]ouch",
512
+ "[sS]elect",
513
+ "[cC]hoose",
514
+ "[tT]oggle",
515
+ "[eE]nable",
516
+ "[dD]isable",
517
+ "[tT]urn [oO][ff|n]",
518
+ "[tT]ype",
519
+ "[eE]nter",
520
+ "[sS]end",
521
+ "[aA]dd",
522
+ "[rR]emove",
523
+ "[dD]elete",
524
+ "[uU]pload",
525
+ "[dD]ownload",
526
+ "[sS]croll",
527
+ "[sS]earch",
528
+ "[fF]ilter",
529
+ "[sS]ort",
530
+ "[cC]opy",
531
+ "[pP]aste",
532
+ "[cC]ut",
533
+ "[rR]eplace",
534
+ "[cC]lear",
535
+ "[rR]efresh",
536
+ "[rR]evert",
537
+ "[rR]estore",
538
+ "[rR]eset",
539
+ "[lL]ogin",
540
+ "[lL]ogout",
541
+ "[sS]ign [iI]n",
542
+ "[sS]ign [oO]ut",
543
+ "[sS]ubmit",
544
+ "[cC]ancel",
545
+ "[cC]lose",
546
+ "[aA]ccept",
547
+ "[dD]ecline",
548
+ "[dD]eny",
549
+ "[rR]eject",
550
+ "[rR]etry",
551
+ "[rR]estart",
552
+ "[rR]esume"
553
+ ],
554
+ "actions": [
555
+ "checkLink",
556
+ "find",
557
+ "goTo",
558
+ "httpRequest",
559
+ "runShell",
560
+ "saveScreenshot",
561
+ "setVariables",
562
+ "typeKeys",
563
+ "wait"
564
+ ]
565
+ }
566
+ ]
567
+ }
568
+ ]
394
569
  },
395
570
  "integrations": {
396
571
  "description": "Options for connecting to external services.",
@@ -550,6 +725,7 @@
550
725
  },
551
726
  "fileTypes": [
552
727
  {
728
+ "name": "Markdown",
553
729
  "extensions": [
554
730
  ".md",
555
731
  ".mdx"
@@ -558,31 +734,45 @@
558
734
  "testStartStatementClose": ")",
559
735
  "testIgnoreStatement": "[comment]: # (test ignore)",
560
736
  "testEndStatement": "[comment]: # (test end)",
561
- "stepStatementOpen": "[comment]: # (action",
737
+ "stepStatementOpen": "[comment]: # (step",
562
738
  "stepStatementClose": ")",
563
739
  "markup": [
564
740
  {
565
741
  "name": "onscreenText",
566
742
  "regex": [
567
743
  "\\*\\*.+?\\*\\*"
744
+ ],
745
+ "actions": [
746
+ "find"
568
747
  ]
569
748
  },
570
749
  {
571
750
  "name": "emphasis",
572
751
  "regex": [
573
752
  "(?<!\\*)\\*(?!\\*).+?(?<!\\*)\\*(?!\\*)"
753
+ ],
754
+ "actions": [
755
+ "find"
574
756
  ]
575
757
  },
576
758
  {
577
759
  "name": "image",
578
760
  "regex": [
579
761
  "!\\[.+?\\]\\(.+?\\)"
762
+ ],
763
+ "actions": [
764
+ "checkLink"
580
765
  ]
581
766
  },
582
767
  {
583
768
  "name": "hyperlink",
584
769
  "regex": [
585
770
  "(?<!!)\\[.+?\\]\\(.+?\\)"
771
+ ],
772
+ "actions": [
773
+ "checkLink",
774
+ "goTo",
775
+ "httpRequest"
586
776
  ]
587
777
  },
588
778
  {
@@ -602,12 +792,22 @@
602
792
  "name": "codeInline",
603
793
  "regex": [
604
794
  "(?<!`)`(?!`).+?(?<!`)`(?!`)"
795
+ ],
796
+ "actions": [
797
+ "runShell",
798
+ "setVariables",
799
+ "httpRequest"
605
800
  ]
606
801
  },
607
802
  {
608
803
  "name": "codeBlock",
609
804
  "regex": [
610
805
  "(?=(```))(\\w|\\W)*(?<=```)"
806
+ ],
807
+ "actions": [
808
+ "runShell",
809
+ "setVariables",
810
+ "httpRequest"
611
811
  ]
612
812
  },
613
813
  {
@@ -623,7 +823,51 @@
623
823
  "[dD]isable",
624
824
  "[tT]urn [oO][ff|n]",
625
825
  "[tT]ype",
626
- "[eE]nter"
826
+ "[eE]nter",
827
+ "[sS]end",
828
+ "[aA]dd",
829
+ "[rR]emove",
830
+ "[dD]elete",
831
+ "[uU]pload",
832
+ "[dD]ownload",
833
+ "[sS]croll",
834
+ "[sS]earch",
835
+ "[fF]ilter",
836
+ "[sS]ort",
837
+ "[cC]opy",
838
+ "[pP]aste",
839
+ "[cC]ut",
840
+ "[rR]eplace",
841
+ "[cC]lear",
842
+ "[rR]efresh",
843
+ "[rR]evert",
844
+ "[rR]estore",
845
+ "[rR]eset",
846
+ "[lL]ogin",
847
+ "[lL]ogout",
848
+ "[sS]ign [iI]n",
849
+ "[sS]ign [oO]ut",
850
+ "[sS]ubmit",
851
+ "[cC]ancel",
852
+ "[cC]lose",
853
+ "[aA]ccept",
854
+ "[dD]ecline",
855
+ "[dD]eny",
856
+ "[rR]eject",
857
+ "[rR]etry",
858
+ "[rR]estart",
859
+ "[rR]esume"
860
+ ],
861
+ "actions": [
862
+ "checkLink",
863
+ "find",
864
+ "goTo",
865
+ "httpRequest",
866
+ "runShell",
867
+ "saveScreenshot",
868
+ "setVariables",
869
+ "typeKeys",
870
+ "wait"
627
871
  ]
628
872
  }
629
873
  ]
@@ -689,6 +933,7 @@
689
933
  },
690
934
  "fileTypes": [
691
935
  {
936
+ "name": "Markdown",
692
937
  "extensions": [
693
938
  ".md",
694
939
  ".mdx"
@@ -697,31 +942,45 @@
697
942
  "testStartStatementClose": ")",
698
943
  "testIgnoreStatement": "[comment]: # (test ignore)",
699
944
  "testEndStatement": "[comment]: # (test end)",
700
- "stepStatementOpen": "[comment]: # (action",
945
+ "stepStatementOpen": "[comment]: # (step",
701
946
  "stepStatementClose": ")",
702
947
  "markup": [
703
948
  {
704
949
  "name": "onscreenText",
705
950
  "regex": [
706
951
  "\\*\\*.+?\\*\\*"
952
+ ],
953
+ "actions": [
954
+ "find"
707
955
  ]
708
956
  },
709
957
  {
710
958
  "name": "emphasis",
711
959
  "regex": [
712
960
  "(?<!\\*)\\*(?!\\*).+?(?<!\\*)\\*(?!\\*)"
961
+ ],
962
+ "actions": [
963
+ "find"
713
964
  ]
714
965
  },
715
966
  {
716
967
  "name": "image",
717
968
  "regex": [
718
969
  "!\\[.+?\\]\\(.+?\\)"
970
+ ],
971
+ "actions": [
972
+ "checkLink"
719
973
  ]
720
974
  },
721
975
  {
722
976
  "name": "hyperlink",
723
977
  "regex": [
724
978
  "(?<!!)\\[.+?\\]\\(.+?\\)"
979
+ ],
980
+ "actions": [
981
+ "checkLink",
982
+ "goTo",
983
+ "httpRequest"
725
984
  ]
726
985
  },
727
986
  {
@@ -741,12 +1000,22 @@
741
1000
  "name": "codeInline",
742
1001
  "regex": [
743
1002
  "(?<!`)`(?!`).+?(?<!`)`(?!`)"
1003
+ ],
1004
+ "actions": [
1005
+ "runShell",
1006
+ "setVariables",
1007
+ "httpRequest"
744
1008
  ]
745
1009
  },
746
1010
  {
747
1011
  "name": "codeBlock",
748
1012
  "regex": [
749
1013
  "(?=(```))(\\w|\\W)*(?<=```)"
1014
+ ],
1015
+ "actions": [
1016
+ "runShell",
1017
+ "setVariables",
1018
+ "httpRequest"
750
1019
  ]
751
1020
  },
752
1021
  {
@@ -762,7 +1031,51 @@
762
1031
  "[dD]isable",
763
1032
  "[tT]urn [oO][ff|n]",
764
1033
  "[tT]ype",
765
- "[eE]nter"
1034
+ "[eE]nter",
1035
+ "[sS]end",
1036
+ "[aA]dd",
1037
+ "[rR]emove",
1038
+ "[dD]elete",
1039
+ "[uU]pload",
1040
+ "[dD]ownload",
1041
+ "[sS]croll",
1042
+ "[sS]earch",
1043
+ "[fF]ilter",
1044
+ "[sS]ort",
1045
+ "[cC]opy",
1046
+ "[pP]aste",
1047
+ "[cC]ut",
1048
+ "[rR]eplace",
1049
+ "[cC]lear",
1050
+ "[rR]efresh",
1051
+ "[rR]evert",
1052
+ "[rR]estore",
1053
+ "[rR]eset",
1054
+ "[lL]ogin",
1055
+ "[lL]ogout",
1056
+ "[sS]ign [iI]n",
1057
+ "[sS]ign [oO]ut",
1058
+ "[sS]ubmit",
1059
+ "[cC]ancel",
1060
+ "[cC]lose",
1061
+ "[aA]ccept",
1062
+ "[dD]ecline",
1063
+ "[dD]eny",
1064
+ "[rR]eject",
1065
+ "[rR]etry",
1066
+ "[rR]estart",
1067
+ "[rR]esume"
1068
+ ],
1069
+ "actions": [
1070
+ "checkLink",
1071
+ "find",
1072
+ "goTo",
1073
+ "httpRequest",
1074
+ "runShell",
1075
+ "saveScreenshot",
1076
+ "setVariables",
1077
+ "typeKeys",
1078
+ "wait"
766
1079
  ]
767
1080
  }
768
1081
  ]
@@ -23,7 +23,7 @@
23
23
  "timeout": {
24
24
  "type": "integer",
25
25
  "description": "Max duration in milliseconds to wait for the element to exist.",
26
- "default": 500
26
+ "default": 5000
27
27
  },
28
28
  "matchText": {
29
29
  "type": "string",
@@ -733,7 +733,7 @@
733
733
  "timeout": {
734
734
  "type": "integer",
735
735
  "description": "Max duration in milliseconds to wait for the element to exist.",
736
- "default": 500
736
+ "default": 5000
737
737
  },
738
738
  "matchText": {
739
739
  "type": "string",
@@ -825,7 +825,7 @@
825
825
  "duration": {
826
826
  "type": "number",
827
827
  "description": "Milliseconds to wait.",
828
- "default": 500
828
+ "default": 5000
829
829
  }
830
830
  },
831
831
  "dynamicDefaults": {
@@ -628,7 +628,7 @@
628
628
  "timeout": {
629
629
  "type": "integer",
630
630
  "description": "Max duration in milliseconds to wait for the element to exist.",
631
- "default": 500
631
+ "default": 5000
632
632
  },
633
633
  "matchText": {
634
634
  "type": "string",
@@ -720,7 +720,7 @@
720
720
  "duration": {
721
721
  "type": "number",
722
722
  "description": "Milliseconds to wait.",
723
- "default": 500
723
+ "default": 5000
724
724
  }
725
725
  },
726
726
  "dynamicDefaults": {
@@ -19,7 +19,7 @@
19
19
  "duration": {
20
20
  "type": "number",
21
21
  "description": "Milliseconds to wait.",
22
- "default": 500
22
+ "default": 5000
23
23
  }
24
24
  },
25
25
  "dynamicDefaults": {
@@ -140,6 +140,10 @@
140
140
  "type": "object",
141
141
  "additionalProperties": false,
142
142
  "properties": {
143
+ "name": {
144
+ "description": "Name of the file type.",
145
+ "type": "string"
146
+ },
143
147
  "extensions": {
144
148
  "description": "File extensions to support with this configuration.",
145
149
  "type": "array",
@@ -199,6 +203,28 @@
199
203
  }
200
204
  ]
201
205
  }
206
+ },
207
+ "actions": {
208
+ "description": "Actions that apply to the markup type.",
209
+ "type": "array",
210
+ "items": {
211
+ "oneOf": [
212
+ {
213
+ "type": "string",
214
+ "enum": [
215
+ "checkLink",
216
+ "find",
217
+ "goTo",
218
+ "httpRequest",
219
+ "runShell",
220
+ "saveScreenshot",
221
+ "setVariables",
222
+ "typeKeys",
223
+ "wait"
224
+ ]
225
+ }
226
+ ]
227
+ }
202
228
  }
203
229
  },
204
230
  "required": ["name", "regex"]
@@ -220,7 +246,118 @@
220
246
  }
221
247
  ]
222
248
  },
223
- "default": []
249
+ "default": [
250
+ {
251
+ "name": "Markdown",
252
+ "extensions": [".md", ".mdx"],
253
+ "testStartStatementOpen": "[comment]: # (test start",
254
+ "testStartStatementClose": ")",
255
+ "testIgnoreStatement": "[comment]: # (test ignore)",
256
+ "testEndStatement": "[comment]: # (test end)",
257
+ "stepStatementOpen": "[comment]: # (step",
258
+ "stepStatementClose": ")",
259
+ "markup": [
260
+ {
261
+ "name": "onscreenText",
262
+ "regex": ["\\*\\*.+?\\*\\*"],
263
+ "actions": ["find"]
264
+ },
265
+ {
266
+ "name": "emphasis",
267
+ "regex": ["(?<!\\*)\\*(?!\\*).+?(?<!\\*)\\*(?!\\*)"],
268
+ "actions": ["find"]
269
+ },
270
+ {
271
+ "name": "image",
272
+ "regex": ["!\\[.+?\\]\\(.+?\\)"],
273
+ "actions": ["checkLink"]
274
+ },
275
+ {
276
+ "name": "hyperlink",
277
+ "regex": ["(?<!!)\\[.+?\\]\\(.+?\\)"],
278
+ "actions": ["checkLink", "goTo", "httpRequest"]
279
+ },
280
+ {
281
+ "name": "orderedList",
282
+ "regex": ["(?<=\n) *?[0-9][0-9]?[0-9]?.\\s*.*"]
283
+ },
284
+ {
285
+ "name": "unorderedList",
286
+ "regex": ["(?<=\n) *?\\*.\\s*.*", "(?<=\n) *?-.\\s*.*"]
287
+ },
288
+ {
289
+ "name": "codeInline",
290
+ "regex": ["(?<!`)`(?!`).+?(?<!`)`(?!`)"],
291
+ "actions": ["runShell", "setVariables", "httpRequest"]
292
+ },
293
+ {
294
+ "name": "codeBlock",
295
+ "regex": ["(?=(```))(\\w|\\W)*(?<=```)"],
296
+ "actions": ["runShell", "setVariables", "httpRequest"]
297
+ },
298
+ {
299
+ "name": "interaction",
300
+ "regex": [
301
+ "[cC]lick",
302
+ "[tT]ap",
303
+ "[tT]ouch",
304
+ "[sS]elect",
305
+ "[cC]hoose",
306
+ "[tT]oggle",
307
+ "[eE]nable",
308
+ "[dD]isable",
309
+ "[tT]urn [oO][ff|n]",
310
+ "[tT]ype",
311
+ "[eE]nter",
312
+ "[sS]end",
313
+ "[aA]dd",
314
+ "[rR]emove",
315
+ "[dD]elete",
316
+ "[uU]pload",
317
+ "[dD]ownload",
318
+ "[sS]croll",
319
+ "[sS]earch",
320
+ "[fF]ilter",
321
+ "[sS]ort",
322
+ "[cC]opy",
323
+ "[pP]aste",
324
+ "[cC]ut",
325
+ "[rR]eplace",
326
+ "[cC]lear",
327
+ "[rR]efresh",
328
+ "[rR]evert",
329
+ "[rR]estore",
330
+ "[rR]eset",
331
+ "[lL]ogin",
332
+ "[lL]ogout",
333
+ "[sS]ign [iI]n",
334
+ "[sS]ign [oO]ut",
335
+ "[sS]ubmit",
336
+ "[cC]ancel",
337
+ "[cC]lose",
338
+ "[aA]ccept",
339
+ "[dD]ecline",
340
+ "[dD]eny",
341
+ "[rR]eject",
342
+ "[rR]etry",
343
+ "[rR]estart",
344
+ "[rR]esume"
345
+ ],
346
+ "actions": [
347
+ "checkLink",
348
+ "find",
349
+ "goTo",
350
+ "httpRequest",
351
+ "runShell",
352
+ "saveScreenshot",
353
+ "setVariables",
354
+ "typeKeys",
355
+ "wait"
356
+ ]
357
+ }
358
+ ]
359
+ }
360
+ ]
224
361
  },
225
362
  "integrations": {
226
363
  "description": "Options for connecting to external services.",
@@ -364,29 +501,34 @@
364
501
  },
365
502
  "fileTypes": [
366
503
  {
504
+ "name": "Markdown",
367
505
  "extensions": [".md", ".mdx"],
368
506
  "testStartStatementOpen": "[comment]: # (test start",
369
507
  "testStartStatementClose": ")",
370
508
  "testIgnoreStatement": "[comment]: # (test ignore)",
371
509
  "testEndStatement": "[comment]: # (test end)",
372
- "stepStatementOpen": "[comment]: # (action",
510
+ "stepStatementOpen": "[comment]: # (step",
373
511
  "stepStatementClose": ")",
374
512
  "markup": [
375
513
  {
376
514
  "name": "onscreenText",
377
- "regex": ["\\*\\*.+?\\*\\*"]
515
+ "regex": ["\\*\\*.+?\\*\\*"],
516
+ "actions": ["find"]
378
517
  },
379
518
  {
380
519
  "name": "emphasis",
381
- "regex": ["(?<!\\*)\\*(?!\\*).+?(?<!\\*)\\*(?!\\*)"]
520
+ "regex": ["(?<!\\*)\\*(?!\\*).+?(?<!\\*)\\*(?!\\*)"],
521
+ "actions": ["find"]
382
522
  },
383
523
  {
384
524
  "name": "image",
385
- "regex": ["!\\[.+?\\]\\(.+?\\)"]
525
+ "regex": ["!\\[.+?\\]\\(.+?\\)"],
526
+ "actions": ["checkLink"]
386
527
  },
387
528
  {
388
529
  "name": "hyperlink",
389
- "regex": ["(?<!!)\\[.+?\\]\\(.+?\\)"]
530
+ "regex": ["(?<!!)\\[.+?\\]\\(.+?\\)"],
531
+ "actions": ["checkLink", "goTo", "httpRequest"]
390
532
  },
391
533
  {
392
534
  "name": "orderedList",
@@ -398,11 +540,13 @@
398
540
  },
399
541
  {
400
542
  "name": "codeInline",
401
- "regex": ["(?<!`)`(?!`).+?(?<!`)`(?!`)"]
543
+ "regex": ["(?<!`)`(?!`).+?(?<!`)`(?!`)"],
544
+ "actions": ["runShell", "setVariables", "httpRequest"]
402
545
  },
403
546
  {
404
547
  "name": "codeBlock",
405
- "regex": ["(?=(```))(\\w|\\W)*(?<=```)"]
548
+ "regex": ["(?=(```))(\\w|\\W)*(?<=```)"],
549
+ "actions": ["runShell", "setVariables", "httpRequest"]
406
550
  },
407
551
  {
408
552
  "name": "interaction",
@@ -417,7 +561,51 @@
417
561
  "[dD]isable",
418
562
  "[tT]urn [oO][ff|n]",
419
563
  "[tT]ype",
420
- "[eE]nter"
564
+ "[eE]nter",
565
+ "[sS]end",
566
+ "[aA]dd",
567
+ "[rR]emove",
568
+ "[dD]elete",
569
+ "[uU]pload",
570
+ "[dD]ownload",
571
+ "[sS]croll",
572
+ "[sS]earch",
573
+ "[fF]ilter",
574
+ "[sS]ort",
575
+ "[cC]opy",
576
+ "[pP]aste",
577
+ "[cC]ut",
578
+ "[rR]eplace",
579
+ "[cC]lear",
580
+ "[rR]efresh",
581
+ "[rR]evert",
582
+ "[rR]estore",
583
+ "[rR]eset",
584
+ "[lL]ogin",
585
+ "[lL]ogout",
586
+ "[sS]ign [iI]n",
587
+ "[sS]ign [oO]ut",
588
+ "[sS]ubmit",
589
+ "[cC]ancel",
590
+ "[cC]lose",
591
+ "[aA]ccept",
592
+ "[dD]ecline",
593
+ "[dD]eny",
594
+ "[rR]eject",
595
+ "[rR]etry",
596
+ "[rR]estart",
597
+ "[rR]esume"
598
+ ],
599
+ "actions": [
600
+ "checkLink",
601
+ "find",
602
+ "goTo",
603
+ "httpRequest",
604
+ "runShell",
605
+ "saveScreenshot",
606
+ "setVariables",
607
+ "typeKeys",
608
+ "wait"
421
609
  ]
422
610
  }
423
611
  ]
@@ -467,29 +655,34 @@
467
655
  },
468
656
  "fileTypes": [
469
657
  {
658
+ "name": "Markdown",
470
659
  "extensions": [".md", ".mdx"],
471
660
  "testStartStatementOpen": "[comment]: # (test start",
472
661
  "testStartStatementClose": ")",
473
662
  "testIgnoreStatement": "[comment]: # (test ignore)",
474
663
  "testEndStatement": "[comment]: # (test end)",
475
- "stepStatementOpen": "[comment]: # (action",
664
+ "stepStatementOpen": "[comment]: # (step",
476
665
  "stepStatementClose": ")",
477
666
  "markup": [
478
667
  {
479
668
  "name": "onscreenText",
480
- "regex": ["\\*\\*.+?\\*\\*"]
669
+ "regex": ["\\*\\*.+?\\*\\*"],
670
+ "actions": ["find"]
481
671
  },
482
672
  {
483
673
  "name": "emphasis",
484
- "regex": ["(?<!\\*)\\*(?!\\*).+?(?<!\\*)\\*(?!\\*)"]
674
+ "regex": ["(?<!\\*)\\*(?!\\*).+?(?<!\\*)\\*(?!\\*)"],
675
+ "actions": ["find"]
485
676
  },
486
677
  {
487
678
  "name": "image",
488
- "regex": ["!\\[.+?\\]\\(.+?\\)"]
679
+ "regex": ["!\\[.+?\\]\\(.+?\\)"],
680
+ "actions": ["checkLink"]
489
681
  },
490
682
  {
491
683
  "name": "hyperlink",
492
- "regex": ["(?<!!)\\[.+?\\]\\(.+?\\)"]
684
+ "regex": ["(?<!!)\\[.+?\\]\\(.+?\\)"],
685
+ "actions": ["checkLink", "goTo", "httpRequest"]
493
686
  },
494
687
  {
495
688
  "name": "orderedList",
@@ -501,11 +694,13 @@
501
694
  },
502
695
  {
503
696
  "name": "codeInline",
504
- "regex": ["(?<!`)`(?!`).+?(?<!`)`(?!`)"]
697
+ "regex": ["(?<!`)`(?!`).+?(?<!`)`(?!`)"],
698
+ "actions": ["runShell", "setVariables", "httpRequest"]
505
699
  },
506
700
  {
507
701
  "name": "codeBlock",
508
- "regex": ["(?=(```))(\\w|\\W)*(?<=```)"]
702
+ "regex": ["(?=(```))(\\w|\\W)*(?<=```)"],
703
+ "actions": ["runShell", "setVariables", "httpRequest"]
509
704
  },
510
705
  {
511
706
  "name": "interaction",
@@ -520,7 +715,51 @@
520
715
  "[dD]isable",
521
716
  "[tT]urn [oO][ff|n]",
522
717
  "[tT]ype",
523
- "[eE]nter"
718
+ "[eE]nter",
719
+ "[sS]end",
720
+ "[aA]dd",
721
+ "[rR]emove",
722
+ "[dD]elete",
723
+ "[uU]pload",
724
+ "[dD]ownload",
725
+ "[sS]croll",
726
+ "[sS]earch",
727
+ "[fF]ilter",
728
+ "[sS]ort",
729
+ "[cC]opy",
730
+ "[pP]aste",
731
+ "[cC]ut",
732
+ "[rR]eplace",
733
+ "[cC]lear",
734
+ "[rR]efresh",
735
+ "[rR]evert",
736
+ "[rR]estore",
737
+ "[rR]eset",
738
+ "[lL]ogin",
739
+ "[lL]ogout",
740
+ "[sS]ign [iI]n",
741
+ "[sS]ign [oO]ut",
742
+ "[sS]ubmit",
743
+ "[cC]ancel",
744
+ "[cC]lose",
745
+ "[aA]ccept",
746
+ "[dD]ecline",
747
+ "[dD]eny",
748
+ "[rR]eject",
749
+ "[rR]etry",
750
+ "[rR]estart",
751
+ "[rR]esume"
752
+ ],
753
+ "actions": [
754
+ "checkLink",
755
+ "find",
756
+ "goTo",
757
+ "httpRequest",
758
+ "runShell",
759
+ "saveScreenshot",
760
+ "setVariables",
761
+ "typeKeys",
762
+ "wait"
524
763
  ]
525
764
  }
526
765
  ]
@@ -23,7 +23,7 @@
23
23
  "timeout": {
24
24
  "type": "integer",
25
25
  "description": "Max duration in milliseconds to wait for the element to exist.",
26
- "default": 500
26
+ "default": 5000
27
27
  },
28
28
  "matchText": {
29
29
  "type": "string",
@@ -19,7 +19,7 @@
19
19
  "duration": {
20
20
  "type": "number",
21
21
  "description": "Milliseconds to wait.",
22
- "default": 500
22
+ "default": 5000
23
23
  }
24
24
  },
25
25
  "dynamicDefaults": {