@softure-ai/marketing-kit 0.1.10 → 0.1.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.
- package/CHANGELOG.md +12 -0
- package/README.md +47 -7
- package/dist/config/schema.d.ts +1832 -280
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +5 -1
- package/dist/config/schema.js.map +1 -1
- package/dist/config/shot-steps.d.ts +464 -0
- package/dist/config/shot-steps.d.ts.map +1 -1
- package/dist/config/shot-steps.js +23 -2
- package/dist/config/shot-steps.js.map +1 -1
- package/dist/screenshot/gates.d.ts +15 -6
- package/dist/screenshot/gates.d.ts.map +1 -1
- package/dist/screenshot/gates.js +24 -7
- package/dist/screenshot/gates.js.map +1 -1
- package/dist/screenshot/screenshot.d.ts.map +1 -1
- package/dist/screenshot/screenshot.js +70 -17
- package/dist/screenshot/screenshot.js.map +1 -1
- package/dist/screenshot/steps.d.ts +3 -2
- package/dist/screenshot/steps.d.ts.map +1 -1
- package/dist/screenshot/steps.js +46 -2
- package/dist/screenshot/steps.js.map +1 -1
- package/package.json +1 -1
- package/schema/marketing.schema.json +1436 -198
- package/src/config/schema.ts +5 -1
- package/src/config/shot-steps.ts +23 -2
- package/src/screenshot/gates.ts +24 -7
- package/src/screenshot/screenshot.ts +73 -17
- package/src/screenshot/steps.ts +44 -3
|
@@ -3499,12 +3499,511 @@
|
|
|
3499
3499
|
"key"
|
|
3500
3500
|
],
|
|
3501
3501
|
"additionalProperties": false
|
|
3502
|
+
},
|
|
3503
|
+
{
|
|
3504
|
+
"type": "object",
|
|
3505
|
+
"properties": {
|
|
3506
|
+
"do": {
|
|
3507
|
+
"type": "string",
|
|
3508
|
+
"const": "open",
|
|
3509
|
+
"description": "Opens every matching <details> element (nth picks one), e.g. every disclosure of a card; fails when a match is not a <details> or does not stay open."
|
|
3510
|
+
},
|
|
3511
|
+
"target": {
|
|
3512
|
+
"description": "The <details> elements, as a locator descriptor with exactly one of role, text, label, testId, css; every match is opened.",
|
|
3513
|
+
"type": "object",
|
|
3514
|
+
"properties": {
|
|
3515
|
+
"role": {
|
|
3516
|
+
"description": "Find by ARIA role (Playwright getByRole), e.g. button; narrow it with name.",
|
|
3517
|
+
"type": "string",
|
|
3518
|
+
"enum": [
|
|
3519
|
+
"alert",
|
|
3520
|
+
"alertdialog",
|
|
3521
|
+
"application",
|
|
3522
|
+
"article",
|
|
3523
|
+
"banner",
|
|
3524
|
+
"blockquote",
|
|
3525
|
+
"button",
|
|
3526
|
+
"caption",
|
|
3527
|
+
"cell",
|
|
3528
|
+
"checkbox",
|
|
3529
|
+
"code",
|
|
3530
|
+
"columnheader",
|
|
3531
|
+
"combobox",
|
|
3532
|
+
"complementary",
|
|
3533
|
+
"contentinfo",
|
|
3534
|
+
"definition",
|
|
3535
|
+
"deletion",
|
|
3536
|
+
"dialog",
|
|
3537
|
+
"directory",
|
|
3538
|
+
"document",
|
|
3539
|
+
"emphasis",
|
|
3540
|
+
"feed",
|
|
3541
|
+
"figure",
|
|
3542
|
+
"form",
|
|
3543
|
+
"generic",
|
|
3544
|
+
"grid",
|
|
3545
|
+
"gridcell",
|
|
3546
|
+
"group",
|
|
3547
|
+
"heading",
|
|
3548
|
+
"img",
|
|
3549
|
+
"insertion",
|
|
3550
|
+
"link",
|
|
3551
|
+
"list",
|
|
3552
|
+
"listbox",
|
|
3553
|
+
"listitem",
|
|
3554
|
+
"log",
|
|
3555
|
+
"main",
|
|
3556
|
+
"marquee",
|
|
3557
|
+
"math",
|
|
3558
|
+
"meter",
|
|
3559
|
+
"menu",
|
|
3560
|
+
"menubar",
|
|
3561
|
+
"menuitem",
|
|
3562
|
+
"menuitemcheckbox",
|
|
3563
|
+
"menuitemradio",
|
|
3564
|
+
"navigation",
|
|
3565
|
+
"none",
|
|
3566
|
+
"note",
|
|
3567
|
+
"option",
|
|
3568
|
+
"paragraph",
|
|
3569
|
+
"presentation",
|
|
3570
|
+
"progressbar",
|
|
3571
|
+
"radio",
|
|
3572
|
+
"radiogroup",
|
|
3573
|
+
"region",
|
|
3574
|
+
"row",
|
|
3575
|
+
"rowgroup",
|
|
3576
|
+
"rowheader",
|
|
3577
|
+
"scrollbar",
|
|
3578
|
+
"search",
|
|
3579
|
+
"searchbox",
|
|
3580
|
+
"separator",
|
|
3581
|
+
"slider",
|
|
3582
|
+
"spinbutton",
|
|
3583
|
+
"status",
|
|
3584
|
+
"strong",
|
|
3585
|
+
"subscript",
|
|
3586
|
+
"superscript",
|
|
3587
|
+
"switch",
|
|
3588
|
+
"tab",
|
|
3589
|
+
"table",
|
|
3590
|
+
"tablist",
|
|
3591
|
+
"tabpanel",
|
|
3592
|
+
"term",
|
|
3593
|
+
"textbox",
|
|
3594
|
+
"time",
|
|
3595
|
+
"timer",
|
|
3596
|
+
"toolbar",
|
|
3597
|
+
"tooltip",
|
|
3598
|
+
"tree",
|
|
3599
|
+
"treegrid",
|
|
3600
|
+
"treeitem"
|
|
3601
|
+
]
|
|
3602
|
+
},
|
|
3603
|
+
"name": {
|
|
3604
|
+
"description": "The accessible name, with role: a string or { regex, flags }.",
|
|
3605
|
+
"anyOf": [
|
|
3606
|
+
{
|
|
3607
|
+
"type": "string",
|
|
3608
|
+
"minLength": 1
|
|
3609
|
+
},
|
|
3610
|
+
{
|
|
3611
|
+
"type": "object",
|
|
3612
|
+
"properties": {
|
|
3613
|
+
"regex": {
|
|
3614
|
+
"type": "string",
|
|
3615
|
+
"minLength": 1,
|
|
3616
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
3617
|
+
},
|
|
3618
|
+
"flags": {
|
|
3619
|
+
"default": "",
|
|
3620
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
3621
|
+
"type": "string",
|
|
3622
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
3623
|
+
}
|
|
3624
|
+
},
|
|
3625
|
+
"required": [
|
|
3626
|
+
"regex"
|
|
3627
|
+
],
|
|
3628
|
+
"additionalProperties": false
|
|
3629
|
+
}
|
|
3630
|
+
]
|
|
3631
|
+
},
|
|
3632
|
+
"text": {
|
|
3633
|
+
"description": "Find by visible text (Playwright getByText): a substring, or { regex, flags }.",
|
|
3634
|
+
"anyOf": [
|
|
3635
|
+
{
|
|
3636
|
+
"type": "string",
|
|
3637
|
+
"minLength": 1
|
|
3638
|
+
},
|
|
3639
|
+
{
|
|
3640
|
+
"type": "object",
|
|
3641
|
+
"properties": {
|
|
3642
|
+
"regex": {
|
|
3643
|
+
"type": "string",
|
|
3644
|
+
"minLength": 1,
|
|
3645
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
3646
|
+
},
|
|
3647
|
+
"flags": {
|
|
3648
|
+
"default": "",
|
|
3649
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
3650
|
+
"type": "string",
|
|
3651
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
3652
|
+
}
|
|
3653
|
+
},
|
|
3654
|
+
"required": [
|
|
3655
|
+
"regex"
|
|
3656
|
+
],
|
|
3657
|
+
"additionalProperties": false
|
|
3658
|
+
}
|
|
3659
|
+
]
|
|
3660
|
+
},
|
|
3661
|
+
"label": {
|
|
3662
|
+
"description": "Find a form control by its label (Playwright getByLabel): a substring, or { regex, flags }.",
|
|
3663
|
+
"anyOf": [
|
|
3664
|
+
{
|
|
3665
|
+
"type": "string",
|
|
3666
|
+
"minLength": 1
|
|
3667
|
+
},
|
|
3668
|
+
{
|
|
3669
|
+
"type": "object",
|
|
3670
|
+
"properties": {
|
|
3671
|
+
"regex": {
|
|
3672
|
+
"type": "string",
|
|
3673
|
+
"minLength": 1,
|
|
3674
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
3675
|
+
},
|
|
3676
|
+
"flags": {
|
|
3677
|
+
"default": "",
|
|
3678
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
3679
|
+
"type": "string",
|
|
3680
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
3681
|
+
}
|
|
3682
|
+
},
|
|
3683
|
+
"required": [
|
|
3684
|
+
"regex"
|
|
3685
|
+
],
|
|
3686
|
+
"additionalProperties": false
|
|
3687
|
+
}
|
|
3688
|
+
]
|
|
3689
|
+
},
|
|
3690
|
+
"testId": {
|
|
3691
|
+
"description": "Find by data-testid (Playwright getByTestId).",
|
|
3692
|
+
"type": "string",
|
|
3693
|
+
"minLength": 1
|
|
3694
|
+
},
|
|
3695
|
+
"css": {
|
|
3696
|
+
"description": "Find by CSS selector; narrow it with hasText.",
|
|
3697
|
+
"type": "string",
|
|
3698
|
+
"minLength": 1
|
|
3699
|
+
},
|
|
3700
|
+
"hasText": {
|
|
3701
|
+
"description": "Only elements containing this text, with css.",
|
|
3702
|
+
"anyOf": [
|
|
3703
|
+
{
|
|
3704
|
+
"type": "string",
|
|
3705
|
+
"minLength": 1
|
|
3706
|
+
},
|
|
3707
|
+
{
|
|
3708
|
+
"type": "object",
|
|
3709
|
+
"properties": {
|
|
3710
|
+
"regex": {
|
|
3711
|
+
"type": "string",
|
|
3712
|
+
"minLength": 1,
|
|
3713
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
3714
|
+
},
|
|
3715
|
+
"flags": {
|
|
3716
|
+
"default": "",
|
|
3717
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
3718
|
+
"type": "string",
|
|
3719
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
3720
|
+
}
|
|
3721
|
+
},
|
|
3722
|
+
"required": [
|
|
3723
|
+
"regex"
|
|
3724
|
+
],
|
|
3725
|
+
"additionalProperties": false
|
|
3726
|
+
}
|
|
3727
|
+
]
|
|
3728
|
+
},
|
|
3729
|
+
"exact": {
|
|
3730
|
+
"description": "Whole and case-sensitive match of a string name, text or label (default false).",
|
|
3731
|
+
"type": "boolean"
|
|
3732
|
+
},
|
|
3733
|
+
"nth": {
|
|
3734
|
+
"description": "The n-th match (0 = the first); without it, a locator that matches several elements fails.",
|
|
3735
|
+
"type": "integer",
|
|
3736
|
+
"minimum": 0,
|
|
3737
|
+
"maximum": 9007199254740991
|
|
3738
|
+
}
|
|
3739
|
+
},
|
|
3740
|
+
"additionalProperties": false
|
|
3741
|
+
}
|
|
3742
|
+
},
|
|
3743
|
+
"required": [
|
|
3744
|
+
"do",
|
|
3745
|
+
"target"
|
|
3746
|
+
],
|
|
3747
|
+
"additionalProperties": false
|
|
3748
|
+
},
|
|
3749
|
+
{
|
|
3750
|
+
"type": "object",
|
|
3751
|
+
"properties": {
|
|
3752
|
+
"do": {
|
|
3753
|
+
"type": "string",
|
|
3754
|
+
"const": "hide",
|
|
3755
|
+
"description": "Hides every match but the last keepLast (display: none), e.g. all but the last three columns of a horizontally scrolling chart."
|
|
3756
|
+
},
|
|
3757
|
+
"target": {
|
|
3758
|
+
"description": "The elements, as a locator descriptor with exactly one of role, text, label, testId, css; every match counts.",
|
|
3759
|
+
"type": "object",
|
|
3760
|
+
"properties": {
|
|
3761
|
+
"role": {
|
|
3762
|
+
"description": "Find by ARIA role (Playwright getByRole), e.g. button; narrow it with name.",
|
|
3763
|
+
"type": "string",
|
|
3764
|
+
"enum": [
|
|
3765
|
+
"alert",
|
|
3766
|
+
"alertdialog",
|
|
3767
|
+
"application",
|
|
3768
|
+
"article",
|
|
3769
|
+
"banner",
|
|
3770
|
+
"blockquote",
|
|
3771
|
+
"button",
|
|
3772
|
+
"caption",
|
|
3773
|
+
"cell",
|
|
3774
|
+
"checkbox",
|
|
3775
|
+
"code",
|
|
3776
|
+
"columnheader",
|
|
3777
|
+
"combobox",
|
|
3778
|
+
"complementary",
|
|
3779
|
+
"contentinfo",
|
|
3780
|
+
"definition",
|
|
3781
|
+
"deletion",
|
|
3782
|
+
"dialog",
|
|
3783
|
+
"directory",
|
|
3784
|
+
"document",
|
|
3785
|
+
"emphasis",
|
|
3786
|
+
"feed",
|
|
3787
|
+
"figure",
|
|
3788
|
+
"form",
|
|
3789
|
+
"generic",
|
|
3790
|
+
"grid",
|
|
3791
|
+
"gridcell",
|
|
3792
|
+
"group",
|
|
3793
|
+
"heading",
|
|
3794
|
+
"img",
|
|
3795
|
+
"insertion",
|
|
3796
|
+
"link",
|
|
3797
|
+
"list",
|
|
3798
|
+
"listbox",
|
|
3799
|
+
"listitem",
|
|
3800
|
+
"log",
|
|
3801
|
+
"main",
|
|
3802
|
+
"marquee",
|
|
3803
|
+
"math",
|
|
3804
|
+
"meter",
|
|
3805
|
+
"menu",
|
|
3806
|
+
"menubar",
|
|
3807
|
+
"menuitem",
|
|
3808
|
+
"menuitemcheckbox",
|
|
3809
|
+
"menuitemradio",
|
|
3810
|
+
"navigation",
|
|
3811
|
+
"none",
|
|
3812
|
+
"note",
|
|
3813
|
+
"option",
|
|
3814
|
+
"paragraph",
|
|
3815
|
+
"presentation",
|
|
3816
|
+
"progressbar",
|
|
3817
|
+
"radio",
|
|
3818
|
+
"radiogroup",
|
|
3819
|
+
"region",
|
|
3820
|
+
"row",
|
|
3821
|
+
"rowgroup",
|
|
3822
|
+
"rowheader",
|
|
3823
|
+
"scrollbar",
|
|
3824
|
+
"search",
|
|
3825
|
+
"searchbox",
|
|
3826
|
+
"separator",
|
|
3827
|
+
"slider",
|
|
3828
|
+
"spinbutton",
|
|
3829
|
+
"status",
|
|
3830
|
+
"strong",
|
|
3831
|
+
"subscript",
|
|
3832
|
+
"superscript",
|
|
3833
|
+
"switch",
|
|
3834
|
+
"tab",
|
|
3835
|
+
"table",
|
|
3836
|
+
"tablist",
|
|
3837
|
+
"tabpanel",
|
|
3838
|
+
"term",
|
|
3839
|
+
"textbox",
|
|
3840
|
+
"time",
|
|
3841
|
+
"timer",
|
|
3842
|
+
"toolbar",
|
|
3843
|
+
"tooltip",
|
|
3844
|
+
"tree",
|
|
3845
|
+
"treegrid",
|
|
3846
|
+
"treeitem"
|
|
3847
|
+
]
|
|
3848
|
+
},
|
|
3849
|
+
"name": {
|
|
3850
|
+
"description": "The accessible name, with role: a string or { regex, flags }.",
|
|
3851
|
+
"anyOf": [
|
|
3852
|
+
{
|
|
3853
|
+
"type": "string",
|
|
3854
|
+
"minLength": 1
|
|
3855
|
+
},
|
|
3856
|
+
{
|
|
3857
|
+
"type": "object",
|
|
3858
|
+
"properties": {
|
|
3859
|
+
"regex": {
|
|
3860
|
+
"type": "string",
|
|
3861
|
+
"minLength": 1,
|
|
3862
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
3863
|
+
},
|
|
3864
|
+
"flags": {
|
|
3865
|
+
"default": "",
|
|
3866
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
3867
|
+
"type": "string",
|
|
3868
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
3869
|
+
}
|
|
3870
|
+
},
|
|
3871
|
+
"required": [
|
|
3872
|
+
"regex"
|
|
3873
|
+
],
|
|
3874
|
+
"additionalProperties": false
|
|
3875
|
+
}
|
|
3876
|
+
]
|
|
3877
|
+
},
|
|
3878
|
+
"text": {
|
|
3879
|
+
"description": "Find by visible text (Playwright getByText): a substring, or { regex, flags }.",
|
|
3880
|
+
"anyOf": [
|
|
3881
|
+
{
|
|
3882
|
+
"type": "string",
|
|
3883
|
+
"minLength": 1
|
|
3884
|
+
},
|
|
3885
|
+
{
|
|
3886
|
+
"type": "object",
|
|
3887
|
+
"properties": {
|
|
3888
|
+
"regex": {
|
|
3889
|
+
"type": "string",
|
|
3890
|
+
"minLength": 1,
|
|
3891
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
3892
|
+
},
|
|
3893
|
+
"flags": {
|
|
3894
|
+
"default": "",
|
|
3895
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
3896
|
+
"type": "string",
|
|
3897
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
3898
|
+
}
|
|
3899
|
+
},
|
|
3900
|
+
"required": [
|
|
3901
|
+
"regex"
|
|
3902
|
+
],
|
|
3903
|
+
"additionalProperties": false
|
|
3904
|
+
}
|
|
3905
|
+
]
|
|
3906
|
+
},
|
|
3907
|
+
"label": {
|
|
3908
|
+
"description": "Find a form control by its label (Playwright getByLabel): a substring, or { regex, flags }.",
|
|
3909
|
+
"anyOf": [
|
|
3910
|
+
{
|
|
3911
|
+
"type": "string",
|
|
3912
|
+
"minLength": 1
|
|
3913
|
+
},
|
|
3914
|
+
{
|
|
3915
|
+
"type": "object",
|
|
3916
|
+
"properties": {
|
|
3917
|
+
"regex": {
|
|
3918
|
+
"type": "string",
|
|
3919
|
+
"minLength": 1,
|
|
3920
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
3921
|
+
},
|
|
3922
|
+
"flags": {
|
|
3923
|
+
"default": "",
|
|
3924
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
3925
|
+
"type": "string",
|
|
3926
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
3927
|
+
}
|
|
3928
|
+
},
|
|
3929
|
+
"required": [
|
|
3930
|
+
"regex"
|
|
3931
|
+
],
|
|
3932
|
+
"additionalProperties": false
|
|
3933
|
+
}
|
|
3934
|
+
]
|
|
3935
|
+
},
|
|
3936
|
+
"testId": {
|
|
3937
|
+
"description": "Find by data-testid (Playwright getByTestId).",
|
|
3938
|
+
"type": "string",
|
|
3939
|
+
"minLength": 1
|
|
3940
|
+
},
|
|
3941
|
+
"css": {
|
|
3942
|
+
"description": "Find by CSS selector; narrow it with hasText.",
|
|
3943
|
+
"type": "string",
|
|
3944
|
+
"minLength": 1
|
|
3945
|
+
},
|
|
3946
|
+
"hasText": {
|
|
3947
|
+
"description": "Only elements containing this text, with css.",
|
|
3948
|
+
"anyOf": [
|
|
3949
|
+
{
|
|
3950
|
+
"type": "string",
|
|
3951
|
+
"minLength": 1
|
|
3952
|
+
},
|
|
3953
|
+
{
|
|
3954
|
+
"type": "object",
|
|
3955
|
+
"properties": {
|
|
3956
|
+
"regex": {
|
|
3957
|
+
"type": "string",
|
|
3958
|
+
"minLength": 1,
|
|
3959
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
3960
|
+
},
|
|
3961
|
+
"flags": {
|
|
3962
|
+
"default": "",
|
|
3963
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
3964
|
+
"type": "string",
|
|
3965
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
3966
|
+
}
|
|
3967
|
+
},
|
|
3968
|
+
"required": [
|
|
3969
|
+
"regex"
|
|
3970
|
+
],
|
|
3971
|
+
"additionalProperties": false
|
|
3972
|
+
}
|
|
3973
|
+
]
|
|
3974
|
+
},
|
|
3975
|
+
"exact": {
|
|
3976
|
+
"description": "Whole and case-sensitive match of a string name, text or label (default false).",
|
|
3977
|
+
"type": "boolean"
|
|
3978
|
+
},
|
|
3979
|
+
"nth": {
|
|
3980
|
+
"description": "The n-th match (0 = the first); without it, a locator that matches several elements fails.",
|
|
3981
|
+
"type": "integer",
|
|
3982
|
+
"minimum": 0,
|
|
3983
|
+
"maximum": 9007199254740991
|
|
3984
|
+
}
|
|
3985
|
+
},
|
|
3986
|
+
"additionalProperties": false
|
|
3987
|
+
},
|
|
3988
|
+
"keepLast": {
|
|
3989
|
+
"default": 0,
|
|
3990
|
+
"description": "How many of the last matches stay shown (0-1000, default 0); the step fails when there are not more matches than this.",
|
|
3991
|
+
"type": "integer",
|
|
3992
|
+
"minimum": 0,
|
|
3993
|
+
"maximum": 1000
|
|
3994
|
+
}
|
|
3995
|
+
},
|
|
3996
|
+
"required": [
|
|
3997
|
+
"do",
|
|
3998
|
+
"target"
|
|
3999
|
+
],
|
|
4000
|
+
"additionalProperties": false
|
|
3502
4001
|
}
|
|
3503
4002
|
]
|
|
3504
4003
|
}
|
|
3505
4004
|
},
|
|
3506
4005
|
"crop": {
|
|
3507
|
-
"description": "Capture one element at a fixed aspect ratio (e.g. 4:3 around a chart) instead of the viewport: as wide as the element, from its top edge. Not with full or scrollTo.",
|
|
4006
|
+
"description": "Capture one element at a fixed aspect ratio (e.g. 4:3 around a chart) instead of the viewport: as wide as the element, from its top edge (or crop.top's). Not with full or scrollTo.",
|
|
3508
4007
|
"type": "object",
|
|
3509
4008
|
"properties": {
|
|
3510
4009
|
"target": {
|
|
@@ -3599,206 +4098,943 @@
|
|
|
3599
4098
|
"treeitem"
|
|
3600
4099
|
]
|
|
3601
4100
|
},
|
|
3602
|
-
"name": {
|
|
3603
|
-
"description": "The accessible name, with role: a string or { regex, flags }.",
|
|
3604
|
-
"anyOf": [
|
|
3605
|
-
{
|
|
4101
|
+
"name": {
|
|
4102
|
+
"description": "The accessible name, with role: a string or { regex, flags }.",
|
|
4103
|
+
"anyOf": [
|
|
4104
|
+
{
|
|
4105
|
+
"type": "string",
|
|
4106
|
+
"minLength": 1
|
|
4107
|
+
},
|
|
4108
|
+
{
|
|
4109
|
+
"type": "object",
|
|
4110
|
+
"properties": {
|
|
4111
|
+
"regex": {
|
|
4112
|
+
"type": "string",
|
|
4113
|
+
"minLength": 1,
|
|
4114
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4115
|
+
},
|
|
4116
|
+
"flags": {
|
|
4117
|
+
"default": "",
|
|
4118
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4119
|
+
"type": "string",
|
|
4120
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4121
|
+
}
|
|
4122
|
+
},
|
|
4123
|
+
"required": [
|
|
4124
|
+
"regex"
|
|
4125
|
+
],
|
|
4126
|
+
"additionalProperties": false
|
|
4127
|
+
}
|
|
4128
|
+
]
|
|
4129
|
+
},
|
|
4130
|
+
"text": {
|
|
4131
|
+
"description": "Find by visible text (Playwright getByText): a substring, or { regex, flags }.",
|
|
4132
|
+
"anyOf": [
|
|
4133
|
+
{
|
|
4134
|
+
"type": "string",
|
|
4135
|
+
"minLength": 1
|
|
4136
|
+
},
|
|
4137
|
+
{
|
|
4138
|
+
"type": "object",
|
|
4139
|
+
"properties": {
|
|
4140
|
+
"regex": {
|
|
4141
|
+
"type": "string",
|
|
4142
|
+
"minLength": 1,
|
|
4143
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4144
|
+
},
|
|
4145
|
+
"flags": {
|
|
4146
|
+
"default": "",
|
|
4147
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4148
|
+
"type": "string",
|
|
4149
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4150
|
+
}
|
|
4151
|
+
},
|
|
4152
|
+
"required": [
|
|
4153
|
+
"regex"
|
|
4154
|
+
],
|
|
4155
|
+
"additionalProperties": false
|
|
4156
|
+
}
|
|
4157
|
+
]
|
|
4158
|
+
},
|
|
4159
|
+
"label": {
|
|
4160
|
+
"description": "Find a form control by its label (Playwright getByLabel): a substring, or { regex, flags }.",
|
|
4161
|
+
"anyOf": [
|
|
4162
|
+
{
|
|
4163
|
+
"type": "string",
|
|
4164
|
+
"minLength": 1
|
|
4165
|
+
},
|
|
4166
|
+
{
|
|
4167
|
+
"type": "object",
|
|
4168
|
+
"properties": {
|
|
4169
|
+
"regex": {
|
|
4170
|
+
"type": "string",
|
|
4171
|
+
"minLength": 1,
|
|
4172
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4173
|
+
},
|
|
4174
|
+
"flags": {
|
|
4175
|
+
"default": "",
|
|
4176
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4177
|
+
"type": "string",
|
|
4178
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4179
|
+
}
|
|
4180
|
+
},
|
|
4181
|
+
"required": [
|
|
4182
|
+
"regex"
|
|
4183
|
+
],
|
|
4184
|
+
"additionalProperties": false
|
|
4185
|
+
}
|
|
4186
|
+
]
|
|
4187
|
+
},
|
|
4188
|
+
"testId": {
|
|
4189
|
+
"description": "Find by data-testid (Playwright getByTestId).",
|
|
4190
|
+
"type": "string",
|
|
4191
|
+
"minLength": 1
|
|
4192
|
+
},
|
|
4193
|
+
"css": {
|
|
4194
|
+
"description": "Find by CSS selector; narrow it with hasText.",
|
|
4195
|
+
"type": "string",
|
|
4196
|
+
"minLength": 1
|
|
4197
|
+
},
|
|
4198
|
+
"hasText": {
|
|
4199
|
+
"description": "Only elements containing this text, with css.",
|
|
4200
|
+
"anyOf": [
|
|
4201
|
+
{
|
|
4202
|
+
"type": "string",
|
|
4203
|
+
"minLength": 1
|
|
4204
|
+
},
|
|
4205
|
+
{
|
|
4206
|
+
"type": "object",
|
|
4207
|
+
"properties": {
|
|
4208
|
+
"regex": {
|
|
4209
|
+
"type": "string",
|
|
4210
|
+
"minLength": 1,
|
|
4211
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4212
|
+
},
|
|
4213
|
+
"flags": {
|
|
4214
|
+
"default": "",
|
|
4215
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4216
|
+
"type": "string",
|
|
4217
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4218
|
+
}
|
|
4219
|
+
},
|
|
4220
|
+
"required": [
|
|
4221
|
+
"regex"
|
|
4222
|
+
],
|
|
4223
|
+
"additionalProperties": false
|
|
4224
|
+
}
|
|
4225
|
+
]
|
|
4226
|
+
},
|
|
4227
|
+
"exact": {
|
|
4228
|
+
"description": "Whole and case-sensitive match of a string name, text or label (default false).",
|
|
4229
|
+
"type": "boolean"
|
|
4230
|
+
},
|
|
4231
|
+
"nth": {
|
|
4232
|
+
"description": "The n-th match (0 = the first); without it, a locator that matches several elements fails.",
|
|
4233
|
+
"type": "integer",
|
|
4234
|
+
"minimum": 0,
|
|
4235
|
+
"maximum": 9007199254740991
|
|
4236
|
+
}
|
|
4237
|
+
},
|
|
4238
|
+
"additionalProperties": false
|
|
4239
|
+
},
|
|
4240
|
+
"top": {
|
|
4241
|
+
"description": "An element inside target whose top edge starts the frame instead of target's (e.g. a row of a card); exactly one match. The width stays target's.",
|
|
4242
|
+
"type": "object",
|
|
4243
|
+
"properties": {
|
|
4244
|
+
"role": {
|
|
4245
|
+
"description": "Find by ARIA role (Playwright getByRole), e.g. button; narrow it with name.",
|
|
4246
|
+
"type": "string",
|
|
4247
|
+
"enum": [
|
|
4248
|
+
"alert",
|
|
4249
|
+
"alertdialog",
|
|
4250
|
+
"application",
|
|
4251
|
+
"article",
|
|
4252
|
+
"banner",
|
|
4253
|
+
"blockquote",
|
|
4254
|
+
"button",
|
|
4255
|
+
"caption",
|
|
4256
|
+
"cell",
|
|
4257
|
+
"checkbox",
|
|
4258
|
+
"code",
|
|
4259
|
+
"columnheader",
|
|
4260
|
+
"combobox",
|
|
4261
|
+
"complementary",
|
|
4262
|
+
"contentinfo",
|
|
4263
|
+
"definition",
|
|
4264
|
+
"deletion",
|
|
4265
|
+
"dialog",
|
|
4266
|
+
"directory",
|
|
4267
|
+
"document",
|
|
4268
|
+
"emphasis",
|
|
4269
|
+
"feed",
|
|
4270
|
+
"figure",
|
|
4271
|
+
"form",
|
|
4272
|
+
"generic",
|
|
4273
|
+
"grid",
|
|
4274
|
+
"gridcell",
|
|
4275
|
+
"group",
|
|
4276
|
+
"heading",
|
|
4277
|
+
"img",
|
|
4278
|
+
"insertion",
|
|
4279
|
+
"link",
|
|
4280
|
+
"list",
|
|
4281
|
+
"listbox",
|
|
4282
|
+
"listitem",
|
|
4283
|
+
"log",
|
|
4284
|
+
"main",
|
|
4285
|
+
"marquee",
|
|
4286
|
+
"math",
|
|
4287
|
+
"meter",
|
|
4288
|
+
"menu",
|
|
4289
|
+
"menubar",
|
|
4290
|
+
"menuitem",
|
|
4291
|
+
"menuitemcheckbox",
|
|
4292
|
+
"menuitemradio",
|
|
4293
|
+
"navigation",
|
|
4294
|
+
"none",
|
|
4295
|
+
"note",
|
|
4296
|
+
"option",
|
|
4297
|
+
"paragraph",
|
|
4298
|
+
"presentation",
|
|
4299
|
+
"progressbar",
|
|
4300
|
+
"radio",
|
|
4301
|
+
"radiogroup",
|
|
4302
|
+
"region",
|
|
4303
|
+
"row",
|
|
4304
|
+
"rowgroup",
|
|
4305
|
+
"rowheader",
|
|
4306
|
+
"scrollbar",
|
|
4307
|
+
"search",
|
|
4308
|
+
"searchbox",
|
|
4309
|
+
"separator",
|
|
4310
|
+
"slider",
|
|
4311
|
+
"spinbutton",
|
|
4312
|
+
"status",
|
|
4313
|
+
"strong",
|
|
4314
|
+
"subscript",
|
|
4315
|
+
"superscript",
|
|
4316
|
+
"switch",
|
|
4317
|
+
"tab",
|
|
4318
|
+
"table",
|
|
4319
|
+
"tablist",
|
|
4320
|
+
"tabpanel",
|
|
4321
|
+
"term",
|
|
4322
|
+
"textbox",
|
|
4323
|
+
"time",
|
|
4324
|
+
"timer",
|
|
4325
|
+
"toolbar",
|
|
4326
|
+
"tooltip",
|
|
4327
|
+
"tree",
|
|
4328
|
+
"treegrid",
|
|
4329
|
+
"treeitem"
|
|
4330
|
+
]
|
|
4331
|
+
},
|
|
4332
|
+
"name": {
|
|
4333
|
+
"description": "The accessible name, with role: a string or { regex, flags }.",
|
|
4334
|
+
"anyOf": [
|
|
4335
|
+
{
|
|
4336
|
+
"type": "string",
|
|
4337
|
+
"minLength": 1
|
|
4338
|
+
},
|
|
4339
|
+
{
|
|
4340
|
+
"type": "object",
|
|
4341
|
+
"properties": {
|
|
4342
|
+
"regex": {
|
|
4343
|
+
"type": "string",
|
|
4344
|
+
"minLength": 1,
|
|
4345
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4346
|
+
},
|
|
4347
|
+
"flags": {
|
|
4348
|
+
"default": "",
|
|
4349
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4350
|
+
"type": "string",
|
|
4351
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4352
|
+
}
|
|
4353
|
+
},
|
|
4354
|
+
"required": [
|
|
4355
|
+
"regex"
|
|
4356
|
+
],
|
|
4357
|
+
"additionalProperties": false
|
|
4358
|
+
}
|
|
4359
|
+
]
|
|
4360
|
+
},
|
|
4361
|
+
"text": {
|
|
4362
|
+
"description": "Find by visible text (Playwright getByText): a substring, or { regex, flags }.",
|
|
4363
|
+
"anyOf": [
|
|
4364
|
+
{
|
|
4365
|
+
"type": "string",
|
|
4366
|
+
"minLength": 1
|
|
4367
|
+
},
|
|
4368
|
+
{
|
|
4369
|
+
"type": "object",
|
|
4370
|
+
"properties": {
|
|
4371
|
+
"regex": {
|
|
4372
|
+
"type": "string",
|
|
4373
|
+
"minLength": 1,
|
|
4374
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4375
|
+
},
|
|
4376
|
+
"flags": {
|
|
4377
|
+
"default": "",
|
|
4378
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4379
|
+
"type": "string",
|
|
4380
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4381
|
+
}
|
|
4382
|
+
},
|
|
4383
|
+
"required": [
|
|
4384
|
+
"regex"
|
|
4385
|
+
],
|
|
4386
|
+
"additionalProperties": false
|
|
4387
|
+
}
|
|
4388
|
+
]
|
|
4389
|
+
},
|
|
4390
|
+
"label": {
|
|
4391
|
+
"description": "Find a form control by its label (Playwright getByLabel): a substring, or { regex, flags }.",
|
|
4392
|
+
"anyOf": [
|
|
4393
|
+
{
|
|
4394
|
+
"type": "string",
|
|
4395
|
+
"minLength": 1
|
|
4396
|
+
},
|
|
4397
|
+
{
|
|
4398
|
+
"type": "object",
|
|
4399
|
+
"properties": {
|
|
4400
|
+
"regex": {
|
|
4401
|
+
"type": "string",
|
|
4402
|
+
"minLength": 1,
|
|
4403
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4404
|
+
},
|
|
4405
|
+
"flags": {
|
|
4406
|
+
"default": "",
|
|
4407
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4408
|
+
"type": "string",
|
|
4409
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4410
|
+
}
|
|
4411
|
+
},
|
|
4412
|
+
"required": [
|
|
4413
|
+
"regex"
|
|
4414
|
+
],
|
|
4415
|
+
"additionalProperties": false
|
|
4416
|
+
}
|
|
4417
|
+
]
|
|
4418
|
+
},
|
|
4419
|
+
"testId": {
|
|
4420
|
+
"description": "Find by data-testid (Playwright getByTestId).",
|
|
4421
|
+
"type": "string",
|
|
4422
|
+
"minLength": 1
|
|
4423
|
+
},
|
|
4424
|
+
"css": {
|
|
4425
|
+
"description": "Find by CSS selector; narrow it with hasText.",
|
|
4426
|
+
"type": "string",
|
|
4427
|
+
"minLength": 1
|
|
4428
|
+
},
|
|
4429
|
+
"hasText": {
|
|
4430
|
+
"description": "Only elements containing this text, with css.",
|
|
4431
|
+
"anyOf": [
|
|
4432
|
+
{
|
|
4433
|
+
"type": "string",
|
|
4434
|
+
"minLength": 1
|
|
4435
|
+
},
|
|
4436
|
+
{
|
|
4437
|
+
"type": "object",
|
|
4438
|
+
"properties": {
|
|
4439
|
+
"regex": {
|
|
4440
|
+
"type": "string",
|
|
4441
|
+
"minLength": 1,
|
|
4442
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4443
|
+
},
|
|
4444
|
+
"flags": {
|
|
4445
|
+
"default": "",
|
|
4446
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4447
|
+
"type": "string",
|
|
4448
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4449
|
+
}
|
|
4450
|
+
},
|
|
4451
|
+
"required": [
|
|
4452
|
+
"regex"
|
|
4453
|
+
],
|
|
4454
|
+
"additionalProperties": false
|
|
4455
|
+
}
|
|
4456
|
+
]
|
|
4457
|
+
},
|
|
4458
|
+
"exact": {
|
|
4459
|
+
"description": "Whole and case-sensitive match of a string name, text or label (default false).",
|
|
4460
|
+
"type": "boolean"
|
|
4461
|
+
},
|
|
4462
|
+
"nth": {
|
|
4463
|
+
"description": "The n-th match (0 = the first); without it, a locator that matches several elements fails.",
|
|
4464
|
+
"type": "integer",
|
|
4465
|
+
"minimum": 0,
|
|
4466
|
+
"maximum": 9007199254740991
|
|
4467
|
+
}
|
|
4468
|
+
},
|
|
4469
|
+
"additionalProperties": false
|
|
4470
|
+
},
|
|
4471
|
+
"aspect": {
|
|
4472
|
+
"description": "The frame's width to height, e.g. 4:3: as wide as the element (plus padding), from its top edge down.",
|
|
4473
|
+
"type": "string",
|
|
4474
|
+
"pattern": "^[1-9]\\d{0,3}:[1-9]\\d{0,3}$"
|
|
4475
|
+
},
|
|
4476
|
+
"padding": {
|
|
4477
|
+
"default": 0,
|
|
4478
|
+
"description": "CSS pixels of the page around the element on the left, right and top (0-200, default 0).",
|
|
4479
|
+
"type": "integer",
|
|
4480
|
+
"minimum": 0,
|
|
4481
|
+
"maximum": 200
|
|
4482
|
+
}
|
|
4483
|
+
},
|
|
4484
|
+
"required": [
|
|
4485
|
+
"target",
|
|
4486
|
+
"aspect"
|
|
4487
|
+
],
|
|
4488
|
+
"additionalProperties": false
|
|
4489
|
+
},
|
|
4490
|
+
"hide": {
|
|
4491
|
+
"default": [],
|
|
4492
|
+
"description": "CSS selectors hidden in this entry's shots only, on top of app.hideSelectors (a print state: hint buttons, disclosure arrows); the shot is refused when one still shows an element in the frame.",
|
|
4493
|
+
"type": "array",
|
|
4494
|
+
"items": {
|
|
4495
|
+
"type": "string",
|
|
4496
|
+
"pattern": "^(?!.*\\/\\*)[^{};<>\\\\]+$"
|
|
4497
|
+
}
|
|
4498
|
+
}
|
|
4499
|
+
},
|
|
4500
|
+
"required": [
|
|
4501
|
+
"id",
|
|
4502
|
+
"path",
|
|
4503
|
+
"width",
|
|
4504
|
+
"height",
|
|
4505
|
+
"expect"
|
|
4506
|
+
],
|
|
4507
|
+
"additionalProperties": false
|
|
4508
|
+
}
|
|
4509
|
+
},
|
|
4510
|
+
"signIn": {
|
|
4511
|
+
"description": "How softure-marketing shots signs in for the screenshots with signedIn: true, and the optional command that prepares the account.",
|
|
4512
|
+
"type": "object",
|
|
4513
|
+
"properties": {
|
|
4514
|
+
"prepare": {
|
|
4515
|
+
"description": "A command (arguments, no shell, run in the folder of marketing.json once the app answers, with MARKETING_BASE_URL set) that creates and seeds the account; its last line of output is a JSON object of strings or numbers, read as {data:key}. Its output is not printed.",
|
|
4516
|
+
"minItems": 1,
|
|
4517
|
+
"type": "array",
|
|
4518
|
+
"items": {
|
|
4519
|
+
"type": "string",
|
|
4520
|
+
"minLength": 1
|
|
4521
|
+
}
|
|
4522
|
+
},
|
|
4523
|
+
"path": {
|
|
4524
|
+
"type": "string",
|
|
4525
|
+
"format": "starts_with",
|
|
4526
|
+
"pattern": "^\\/.*",
|
|
4527
|
+
"description": "The sign-in page, e.g. /login."
|
|
4528
|
+
},
|
|
4529
|
+
"steps": {
|
|
4530
|
+
"minItems": 1,
|
|
4531
|
+
"type": "array",
|
|
4532
|
+
"items": {
|
|
4533
|
+
"oneOf": [
|
|
4534
|
+
{
|
|
4535
|
+
"type": "object",
|
|
4536
|
+
"properties": {
|
|
4537
|
+
"do": {
|
|
4538
|
+
"type": "string",
|
|
4539
|
+
"const": "fill",
|
|
4540
|
+
"description": "Replaces the value of an input, e.g. the e-mail of the sign-in form."
|
|
4541
|
+
},
|
|
4542
|
+
"target": {
|
|
4543
|
+
"description": "The element, as a locator descriptor with exactly one of role, text, label, testId, css.",
|
|
4544
|
+
"type": "object",
|
|
4545
|
+
"properties": {
|
|
4546
|
+
"role": {
|
|
4547
|
+
"description": "Find by ARIA role (Playwright getByRole), e.g. button; narrow it with name.",
|
|
4548
|
+
"type": "string",
|
|
4549
|
+
"enum": [
|
|
4550
|
+
"alert",
|
|
4551
|
+
"alertdialog",
|
|
4552
|
+
"application",
|
|
4553
|
+
"article",
|
|
4554
|
+
"banner",
|
|
4555
|
+
"blockquote",
|
|
4556
|
+
"button",
|
|
4557
|
+
"caption",
|
|
4558
|
+
"cell",
|
|
4559
|
+
"checkbox",
|
|
4560
|
+
"code",
|
|
4561
|
+
"columnheader",
|
|
4562
|
+
"combobox",
|
|
4563
|
+
"complementary",
|
|
4564
|
+
"contentinfo",
|
|
4565
|
+
"definition",
|
|
4566
|
+
"deletion",
|
|
4567
|
+
"dialog",
|
|
4568
|
+
"directory",
|
|
4569
|
+
"document",
|
|
4570
|
+
"emphasis",
|
|
4571
|
+
"feed",
|
|
4572
|
+
"figure",
|
|
4573
|
+
"form",
|
|
4574
|
+
"generic",
|
|
4575
|
+
"grid",
|
|
4576
|
+
"gridcell",
|
|
4577
|
+
"group",
|
|
4578
|
+
"heading",
|
|
4579
|
+
"img",
|
|
4580
|
+
"insertion",
|
|
4581
|
+
"link",
|
|
4582
|
+
"list",
|
|
4583
|
+
"listbox",
|
|
4584
|
+
"listitem",
|
|
4585
|
+
"log",
|
|
4586
|
+
"main",
|
|
4587
|
+
"marquee",
|
|
4588
|
+
"math",
|
|
4589
|
+
"meter",
|
|
4590
|
+
"menu",
|
|
4591
|
+
"menubar",
|
|
4592
|
+
"menuitem",
|
|
4593
|
+
"menuitemcheckbox",
|
|
4594
|
+
"menuitemradio",
|
|
4595
|
+
"navigation",
|
|
4596
|
+
"none",
|
|
4597
|
+
"note",
|
|
4598
|
+
"option",
|
|
4599
|
+
"paragraph",
|
|
4600
|
+
"presentation",
|
|
4601
|
+
"progressbar",
|
|
4602
|
+
"radio",
|
|
4603
|
+
"radiogroup",
|
|
4604
|
+
"region",
|
|
4605
|
+
"row",
|
|
4606
|
+
"rowgroup",
|
|
4607
|
+
"rowheader",
|
|
4608
|
+
"scrollbar",
|
|
4609
|
+
"search",
|
|
4610
|
+
"searchbox",
|
|
4611
|
+
"separator",
|
|
4612
|
+
"slider",
|
|
4613
|
+
"spinbutton",
|
|
4614
|
+
"status",
|
|
4615
|
+
"strong",
|
|
4616
|
+
"subscript",
|
|
4617
|
+
"superscript",
|
|
4618
|
+
"switch",
|
|
4619
|
+
"tab",
|
|
4620
|
+
"table",
|
|
4621
|
+
"tablist",
|
|
4622
|
+
"tabpanel",
|
|
4623
|
+
"term",
|
|
4624
|
+
"textbox",
|
|
4625
|
+
"time",
|
|
4626
|
+
"timer",
|
|
4627
|
+
"toolbar",
|
|
4628
|
+
"tooltip",
|
|
4629
|
+
"tree",
|
|
4630
|
+
"treegrid",
|
|
4631
|
+
"treeitem"
|
|
4632
|
+
]
|
|
4633
|
+
},
|
|
4634
|
+
"name": {
|
|
4635
|
+
"description": "The accessible name, with role: a string or { regex, flags }.",
|
|
4636
|
+
"anyOf": [
|
|
4637
|
+
{
|
|
4638
|
+
"type": "string",
|
|
4639
|
+
"minLength": 1
|
|
4640
|
+
},
|
|
4641
|
+
{
|
|
4642
|
+
"type": "object",
|
|
4643
|
+
"properties": {
|
|
4644
|
+
"regex": {
|
|
4645
|
+
"type": "string",
|
|
4646
|
+
"minLength": 1,
|
|
4647
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4648
|
+
},
|
|
4649
|
+
"flags": {
|
|
4650
|
+
"default": "",
|
|
4651
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4652
|
+
"type": "string",
|
|
4653
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4654
|
+
}
|
|
4655
|
+
},
|
|
4656
|
+
"required": [
|
|
4657
|
+
"regex"
|
|
4658
|
+
],
|
|
4659
|
+
"additionalProperties": false
|
|
4660
|
+
}
|
|
4661
|
+
]
|
|
4662
|
+
},
|
|
4663
|
+
"text": {
|
|
4664
|
+
"description": "Find by visible text (Playwright getByText): a substring, or { regex, flags }.",
|
|
4665
|
+
"anyOf": [
|
|
4666
|
+
{
|
|
4667
|
+
"type": "string",
|
|
4668
|
+
"minLength": 1
|
|
4669
|
+
},
|
|
4670
|
+
{
|
|
4671
|
+
"type": "object",
|
|
4672
|
+
"properties": {
|
|
4673
|
+
"regex": {
|
|
4674
|
+
"type": "string",
|
|
4675
|
+
"minLength": 1,
|
|
4676
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4677
|
+
},
|
|
4678
|
+
"flags": {
|
|
4679
|
+
"default": "",
|
|
4680
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4681
|
+
"type": "string",
|
|
4682
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4683
|
+
}
|
|
4684
|
+
},
|
|
4685
|
+
"required": [
|
|
4686
|
+
"regex"
|
|
4687
|
+
],
|
|
4688
|
+
"additionalProperties": false
|
|
4689
|
+
}
|
|
4690
|
+
]
|
|
4691
|
+
},
|
|
4692
|
+
"label": {
|
|
4693
|
+
"description": "Find a form control by its label (Playwright getByLabel): a substring, or { regex, flags }.",
|
|
4694
|
+
"anyOf": [
|
|
4695
|
+
{
|
|
4696
|
+
"type": "string",
|
|
4697
|
+
"minLength": 1
|
|
4698
|
+
},
|
|
4699
|
+
{
|
|
4700
|
+
"type": "object",
|
|
4701
|
+
"properties": {
|
|
4702
|
+
"regex": {
|
|
4703
|
+
"type": "string",
|
|
4704
|
+
"minLength": 1,
|
|
4705
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4706
|
+
},
|
|
4707
|
+
"flags": {
|
|
4708
|
+
"default": "",
|
|
4709
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4710
|
+
"type": "string",
|
|
4711
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4712
|
+
}
|
|
4713
|
+
},
|
|
4714
|
+
"required": [
|
|
4715
|
+
"regex"
|
|
4716
|
+
],
|
|
4717
|
+
"additionalProperties": false
|
|
4718
|
+
}
|
|
4719
|
+
]
|
|
4720
|
+
},
|
|
4721
|
+
"testId": {
|
|
4722
|
+
"description": "Find by data-testid (Playwright getByTestId).",
|
|
3606
4723
|
"type": "string",
|
|
3607
4724
|
"minLength": 1
|
|
3608
4725
|
},
|
|
3609
|
-
{
|
|
3610
|
-
"
|
|
3611
|
-
"
|
|
3612
|
-
|
|
4726
|
+
"css": {
|
|
4727
|
+
"description": "Find by CSS selector; narrow it with hasText.",
|
|
4728
|
+
"type": "string",
|
|
4729
|
+
"minLength": 1
|
|
4730
|
+
},
|
|
4731
|
+
"hasText": {
|
|
4732
|
+
"description": "Only elements containing this text, with css.",
|
|
4733
|
+
"anyOf": [
|
|
4734
|
+
{
|
|
3613
4735
|
"type": "string",
|
|
3614
|
-
"minLength": 1
|
|
3615
|
-
"description": "A JavaScript regular expression source, without slashes."
|
|
4736
|
+
"minLength": 1
|
|
3616
4737
|
},
|
|
3617
|
-
|
|
3618
|
-
"
|
|
3619
|
-
"
|
|
3620
|
-
|
|
3621
|
-
|
|
4738
|
+
{
|
|
4739
|
+
"type": "object",
|
|
4740
|
+
"properties": {
|
|
4741
|
+
"regex": {
|
|
4742
|
+
"type": "string",
|
|
4743
|
+
"minLength": 1,
|
|
4744
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4745
|
+
},
|
|
4746
|
+
"flags": {
|
|
4747
|
+
"default": "",
|
|
4748
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4749
|
+
"type": "string",
|
|
4750
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4751
|
+
}
|
|
4752
|
+
},
|
|
4753
|
+
"required": [
|
|
4754
|
+
"regex"
|
|
4755
|
+
],
|
|
4756
|
+
"additionalProperties": false
|
|
3622
4757
|
}
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
"
|
|
4758
|
+
]
|
|
4759
|
+
},
|
|
4760
|
+
"exact": {
|
|
4761
|
+
"description": "Whole and case-sensitive match of a string name, text or label (default false).",
|
|
4762
|
+
"type": "boolean"
|
|
4763
|
+
},
|
|
4764
|
+
"nth": {
|
|
4765
|
+
"description": "The n-th match (0 = the first); without it, a locator that matches several elements fails.",
|
|
4766
|
+
"type": "integer",
|
|
4767
|
+
"minimum": 0,
|
|
4768
|
+
"maximum": 9007199254740991
|
|
3628
4769
|
}
|
|
3629
|
-
|
|
4770
|
+
},
|
|
4771
|
+
"additionalProperties": false
|
|
3630
4772
|
},
|
|
3631
|
-
"
|
|
3632
|
-
"
|
|
3633
|
-
"
|
|
3634
|
-
|
|
4773
|
+
"value": {
|
|
4774
|
+
"type": "string",
|
|
4775
|
+
"description": "The value; {env:NAME} and {data:key} are replaced. Never printed, so a password may go here as {env:NAME}."
|
|
4776
|
+
}
|
|
4777
|
+
},
|
|
4778
|
+
"required": [
|
|
4779
|
+
"do",
|
|
4780
|
+
"target",
|
|
4781
|
+
"value"
|
|
4782
|
+
],
|
|
4783
|
+
"additionalProperties": false
|
|
4784
|
+
},
|
|
4785
|
+
{
|
|
4786
|
+
"type": "object",
|
|
4787
|
+
"properties": {
|
|
4788
|
+
"do": {
|
|
4789
|
+
"type": "string",
|
|
4790
|
+
"const": "click",
|
|
4791
|
+
"description": "Clicks the element, e.g. the submit button or a collapsed section's summary."
|
|
4792
|
+
},
|
|
4793
|
+
"target": {
|
|
4794
|
+
"description": "The element, as a locator descriptor with exactly one of role, text, label, testId, css.",
|
|
4795
|
+
"type": "object",
|
|
4796
|
+
"properties": {
|
|
4797
|
+
"role": {
|
|
4798
|
+
"description": "Find by ARIA role (Playwright getByRole), e.g. button; narrow it with name.",
|
|
3635
4799
|
"type": "string",
|
|
3636
|
-
"
|
|
4800
|
+
"enum": [
|
|
4801
|
+
"alert",
|
|
4802
|
+
"alertdialog",
|
|
4803
|
+
"application",
|
|
4804
|
+
"article",
|
|
4805
|
+
"banner",
|
|
4806
|
+
"blockquote",
|
|
4807
|
+
"button",
|
|
4808
|
+
"caption",
|
|
4809
|
+
"cell",
|
|
4810
|
+
"checkbox",
|
|
4811
|
+
"code",
|
|
4812
|
+
"columnheader",
|
|
4813
|
+
"combobox",
|
|
4814
|
+
"complementary",
|
|
4815
|
+
"contentinfo",
|
|
4816
|
+
"definition",
|
|
4817
|
+
"deletion",
|
|
4818
|
+
"dialog",
|
|
4819
|
+
"directory",
|
|
4820
|
+
"document",
|
|
4821
|
+
"emphasis",
|
|
4822
|
+
"feed",
|
|
4823
|
+
"figure",
|
|
4824
|
+
"form",
|
|
4825
|
+
"generic",
|
|
4826
|
+
"grid",
|
|
4827
|
+
"gridcell",
|
|
4828
|
+
"group",
|
|
4829
|
+
"heading",
|
|
4830
|
+
"img",
|
|
4831
|
+
"insertion",
|
|
4832
|
+
"link",
|
|
4833
|
+
"list",
|
|
4834
|
+
"listbox",
|
|
4835
|
+
"listitem",
|
|
4836
|
+
"log",
|
|
4837
|
+
"main",
|
|
4838
|
+
"marquee",
|
|
4839
|
+
"math",
|
|
4840
|
+
"meter",
|
|
4841
|
+
"menu",
|
|
4842
|
+
"menubar",
|
|
4843
|
+
"menuitem",
|
|
4844
|
+
"menuitemcheckbox",
|
|
4845
|
+
"menuitemradio",
|
|
4846
|
+
"navigation",
|
|
4847
|
+
"none",
|
|
4848
|
+
"note",
|
|
4849
|
+
"option",
|
|
4850
|
+
"paragraph",
|
|
4851
|
+
"presentation",
|
|
4852
|
+
"progressbar",
|
|
4853
|
+
"radio",
|
|
4854
|
+
"radiogroup",
|
|
4855
|
+
"region",
|
|
4856
|
+
"row",
|
|
4857
|
+
"rowgroup",
|
|
4858
|
+
"rowheader",
|
|
4859
|
+
"scrollbar",
|
|
4860
|
+
"search",
|
|
4861
|
+
"searchbox",
|
|
4862
|
+
"separator",
|
|
4863
|
+
"slider",
|
|
4864
|
+
"spinbutton",
|
|
4865
|
+
"status",
|
|
4866
|
+
"strong",
|
|
4867
|
+
"subscript",
|
|
4868
|
+
"superscript",
|
|
4869
|
+
"switch",
|
|
4870
|
+
"tab",
|
|
4871
|
+
"table",
|
|
4872
|
+
"tablist",
|
|
4873
|
+
"tabpanel",
|
|
4874
|
+
"term",
|
|
4875
|
+
"textbox",
|
|
4876
|
+
"time",
|
|
4877
|
+
"timer",
|
|
4878
|
+
"toolbar",
|
|
4879
|
+
"tooltip",
|
|
4880
|
+
"tree",
|
|
4881
|
+
"treegrid",
|
|
4882
|
+
"treeitem"
|
|
4883
|
+
]
|
|
3637
4884
|
},
|
|
3638
|
-
{
|
|
3639
|
-
"
|
|
3640
|
-
"
|
|
3641
|
-
|
|
4885
|
+
"name": {
|
|
4886
|
+
"description": "The accessible name, with role: a string or { regex, flags }.",
|
|
4887
|
+
"anyOf": [
|
|
4888
|
+
{
|
|
3642
4889
|
"type": "string",
|
|
3643
|
-
"minLength": 1
|
|
3644
|
-
"description": "A JavaScript regular expression source, without slashes."
|
|
4890
|
+
"minLength": 1
|
|
3645
4891
|
},
|
|
3646
|
-
|
|
3647
|
-
"
|
|
3648
|
-
"
|
|
4892
|
+
{
|
|
4893
|
+
"type": "object",
|
|
4894
|
+
"properties": {
|
|
4895
|
+
"regex": {
|
|
4896
|
+
"type": "string",
|
|
4897
|
+
"minLength": 1,
|
|
4898
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4899
|
+
},
|
|
4900
|
+
"flags": {
|
|
4901
|
+
"default": "",
|
|
4902
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4903
|
+
"type": "string",
|
|
4904
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4905
|
+
}
|
|
4906
|
+
},
|
|
4907
|
+
"required": [
|
|
4908
|
+
"regex"
|
|
4909
|
+
],
|
|
4910
|
+
"additionalProperties": false
|
|
4911
|
+
}
|
|
4912
|
+
]
|
|
4913
|
+
},
|
|
4914
|
+
"text": {
|
|
4915
|
+
"description": "Find by visible text (Playwright getByText): a substring, or { regex, flags }.",
|
|
4916
|
+
"anyOf": [
|
|
4917
|
+
{
|
|
4918
|
+
"type": "string",
|
|
4919
|
+
"minLength": 1
|
|
4920
|
+
},
|
|
4921
|
+
{
|
|
4922
|
+
"type": "object",
|
|
4923
|
+
"properties": {
|
|
4924
|
+
"regex": {
|
|
4925
|
+
"type": "string",
|
|
4926
|
+
"minLength": 1,
|
|
4927
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4928
|
+
},
|
|
4929
|
+
"flags": {
|
|
4930
|
+
"default": "",
|
|
4931
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4932
|
+
"type": "string",
|
|
4933
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4934
|
+
}
|
|
4935
|
+
},
|
|
4936
|
+
"required": [
|
|
4937
|
+
"regex"
|
|
4938
|
+
],
|
|
4939
|
+
"additionalProperties": false
|
|
4940
|
+
}
|
|
4941
|
+
]
|
|
4942
|
+
},
|
|
4943
|
+
"label": {
|
|
4944
|
+
"description": "Find a form control by its label (Playwright getByLabel): a substring, or { regex, flags }.",
|
|
4945
|
+
"anyOf": [
|
|
4946
|
+
{
|
|
3649
4947
|
"type": "string",
|
|
3650
|
-
"
|
|
4948
|
+
"minLength": 1
|
|
4949
|
+
},
|
|
4950
|
+
{
|
|
4951
|
+
"type": "object",
|
|
4952
|
+
"properties": {
|
|
4953
|
+
"regex": {
|
|
4954
|
+
"type": "string",
|
|
4955
|
+
"minLength": 1,
|
|
4956
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4957
|
+
},
|
|
4958
|
+
"flags": {
|
|
4959
|
+
"default": "",
|
|
4960
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4961
|
+
"type": "string",
|
|
4962
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4963
|
+
}
|
|
4964
|
+
},
|
|
4965
|
+
"required": [
|
|
4966
|
+
"regex"
|
|
4967
|
+
],
|
|
4968
|
+
"additionalProperties": false
|
|
3651
4969
|
}
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
"additionalProperties": false
|
|
3657
|
-
}
|
|
3658
|
-
]
|
|
3659
|
-
},
|
|
3660
|
-
"label": {
|
|
3661
|
-
"description": "Find a form control by its label (Playwright getByLabel): a substring, or { regex, flags }.",
|
|
3662
|
-
"anyOf": [
|
|
3663
|
-
{
|
|
4970
|
+
]
|
|
4971
|
+
},
|
|
4972
|
+
"testId": {
|
|
4973
|
+
"description": "Find by data-testid (Playwright getByTestId).",
|
|
3664
4974
|
"type": "string",
|
|
3665
4975
|
"minLength": 1
|
|
3666
4976
|
},
|
|
3667
|
-
{
|
|
3668
|
-
"
|
|
3669
|
-
"properties": {
|
|
3670
|
-
"regex": {
|
|
3671
|
-
"type": "string",
|
|
3672
|
-
"minLength": 1,
|
|
3673
|
-
"description": "A JavaScript regular expression source, without slashes."
|
|
3674
|
-
},
|
|
3675
|
-
"flags": {
|
|
3676
|
-
"default": "",
|
|
3677
|
-
"description": "Any of i, m, s, u, each at most once.",
|
|
3678
|
-
"type": "string",
|
|
3679
|
-
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
3680
|
-
}
|
|
3681
|
-
},
|
|
3682
|
-
"required": [
|
|
3683
|
-
"regex"
|
|
3684
|
-
],
|
|
3685
|
-
"additionalProperties": false
|
|
3686
|
-
}
|
|
3687
|
-
]
|
|
3688
|
-
},
|
|
3689
|
-
"testId": {
|
|
3690
|
-
"description": "Find by data-testid (Playwright getByTestId).",
|
|
3691
|
-
"type": "string",
|
|
3692
|
-
"minLength": 1
|
|
3693
|
-
},
|
|
3694
|
-
"css": {
|
|
3695
|
-
"description": "Find by CSS selector; narrow it with hasText.",
|
|
3696
|
-
"type": "string",
|
|
3697
|
-
"minLength": 1
|
|
3698
|
-
},
|
|
3699
|
-
"hasText": {
|
|
3700
|
-
"description": "Only elements containing this text, with css.",
|
|
3701
|
-
"anyOf": [
|
|
3702
|
-
{
|
|
4977
|
+
"css": {
|
|
4978
|
+
"description": "Find by CSS selector; narrow it with hasText.",
|
|
3703
4979
|
"type": "string",
|
|
3704
4980
|
"minLength": 1
|
|
3705
4981
|
},
|
|
3706
|
-
{
|
|
3707
|
-
"
|
|
3708
|
-
"
|
|
3709
|
-
|
|
4982
|
+
"hasText": {
|
|
4983
|
+
"description": "Only elements containing this text, with css.",
|
|
4984
|
+
"anyOf": [
|
|
4985
|
+
{
|
|
3710
4986
|
"type": "string",
|
|
3711
|
-
"minLength": 1
|
|
3712
|
-
"description": "A JavaScript regular expression source, without slashes."
|
|
4987
|
+
"minLength": 1
|
|
3713
4988
|
},
|
|
3714
|
-
|
|
3715
|
-
"
|
|
3716
|
-
"
|
|
3717
|
-
|
|
3718
|
-
|
|
4989
|
+
{
|
|
4990
|
+
"type": "object",
|
|
4991
|
+
"properties": {
|
|
4992
|
+
"regex": {
|
|
4993
|
+
"type": "string",
|
|
4994
|
+
"minLength": 1,
|
|
4995
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4996
|
+
},
|
|
4997
|
+
"flags": {
|
|
4998
|
+
"default": "",
|
|
4999
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
5000
|
+
"type": "string",
|
|
5001
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
5002
|
+
}
|
|
5003
|
+
},
|
|
5004
|
+
"required": [
|
|
5005
|
+
"regex"
|
|
5006
|
+
],
|
|
5007
|
+
"additionalProperties": false
|
|
3719
5008
|
}
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
"
|
|
5009
|
+
]
|
|
5010
|
+
},
|
|
5011
|
+
"exact": {
|
|
5012
|
+
"description": "Whole and case-sensitive match of a string name, text or label (default false).",
|
|
5013
|
+
"type": "boolean"
|
|
5014
|
+
},
|
|
5015
|
+
"nth": {
|
|
5016
|
+
"description": "The n-th match (0 = the first); without it, a locator that matches several elements fails.",
|
|
5017
|
+
"type": "integer",
|
|
5018
|
+
"minimum": 0,
|
|
5019
|
+
"maximum": 9007199254740991
|
|
3725
5020
|
}
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
"exact": {
|
|
3729
|
-
"description": "Whole and case-sensitive match of a string name, text or label (default false).",
|
|
3730
|
-
"type": "boolean"
|
|
3731
|
-
},
|
|
3732
|
-
"nth": {
|
|
3733
|
-
"description": "The n-th match (0 = the first); without it, a locator that matches several elements fails.",
|
|
3734
|
-
"type": "integer",
|
|
3735
|
-
"minimum": 0,
|
|
3736
|
-
"maximum": 9007199254740991
|
|
5021
|
+
},
|
|
5022
|
+
"additionalProperties": false
|
|
3737
5023
|
}
|
|
3738
5024
|
},
|
|
5025
|
+
"required": [
|
|
5026
|
+
"do",
|
|
5027
|
+
"target"
|
|
5028
|
+
],
|
|
3739
5029
|
"additionalProperties": false
|
|
3740
5030
|
},
|
|
3741
|
-
"aspect": {
|
|
3742
|
-
"description": "The frame's width to height, e.g. 4:3: as wide as the element (plus padding), from its top edge down.",
|
|
3743
|
-
"type": "string",
|
|
3744
|
-
"pattern": "^[1-9]\\d{0,3}:[1-9]\\d{0,3}$"
|
|
3745
|
-
},
|
|
3746
|
-
"padding": {
|
|
3747
|
-
"default": 0,
|
|
3748
|
-
"description": "CSS pixels of the page around the element on the left, right and top (0-200, default 0).",
|
|
3749
|
-
"type": "integer",
|
|
3750
|
-
"minimum": 0,
|
|
3751
|
-
"maximum": 200
|
|
3752
|
-
}
|
|
3753
|
-
},
|
|
3754
|
-
"required": [
|
|
3755
|
-
"target",
|
|
3756
|
-
"aspect"
|
|
3757
|
-
],
|
|
3758
|
-
"additionalProperties": false
|
|
3759
|
-
}
|
|
3760
|
-
},
|
|
3761
|
-
"required": [
|
|
3762
|
-
"id",
|
|
3763
|
-
"path",
|
|
3764
|
-
"width",
|
|
3765
|
-
"height",
|
|
3766
|
-
"expect"
|
|
3767
|
-
],
|
|
3768
|
-
"additionalProperties": false
|
|
3769
|
-
}
|
|
3770
|
-
},
|
|
3771
|
-
"signIn": {
|
|
3772
|
-
"description": "How softure-marketing shots signs in for the screenshots with signedIn: true, and the optional command that prepares the account.",
|
|
3773
|
-
"type": "object",
|
|
3774
|
-
"properties": {
|
|
3775
|
-
"prepare": {
|
|
3776
|
-
"description": "A command (arguments, no shell, run in the folder of marketing.json once the app answers, with MARKETING_BASE_URL set) that creates and seeds the account; its last line of output is a JSON object of strings or numbers, read as {data:key}. Its output is not printed.",
|
|
3777
|
-
"minItems": 1,
|
|
3778
|
-
"type": "array",
|
|
3779
|
-
"items": {
|
|
3780
|
-
"type": "string",
|
|
3781
|
-
"minLength": 1
|
|
3782
|
-
}
|
|
3783
|
-
},
|
|
3784
|
-
"path": {
|
|
3785
|
-
"type": "string",
|
|
3786
|
-
"format": "starts_with",
|
|
3787
|
-
"pattern": "^\\/.*",
|
|
3788
|
-
"description": "The sign-in page, e.g. /login."
|
|
3789
|
-
},
|
|
3790
|
-
"steps": {
|
|
3791
|
-
"minItems": 1,
|
|
3792
|
-
"type": "array",
|
|
3793
|
-
"items": {
|
|
3794
|
-
"oneOf": [
|
|
3795
5031
|
{
|
|
3796
5032
|
"type": "object",
|
|
3797
5033
|
"properties": {
|
|
3798
5034
|
"do": {
|
|
3799
5035
|
"type": "string",
|
|
3800
|
-
"const": "
|
|
3801
|
-
"description": "
|
|
5036
|
+
"const": "check",
|
|
5037
|
+
"description": "Ticks a checkbox or radio button, e.g. the terms of a sign-up form."
|
|
3802
5038
|
},
|
|
3803
5039
|
"target": {
|
|
3804
5040
|
"description": "The element, as a locator descriptor with exactly one of role, text, label, testId, css.",
|
|
@@ -4030,16 +5266,31 @@
|
|
|
4030
5266
|
}
|
|
4031
5267
|
},
|
|
4032
5268
|
"additionalProperties": false
|
|
5269
|
+
}
|
|
5270
|
+
},
|
|
5271
|
+
"required": [
|
|
5272
|
+
"do",
|
|
5273
|
+
"target"
|
|
5274
|
+
],
|
|
5275
|
+
"additionalProperties": false
|
|
5276
|
+
},
|
|
5277
|
+
{
|
|
5278
|
+
"type": "object",
|
|
5279
|
+
"properties": {
|
|
5280
|
+
"do": {
|
|
5281
|
+
"type": "string",
|
|
5282
|
+
"const": "press",
|
|
5283
|
+
"description": "Presses a key on the focused element, e.g. Enter."
|
|
4033
5284
|
},
|
|
4034
|
-
"
|
|
5285
|
+
"key": {
|
|
4035
5286
|
"type": "string",
|
|
4036
|
-
"
|
|
5287
|
+
"pattern": "^\\S+$",
|
|
5288
|
+
"description": "A Playwright key name; modifiers joined with +."
|
|
4037
5289
|
}
|
|
4038
5290
|
},
|
|
4039
5291
|
"required": [
|
|
4040
5292
|
"do",
|
|
4041
|
-
"
|
|
4042
|
-
"value"
|
|
5293
|
+
"key"
|
|
4043
5294
|
],
|
|
4044
5295
|
"additionalProperties": false
|
|
4045
5296
|
},
|
|
@@ -4048,11 +5299,11 @@
|
|
|
4048
5299
|
"properties": {
|
|
4049
5300
|
"do": {
|
|
4050
5301
|
"type": "string",
|
|
4051
|
-
"const": "
|
|
4052
|
-
"description": "
|
|
5302
|
+
"const": "open",
|
|
5303
|
+
"description": "Opens every matching <details> element (nth picks one), e.g. every disclosure of a card; fails when a match is not a <details> or does not stay open."
|
|
4053
5304
|
},
|
|
4054
5305
|
"target": {
|
|
4055
|
-
"description": "The
|
|
5306
|
+
"description": "The <details> elements, as a locator descriptor with exactly one of role, text, label, testId, css; every match is opened.",
|
|
4056
5307
|
"type": "object",
|
|
4057
5308
|
"properties": {
|
|
4058
5309
|
"role": {
|
|
@@ -4294,11 +5545,11 @@
|
|
|
4294
5545
|
"properties": {
|
|
4295
5546
|
"do": {
|
|
4296
5547
|
"type": "string",
|
|
4297
|
-
"const": "
|
|
4298
|
-
"description": "
|
|
5548
|
+
"const": "hide",
|
|
5549
|
+
"description": "Hides every match but the last keepLast (display: none), e.g. all but the last three columns of a horizontally scrolling chart."
|
|
4299
5550
|
},
|
|
4300
5551
|
"target": {
|
|
4301
|
-
"description": "The
|
|
5552
|
+
"description": "The elements, as a locator descriptor with exactly one of role, text, label, testId, css; every match counts.",
|
|
4302
5553
|
"type": "object",
|
|
4303
5554
|
"properties": {
|
|
4304
5555
|
"role": {
|
|
@@ -4527,31 +5778,18 @@
|
|
|
4527
5778
|
}
|
|
4528
5779
|
},
|
|
4529
5780
|
"additionalProperties": false
|
|
4530
|
-
}
|
|
4531
|
-
},
|
|
4532
|
-
"required": [
|
|
4533
|
-
"do",
|
|
4534
|
-
"target"
|
|
4535
|
-
],
|
|
4536
|
-
"additionalProperties": false
|
|
4537
|
-
},
|
|
4538
|
-
{
|
|
4539
|
-
"type": "object",
|
|
4540
|
-
"properties": {
|
|
4541
|
-
"do": {
|
|
4542
|
-
"type": "string",
|
|
4543
|
-
"const": "press",
|
|
4544
|
-
"description": "Presses a key on the focused element, e.g. Enter."
|
|
4545
5781
|
},
|
|
4546
|
-
"
|
|
4547
|
-
"
|
|
4548
|
-
"
|
|
4549
|
-
"
|
|
5782
|
+
"keepLast": {
|
|
5783
|
+
"default": 0,
|
|
5784
|
+
"description": "How many of the last matches stay shown (0-1000, default 0); the step fails when there are not more matches than this.",
|
|
5785
|
+
"type": "integer",
|
|
5786
|
+
"minimum": 0,
|
|
5787
|
+
"maximum": 1000
|
|
4550
5788
|
}
|
|
4551
5789
|
},
|
|
4552
5790
|
"required": [
|
|
4553
5791
|
"do",
|
|
4554
|
-
"
|
|
5792
|
+
"target"
|
|
4555
5793
|
],
|
|
4556
5794
|
"additionalProperties": false
|
|
4557
5795
|
}
|