@softure-ai/marketing-kit 0.1.11 → 0.2.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/CHANGELOG.md +16 -0
- package/README.md +36 -6
- package/dist/cli/main.js +3 -4
- package/dist/cli/main.js.map +1 -1
- package/dist/config/config.d.ts +3 -3
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +2 -2
- package/dist/config/config.js.map +1 -1
- package/dist/config/schema.d.ts +712 -71
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +33 -7
- package/dist/config/schema.js.map +1 -1
- package/dist/config/shot-steps.d.ts +156 -0
- package/dist/config/shot-steps.d.ts.map +1 -1
- package/dist/config/shot-steps.js +9 -1
- package/dist/config/shot-steps.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/messages/index.d.ts +10 -22
- package/dist/messages/index.d.ts.map +1 -1
- package/dist/messages/index.js +8 -6
- package/dist/messages/index.js.map +1 -1
- package/dist/screenshot/screenshot.d.ts.map +1 -1
- package/dist/screenshot/screenshot.js +39 -2
- package/dist/screenshot/screenshot.js.map +1 -1
- package/dist/screenshot/steps.d.ts +1 -1
- package/dist/screenshot/steps.d.ts.map +1 -1
- package/dist/screenshot/steps.js +15 -1
- package/dist/screenshot/steps.js.map +1 -1
- package/package.json +1 -1
- package/schema/marketing.schema.json +789 -208
- package/src/cli/main.ts +3 -4
- package/src/config/config.ts +4 -5
- package/src/config/schema.ts +35 -8
- package/src/config/shot-steps.ts +9 -1
- package/src/index.ts +1 -2
- package/src/messages/index.ts +16 -8
- package/src/screenshot/screenshot.ts +35 -2
- package/src/screenshot/steps.ts +15 -1
- package/dist/messages/pl.d.ts +0 -3
- package/dist/messages/pl.d.ts.map +0 -1
- package/dist/messages/pl.js +0 -21
- package/dist/messages/pl.js.map +0 -1
- package/src/messages/pl.ts +0 -22
|
@@ -17,7 +17,91 @@
|
|
|
17
17
|
"locale": {
|
|
18
18
|
"type": "string",
|
|
19
19
|
"pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})*$",
|
|
20
|
-
"description": "BCP 47 locale (en-US): the recording browser's locale
|
|
20
|
+
"description": "BCP 47 locale (en-US): the recording browser's locale and <html lang>. The copy is English unless brand.messages translates it."
|
|
21
|
+
},
|
|
22
|
+
"messages": {
|
|
23
|
+
"default": {},
|
|
24
|
+
"description": "The copy of the posts and the film, every key optional (src/messages/en.ts): the product's own translation, or changed English copy. A key left out reads English.",
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"posts": {
|
|
28
|
+
"description": "The copy of posts.md.",
|
|
29
|
+
"type": "object",
|
|
30
|
+
"properties": {
|
|
31
|
+
"title": {
|
|
32
|
+
"description": "src/messages/en.ts posts.title: the heading of posts.md, {title} is the film's title; English when left out.",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"minLength": 1
|
|
35
|
+
},
|
|
36
|
+
"linkInBio": {
|
|
37
|
+
"description": "src/messages/en.ts posts.linkInBio: the call to action where a caption link is not clickable; English when left out.",
|
|
38
|
+
"type": "string",
|
|
39
|
+
"minLength": 1
|
|
40
|
+
},
|
|
41
|
+
"bioLink": {
|
|
42
|
+
"description": "src/messages/en.ts posts.bioLink: the bio link line, {link}; English when left out.",
|
|
43
|
+
"type": "string",
|
|
44
|
+
"minLength": 1
|
|
45
|
+
},
|
|
46
|
+
"postLink": {
|
|
47
|
+
"description": "src/messages/en.ts posts.postLink: the post link line, {link}; English when left out.",
|
|
48
|
+
"type": "string",
|
|
49
|
+
"minLength": 1
|
|
50
|
+
},
|
|
51
|
+
"platforms": {
|
|
52
|
+
"description": "The platform names in posts.md.",
|
|
53
|
+
"type": "object",
|
|
54
|
+
"properties": {
|
|
55
|
+
"instagram": {
|
|
56
|
+
"description": "src/messages/en.ts posts.platforms.instagram; English when left out.",
|
|
57
|
+
"type": "string",
|
|
58
|
+
"minLength": 1
|
|
59
|
+
},
|
|
60
|
+
"facebook": {
|
|
61
|
+
"description": "src/messages/en.ts posts.platforms.facebook; English when left out.",
|
|
62
|
+
"type": "string",
|
|
63
|
+
"minLength": 1
|
|
64
|
+
},
|
|
65
|
+
"tiktok": {
|
|
66
|
+
"description": "src/messages/en.ts posts.platforms.tiktok; English when left out.",
|
|
67
|
+
"type": "string",
|
|
68
|
+
"minLength": 1
|
|
69
|
+
},
|
|
70
|
+
"youtube": {
|
|
71
|
+
"description": "src/messages/en.ts posts.platforms.youtube; English when left out.",
|
|
72
|
+
"type": "string",
|
|
73
|
+
"minLength": 1
|
|
74
|
+
},
|
|
75
|
+
"linkedin": {
|
|
76
|
+
"description": "src/messages/en.ts posts.platforms.linkedin; English when left out.",
|
|
77
|
+
"type": "string",
|
|
78
|
+
"minLength": 1
|
|
79
|
+
},
|
|
80
|
+
"x": {
|
|
81
|
+
"description": "src/messages/en.ts posts.platforms.x; English when left out.",
|
|
82
|
+
"type": "string",
|
|
83
|
+
"minLength": 1
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"additionalProperties": false
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"additionalProperties": false
|
|
90
|
+
},
|
|
91
|
+
"film": {
|
|
92
|
+
"description": "The copy inside the film.",
|
|
93
|
+
"type": "object",
|
|
94
|
+
"properties": {
|
|
95
|
+
"persona": {
|
|
96
|
+
"description": "src/messages/en.ts film.persona: the persona card's first line, {name} and {age}; English when left out.",
|
|
97
|
+
"type": "string",
|
|
98
|
+
"minLength": 1
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"additionalProperties": false
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"additionalProperties": false
|
|
21
105
|
},
|
|
22
106
|
"timezone": {
|
|
23
107
|
"type": "string",
|
|
@@ -3998,213 +4082,459 @@
|
|
|
3998
4082
|
"target"
|
|
3999
4083
|
],
|
|
4000
4084
|
"additionalProperties": false
|
|
4001
|
-
}
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4085
|
+
},
|
|
4086
|
+
{
|
|
4087
|
+
"type": "object",
|
|
4088
|
+
"properties": {
|
|
4089
|
+
"do": {
|
|
4090
|
+
"type": "string",
|
|
4091
|
+
"const": "flatten",
|
|
4092
|
+
"description": "Removes the top border and top margin of every match, e.g. the line above the first row a print state still shows."
|
|
4093
|
+
},
|
|
4094
|
+
"target": {
|
|
4095
|
+
"description": "The elements, as a locator descriptor with exactly one of role, text, label, testId, css; every match is flattened.",
|
|
4096
|
+
"type": "object",
|
|
4097
|
+
"properties": {
|
|
4098
|
+
"role": {
|
|
4099
|
+
"description": "Find by ARIA role (Playwright getByRole), e.g. button; narrow it with name.",
|
|
4100
|
+
"type": "string",
|
|
4101
|
+
"enum": [
|
|
4102
|
+
"alert",
|
|
4103
|
+
"alertdialog",
|
|
4104
|
+
"application",
|
|
4105
|
+
"article",
|
|
4106
|
+
"banner",
|
|
4107
|
+
"blockquote",
|
|
4108
|
+
"button",
|
|
4109
|
+
"caption",
|
|
4110
|
+
"cell",
|
|
4111
|
+
"checkbox",
|
|
4112
|
+
"code",
|
|
4113
|
+
"columnheader",
|
|
4114
|
+
"combobox",
|
|
4115
|
+
"complementary",
|
|
4116
|
+
"contentinfo",
|
|
4117
|
+
"definition",
|
|
4118
|
+
"deletion",
|
|
4119
|
+
"dialog",
|
|
4120
|
+
"directory",
|
|
4121
|
+
"document",
|
|
4122
|
+
"emphasis",
|
|
4123
|
+
"feed",
|
|
4124
|
+
"figure",
|
|
4125
|
+
"form",
|
|
4126
|
+
"generic",
|
|
4127
|
+
"grid",
|
|
4128
|
+
"gridcell",
|
|
4129
|
+
"group",
|
|
4130
|
+
"heading",
|
|
4131
|
+
"img",
|
|
4132
|
+
"insertion",
|
|
4133
|
+
"link",
|
|
4134
|
+
"list",
|
|
4135
|
+
"listbox",
|
|
4136
|
+
"listitem",
|
|
4137
|
+
"log",
|
|
4138
|
+
"main",
|
|
4139
|
+
"marquee",
|
|
4140
|
+
"math",
|
|
4141
|
+
"meter",
|
|
4142
|
+
"menu",
|
|
4143
|
+
"menubar",
|
|
4144
|
+
"menuitem",
|
|
4145
|
+
"menuitemcheckbox",
|
|
4146
|
+
"menuitemradio",
|
|
4147
|
+
"navigation",
|
|
4148
|
+
"none",
|
|
4149
|
+
"note",
|
|
4150
|
+
"option",
|
|
4151
|
+
"paragraph",
|
|
4152
|
+
"presentation",
|
|
4153
|
+
"progressbar",
|
|
4154
|
+
"radio",
|
|
4155
|
+
"radiogroup",
|
|
4156
|
+
"region",
|
|
4157
|
+
"row",
|
|
4158
|
+
"rowgroup",
|
|
4159
|
+
"rowheader",
|
|
4160
|
+
"scrollbar",
|
|
4161
|
+
"search",
|
|
4162
|
+
"searchbox",
|
|
4163
|
+
"separator",
|
|
4164
|
+
"slider",
|
|
4165
|
+
"spinbutton",
|
|
4166
|
+
"status",
|
|
4167
|
+
"strong",
|
|
4168
|
+
"subscript",
|
|
4169
|
+
"superscript",
|
|
4170
|
+
"switch",
|
|
4171
|
+
"tab",
|
|
4172
|
+
"table",
|
|
4173
|
+
"tablist",
|
|
4174
|
+
"tabpanel",
|
|
4175
|
+
"term",
|
|
4176
|
+
"textbox",
|
|
4177
|
+
"time",
|
|
4178
|
+
"timer",
|
|
4179
|
+
"toolbar",
|
|
4180
|
+
"tooltip",
|
|
4181
|
+
"tree",
|
|
4182
|
+
"treegrid",
|
|
4183
|
+
"treeitem"
|
|
4184
|
+
]
|
|
4185
|
+
},
|
|
4186
|
+
"name": {
|
|
4187
|
+
"description": "The accessible name, with role: a string or { regex, flags }.",
|
|
4188
|
+
"anyOf": [
|
|
4189
|
+
{
|
|
4190
|
+
"type": "string",
|
|
4191
|
+
"minLength": 1
|
|
4192
|
+
},
|
|
4193
|
+
{
|
|
4194
|
+
"type": "object",
|
|
4195
|
+
"properties": {
|
|
4196
|
+
"regex": {
|
|
4197
|
+
"type": "string",
|
|
4198
|
+
"minLength": 1,
|
|
4199
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4200
|
+
},
|
|
4201
|
+
"flags": {
|
|
4202
|
+
"default": "",
|
|
4203
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4204
|
+
"type": "string",
|
|
4205
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4206
|
+
}
|
|
4207
|
+
},
|
|
4208
|
+
"required": [
|
|
4209
|
+
"regex"
|
|
4210
|
+
],
|
|
4211
|
+
"additionalProperties": false
|
|
4212
|
+
}
|
|
4213
|
+
]
|
|
4214
|
+
},
|
|
4215
|
+
"text": {
|
|
4216
|
+
"description": "Find by visible text (Playwright getByText): a substring, or { regex, flags }.",
|
|
4217
|
+
"anyOf": [
|
|
4218
|
+
{
|
|
4219
|
+
"type": "string",
|
|
4220
|
+
"minLength": 1
|
|
4221
|
+
},
|
|
4222
|
+
{
|
|
4223
|
+
"type": "object",
|
|
4224
|
+
"properties": {
|
|
4225
|
+
"regex": {
|
|
4226
|
+
"type": "string",
|
|
4227
|
+
"minLength": 1,
|
|
4228
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4229
|
+
},
|
|
4230
|
+
"flags": {
|
|
4231
|
+
"default": "",
|
|
4232
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4233
|
+
"type": "string",
|
|
4234
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4235
|
+
}
|
|
4236
|
+
},
|
|
4237
|
+
"required": [
|
|
4238
|
+
"regex"
|
|
4239
|
+
],
|
|
4240
|
+
"additionalProperties": false
|
|
4241
|
+
}
|
|
4242
|
+
]
|
|
4243
|
+
},
|
|
4244
|
+
"label": {
|
|
4245
|
+
"description": "Find a form control by its label (Playwright getByLabel): a substring, or { regex, flags }.",
|
|
4246
|
+
"anyOf": [
|
|
4247
|
+
{
|
|
4248
|
+
"type": "string",
|
|
4249
|
+
"minLength": 1
|
|
4250
|
+
},
|
|
4251
|
+
{
|
|
4252
|
+
"type": "object",
|
|
4253
|
+
"properties": {
|
|
4254
|
+
"regex": {
|
|
4255
|
+
"type": "string",
|
|
4256
|
+
"minLength": 1,
|
|
4257
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4258
|
+
},
|
|
4259
|
+
"flags": {
|
|
4260
|
+
"default": "",
|
|
4261
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4262
|
+
"type": "string",
|
|
4263
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4264
|
+
}
|
|
4265
|
+
},
|
|
4266
|
+
"required": [
|
|
4267
|
+
"regex"
|
|
4268
|
+
],
|
|
4269
|
+
"additionalProperties": false
|
|
4270
|
+
}
|
|
4271
|
+
]
|
|
4272
|
+
},
|
|
4273
|
+
"testId": {
|
|
4274
|
+
"description": "Find by data-testid (Playwright getByTestId).",
|
|
4275
|
+
"type": "string",
|
|
4276
|
+
"minLength": 1
|
|
4277
|
+
},
|
|
4278
|
+
"css": {
|
|
4279
|
+
"description": "Find by CSS selector; narrow it with hasText.",
|
|
4280
|
+
"type": "string",
|
|
4281
|
+
"minLength": 1
|
|
4282
|
+
},
|
|
4283
|
+
"hasText": {
|
|
4284
|
+
"description": "Only elements containing this text, with css.",
|
|
4285
|
+
"anyOf": [
|
|
4286
|
+
{
|
|
4287
|
+
"type": "string",
|
|
4288
|
+
"minLength": 1
|
|
4289
|
+
},
|
|
4290
|
+
{
|
|
4291
|
+
"type": "object",
|
|
4292
|
+
"properties": {
|
|
4293
|
+
"regex": {
|
|
4294
|
+
"type": "string",
|
|
4295
|
+
"minLength": 1,
|
|
4296
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4297
|
+
},
|
|
4298
|
+
"flags": {
|
|
4299
|
+
"default": "",
|
|
4300
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4301
|
+
"type": "string",
|
|
4302
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4303
|
+
}
|
|
4304
|
+
},
|
|
4305
|
+
"required": [
|
|
4306
|
+
"regex"
|
|
4307
|
+
],
|
|
4308
|
+
"additionalProperties": false
|
|
4309
|
+
}
|
|
4310
|
+
]
|
|
4311
|
+
},
|
|
4312
|
+
"exact": {
|
|
4313
|
+
"description": "Whole and case-sensitive match of a string name, text or label (default false).",
|
|
4314
|
+
"type": "boolean"
|
|
4315
|
+
},
|
|
4316
|
+
"nth": {
|
|
4317
|
+
"description": "The n-th match (0 = the first); without it, a locator that matches several elements fails.",
|
|
4318
|
+
"type": "integer",
|
|
4319
|
+
"minimum": 0,
|
|
4320
|
+
"maximum": 9007199254740991
|
|
4321
|
+
}
|
|
4322
|
+
},
|
|
4323
|
+
"additionalProperties": false
|
|
4324
|
+
}
|
|
4325
|
+
},
|
|
4326
|
+
"required": [
|
|
4327
|
+
"do",
|
|
4328
|
+
"target"
|
|
4329
|
+
],
|
|
4330
|
+
"additionalProperties": false
|
|
4331
|
+
}
|
|
4332
|
+
]
|
|
4333
|
+
}
|
|
4334
|
+
},
|
|
4335
|
+
"crop": {
|
|
4336
|
+
"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.",
|
|
4337
|
+
"type": "object",
|
|
4338
|
+
"properties": {
|
|
4339
|
+
"target": {
|
|
4340
|
+
"description": "The element framed: exactly one match (nth picks one of several).",
|
|
4341
|
+
"type": "object",
|
|
4342
|
+
"properties": {
|
|
4343
|
+
"role": {
|
|
4344
|
+
"description": "Find by ARIA role (Playwright getByRole), e.g. button; narrow it with name.",
|
|
4345
|
+
"type": "string",
|
|
4346
|
+
"enum": [
|
|
4347
|
+
"alert",
|
|
4348
|
+
"alertdialog",
|
|
4349
|
+
"application",
|
|
4350
|
+
"article",
|
|
4351
|
+
"banner",
|
|
4352
|
+
"blockquote",
|
|
4353
|
+
"button",
|
|
4354
|
+
"caption",
|
|
4355
|
+
"cell",
|
|
4356
|
+
"checkbox",
|
|
4357
|
+
"code",
|
|
4358
|
+
"columnheader",
|
|
4359
|
+
"combobox",
|
|
4360
|
+
"complementary",
|
|
4361
|
+
"contentinfo",
|
|
4362
|
+
"definition",
|
|
4363
|
+
"deletion",
|
|
4364
|
+
"dialog",
|
|
4365
|
+
"directory",
|
|
4366
|
+
"document",
|
|
4367
|
+
"emphasis",
|
|
4368
|
+
"feed",
|
|
4369
|
+
"figure",
|
|
4370
|
+
"form",
|
|
4371
|
+
"generic",
|
|
4372
|
+
"grid",
|
|
4373
|
+
"gridcell",
|
|
4374
|
+
"group",
|
|
4375
|
+
"heading",
|
|
4376
|
+
"img",
|
|
4377
|
+
"insertion",
|
|
4378
|
+
"link",
|
|
4379
|
+
"list",
|
|
4380
|
+
"listbox",
|
|
4381
|
+
"listitem",
|
|
4382
|
+
"log",
|
|
4383
|
+
"main",
|
|
4384
|
+
"marquee",
|
|
4385
|
+
"math",
|
|
4386
|
+
"meter",
|
|
4387
|
+
"menu",
|
|
4388
|
+
"menubar",
|
|
4389
|
+
"menuitem",
|
|
4390
|
+
"menuitemcheckbox",
|
|
4391
|
+
"menuitemradio",
|
|
4392
|
+
"navigation",
|
|
4393
|
+
"none",
|
|
4394
|
+
"note",
|
|
4395
|
+
"option",
|
|
4396
|
+
"paragraph",
|
|
4397
|
+
"presentation",
|
|
4398
|
+
"progressbar",
|
|
4399
|
+
"radio",
|
|
4400
|
+
"radiogroup",
|
|
4401
|
+
"region",
|
|
4402
|
+
"row",
|
|
4403
|
+
"rowgroup",
|
|
4404
|
+
"rowheader",
|
|
4405
|
+
"scrollbar",
|
|
4406
|
+
"search",
|
|
4407
|
+
"searchbox",
|
|
4408
|
+
"separator",
|
|
4409
|
+
"slider",
|
|
4410
|
+
"spinbutton",
|
|
4411
|
+
"status",
|
|
4412
|
+
"strong",
|
|
4413
|
+
"subscript",
|
|
4414
|
+
"superscript",
|
|
4415
|
+
"switch",
|
|
4416
|
+
"tab",
|
|
4417
|
+
"table",
|
|
4418
|
+
"tablist",
|
|
4419
|
+
"tabpanel",
|
|
4420
|
+
"term",
|
|
4421
|
+
"textbox",
|
|
4422
|
+
"time",
|
|
4423
|
+
"timer",
|
|
4424
|
+
"toolbar",
|
|
4425
|
+
"tooltip",
|
|
4426
|
+
"tree",
|
|
4427
|
+
"treegrid",
|
|
4428
|
+
"treeitem"
|
|
4429
|
+
]
|
|
4430
|
+
},
|
|
4431
|
+
"name": {
|
|
4432
|
+
"description": "The accessible name, with role: a string or { regex, flags }.",
|
|
4433
|
+
"anyOf": [
|
|
4434
|
+
{
|
|
4435
|
+
"type": "string",
|
|
4436
|
+
"minLength": 1
|
|
4437
|
+
},
|
|
4438
|
+
{
|
|
4439
|
+
"type": "object",
|
|
4440
|
+
"properties": {
|
|
4441
|
+
"regex": {
|
|
4442
|
+
"type": "string",
|
|
4443
|
+
"minLength": 1,
|
|
4444
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4445
|
+
},
|
|
4446
|
+
"flags": {
|
|
4447
|
+
"default": "",
|
|
4448
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4449
|
+
"type": "string",
|
|
4450
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4451
|
+
}
|
|
4452
|
+
},
|
|
4453
|
+
"required": [
|
|
4454
|
+
"regex"
|
|
4455
|
+
],
|
|
4456
|
+
"additionalProperties": false
|
|
4457
|
+
}
|
|
4458
|
+
]
|
|
4459
|
+
},
|
|
4460
|
+
"text": {
|
|
4461
|
+
"description": "Find by visible text (Playwright getByText): a substring, or { regex, flags }.",
|
|
4462
|
+
"anyOf": [
|
|
4463
|
+
{
|
|
4464
|
+
"type": "string",
|
|
4465
|
+
"minLength": 1
|
|
4466
|
+
},
|
|
4467
|
+
{
|
|
4468
|
+
"type": "object",
|
|
4469
|
+
"properties": {
|
|
4470
|
+
"regex": {
|
|
4471
|
+
"type": "string",
|
|
4472
|
+
"minLength": 1,
|
|
4473
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4474
|
+
},
|
|
4475
|
+
"flags": {
|
|
4476
|
+
"default": "",
|
|
4477
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4478
|
+
"type": "string",
|
|
4479
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4480
|
+
}
|
|
4481
|
+
},
|
|
4482
|
+
"required": [
|
|
4483
|
+
"regex"
|
|
4484
|
+
],
|
|
4485
|
+
"additionalProperties": false
|
|
4486
|
+
}
|
|
4487
|
+
]
|
|
4488
|
+
},
|
|
4489
|
+
"label": {
|
|
4490
|
+
"description": "Find a form control by its label (Playwright getByLabel): a substring, or { regex, flags }.",
|
|
4491
|
+
"anyOf": [
|
|
4492
|
+
{
|
|
4493
|
+
"type": "string",
|
|
4494
|
+
"minLength": 1
|
|
4495
|
+
},
|
|
4496
|
+
{
|
|
4497
|
+
"type": "object",
|
|
4498
|
+
"properties": {
|
|
4499
|
+
"regex": {
|
|
4500
|
+
"type": "string",
|
|
4501
|
+
"minLength": 1,
|
|
4502
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
4503
|
+
},
|
|
4504
|
+
"flags": {
|
|
4505
|
+
"default": "",
|
|
4506
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
4507
|
+
"type": "string",
|
|
4508
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
4509
|
+
}
|
|
4510
|
+
},
|
|
4511
|
+
"required": [
|
|
4512
|
+
"regex"
|
|
4513
|
+
],
|
|
4514
|
+
"additionalProperties": false
|
|
4515
|
+
}
|
|
4516
|
+
]
|
|
4517
|
+
},
|
|
4518
|
+
"testId": {
|
|
4519
|
+
"description": "Find by data-testid (Playwright getByTestId).",
|
|
4520
|
+
"type": "string",
|
|
4521
|
+
"minLength": 1
|
|
4522
|
+
},
|
|
4523
|
+
"css": {
|
|
4524
|
+
"description": "Find by CSS selector; narrow it with hasText.",
|
|
4525
|
+
"type": "string",
|
|
4526
|
+
"minLength": 1
|
|
4527
|
+
},
|
|
4528
|
+
"hasText": {
|
|
4529
|
+
"description": "Only elements containing this text, with css.",
|
|
4530
|
+
"anyOf": [
|
|
4531
|
+
{
|
|
4532
|
+
"type": "string",
|
|
4533
|
+
"minLength": 1
|
|
4534
|
+
},
|
|
4535
|
+
{
|
|
4536
|
+
"type": "object",
|
|
4537
|
+
"properties": {
|
|
4208
4538
|
"regex": {
|
|
4209
4539
|
"type": "string",
|
|
4210
4540
|
"minLength": 1,
|
|
@@ -4479,6 +4809,11 @@
|
|
|
4479
4809
|
"type": "integer",
|
|
4480
4810
|
"minimum": 0,
|
|
4481
4811
|
"maximum": 200
|
|
4812
|
+
},
|
|
4813
|
+
"fill": {
|
|
4814
|
+
"default": false,
|
|
4815
|
+
"description": "Stretches a target shorter than the frame down to the frame's bottom edge and centres its content vertically, so no page shows below it (default false). Not with top.",
|
|
4816
|
+
"type": "boolean"
|
|
4482
4817
|
}
|
|
4483
4818
|
},
|
|
4484
4819
|
"required": [
|
|
@@ -5792,6 +6127,252 @@
|
|
|
5792
6127
|
"target"
|
|
5793
6128
|
],
|
|
5794
6129
|
"additionalProperties": false
|
|
6130
|
+
},
|
|
6131
|
+
{
|
|
6132
|
+
"type": "object",
|
|
6133
|
+
"properties": {
|
|
6134
|
+
"do": {
|
|
6135
|
+
"type": "string",
|
|
6136
|
+
"const": "flatten",
|
|
6137
|
+
"description": "Removes the top border and top margin of every match, e.g. the line above the first row a print state still shows."
|
|
6138
|
+
},
|
|
6139
|
+
"target": {
|
|
6140
|
+
"description": "The elements, as a locator descriptor with exactly one of role, text, label, testId, css; every match is flattened.",
|
|
6141
|
+
"type": "object",
|
|
6142
|
+
"properties": {
|
|
6143
|
+
"role": {
|
|
6144
|
+
"description": "Find by ARIA role (Playwright getByRole), e.g. button; narrow it with name.",
|
|
6145
|
+
"type": "string",
|
|
6146
|
+
"enum": [
|
|
6147
|
+
"alert",
|
|
6148
|
+
"alertdialog",
|
|
6149
|
+
"application",
|
|
6150
|
+
"article",
|
|
6151
|
+
"banner",
|
|
6152
|
+
"blockquote",
|
|
6153
|
+
"button",
|
|
6154
|
+
"caption",
|
|
6155
|
+
"cell",
|
|
6156
|
+
"checkbox",
|
|
6157
|
+
"code",
|
|
6158
|
+
"columnheader",
|
|
6159
|
+
"combobox",
|
|
6160
|
+
"complementary",
|
|
6161
|
+
"contentinfo",
|
|
6162
|
+
"definition",
|
|
6163
|
+
"deletion",
|
|
6164
|
+
"dialog",
|
|
6165
|
+
"directory",
|
|
6166
|
+
"document",
|
|
6167
|
+
"emphasis",
|
|
6168
|
+
"feed",
|
|
6169
|
+
"figure",
|
|
6170
|
+
"form",
|
|
6171
|
+
"generic",
|
|
6172
|
+
"grid",
|
|
6173
|
+
"gridcell",
|
|
6174
|
+
"group",
|
|
6175
|
+
"heading",
|
|
6176
|
+
"img",
|
|
6177
|
+
"insertion",
|
|
6178
|
+
"link",
|
|
6179
|
+
"list",
|
|
6180
|
+
"listbox",
|
|
6181
|
+
"listitem",
|
|
6182
|
+
"log",
|
|
6183
|
+
"main",
|
|
6184
|
+
"marquee",
|
|
6185
|
+
"math",
|
|
6186
|
+
"meter",
|
|
6187
|
+
"menu",
|
|
6188
|
+
"menubar",
|
|
6189
|
+
"menuitem",
|
|
6190
|
+
"menuitemcheckbox",
|
|
6191
|
+
"menuitemradio",
|
|
6192
|
+
"navigation",
|
|
6193
|
+
"none",
|
|
6194
|
+
"note",
|
|
6195
|
+
"option",
|
|
6196
|
+
"paragraph",
|
|
6197
|
+
"presentation",
|
|
6198
|
+
"progressbar",
|
|
6199
|
+
"radio",
|
|
6200
|
+
"radiogroup",
|
|
6201
|
+
"region",
|
|
6202
|
+
"row",
|
|
6203
|
+
"rowgroup",
|
|
6204
|
+
"rowheader",
|
|
6205
|
+
"scrollbar",
|
|
6206
|
+
"search",
|
|
6207
|
+
"searchbox",
|
|
6208
|
+
"separator",
|
|
6209
|
+
"slider",
|
|
6210
|
+
"spinbutton",
|
|
6211
|
+
"status",
|
|
6212
|
+
"strong",
|
|
6213
|
+
"subscript",
|
|
6214
|
+
"superscript",
|
|
6215
|
+
"switch",
|
|
6216
|
+
"tab",
|
|
6217
|
+
"table",
|
|
6218
|
+
"tablist",
|
|
6219
|
+
"tabpanel",
|
|
6220
|
+
"term",
|
|
6221
|
+
"textbox",
|
|
6222
|
+
"time",
|
|
6223
|
+
"timer",
|
|
6224
|
+
"toolbar",
|
|
6225
|
+
"tooltip",
|
|
6226
|
+
"tree",
|
|
6227
|
+
"treegrid",
|
|
6228
|
+
"treeitem"
|
|
6229
|
+
]
|
|
6230
|
+
},
|
|
6231
|
+
"name": {
|
|
6232
|
+
"description": "The accessible name, with role: a string or { regex, flags }.",
|
|
6233
|
+
"anyOf": [
|
|
6234
|
+
{
|
|
6235
|
+
"type": "string",
|
|
6236
|
+
"minLength": 1
|
|
6237
|
+
},
|
|
6238
|
+
{
|
|
6239
|
+
"type": "object",
|
|
6240
|
+
"properties": {
|
|
6241
|
+
"regex": {
|
|
6242
|
+
"type": "string",
|
|
6243
|
+
"minLength": 1,
|
|
6244
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
6245
|
+
},
|
|
6246
|
+
"flags": {
|
|
6247
|
+
"default": "",
|
|
6248
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
6249
|
+
"type": "string",
|
|
6250
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
6251
|
+
}
|
|
6252
|
+
},
|
|
6253
|
+
"required": [
|
|
6254
|
+
"regex"
|
|
6255
|
+
],
|
|
6256
|
+
"additionalProperties": false
|
|
6257
|
+
}
|
|
6258
|
+
]
|
|
6259
|
+
},
|
|
6260
|
+
"text": {
|
|
6261
|
+
"description": "Find by visible text (Playwright getByText): a substring, or { regex, flags }.",
|
|
6262
|
+
"anyOf": [
|
|
6263
|
+
{
|
|
6264
|
+
"type": "string",
|
|
6265
|
+
"minLength": 1
|
|
6266
|
+
},
|
|
6267
|
+
{
|
|
6268
|
+
"type": "object",
|
|
6269
|
+
"properties": {
|
|
6270
|
+
"regex": {
|
|
6271
|
+
"type": "string",
|
|
6272
|
+
"minLength": 1,
|
|
6273
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
6274
|
+
},
|
|
6275
|
+
"flags": {
|
|
6276
|
+
"default": "",
|
|
6277
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
6278
|
+
"type": "string",
|
|
6279
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
6280
|
+
}
|
|
6281
|
+
},
|
|
6282
|
+
"required": [
|
|
6283
|
+
"regex"
|
|
6284
|
+
],
|
|
6285
|
+
"additionalProperties": false
|
|
6286
|
+
}
|
|
6287
|
+
]
|
|
6288
|
+
},
|
|
6289
|
+
"label": {
|
|
6290
|
+
"description": "Find a form control by its label (Playwright getByLabel): a substring, or { regex, flags }.",
|
|
6291
|
+
"anyOf": [
|
|
6292
|
+
{
|
|
6293
|
+
"type": "string",
|
|
6294
|
+
"minLength": 1
|
|
6295
|
+
},
|
|
6296
|
+
{
|
|
6297
|
+
"type": "object",
|
|
6298
|
+
"properties": {
|
|
6299
|
+
"regex": {
|
|
6300
|
+
"type": "string",
|
|
6301
|
+
"minLength": 1,
|
|
6302
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
6303
|
+
},
|
|
6304
|
+
"flags": {
|
|
6305
|
+
"default": "",
|
|
6306
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
6307
|
+
"type": "string",
|
|
6308
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
6309
|
+
}
|
|
6310
|
+
},
|
|
6311
|
+
"required": [
|
|
6312
|
+
"regex"
|
|
6313
|
+
],
|
|
6314
|
+
"additionalProperties": false
|
|
6315
|
+
}
|
|
6316
|
+
]
|
|
6317
|
+
},
|
|
6318
|
+
"testId": {
|
|
6319
|
+
"description": "Find by data-testid (Playwright getByTestId).",
|
|
6320
|
+
"type": "string",
|
|
6321
|
+
"minLength": 1
|
|
6322
|
+
},
|
|
6323
|
+
"css": {
|
|
6324
|
+
"description": "Find by CSS selector; narrow it with hasText.",
|
|
6325
|
+
"type": "string",
|
|
6326
|
+
"minLength": 1
|
|
6327
|
+
},
|
|
6328
|
+
"hasText": {
|
|
6329
|
+
"description": "Only elements containing this text, with css.",
|
|
6330
|
+
"anyOf": [
|
|
6331
|
+
{
|
|
6332
|
+
"type": "string",
|
|
6333
|
+
"minLength": 1
|
|
6334
|
+
},
|
|
6335
|
+
{
|
|
6336
|
+
"type": "object",
|
|
6337
|
+
"properties": {
|
|
6338
|
+
"regex": {
|
|
6339
|
+
"type": "string",
|
|
6340
|
+
"minLength": 1,
|
|
6341
|
+
"description": "A JavaScript regular expression source, without slashes."
|
|
6342
|
+
},
|
|
6343
|
+
"flags": {
|
|
6344
|
+
"default": "",
|
|
6345
|
+
"description": "Any of i, m, s, u, each at most once.",
|
|
6346
|
+
"type": "string",
|
|
6347
|
+
"pattern": "^(?!.*(.).*\\1)[imsu]*$"
|
|
6348
|
+
}
|
|
6349
|
+
},
|
|
6350
|
+
"required": [
|
|
6351
|
+
"regex"
|
|
6352
|
+
],
|
|
6353
|
+
"additionalProperties": false
|
|
6354
|
+
}
|
|
6355
|
+
]
|
|
6356
|
+
},
|
|
6357
|
+
"exact": {
|
|
6358
|
+
"description": "Whole and case-sensitive match of a string name, text or label (default false).",
|
|
6359
|
+
"type": "boolean"
|
|
6360
|
+
},
|
|
6361
|
+
"nth": {
|
|
6362
|
+
"description": "The n-th match (0 = the first); without it, a locator that matches several elements fails.",
|
|
6363
|
+
"type": "integer",
|
|
6364
|
+
"minimum": 0,
|
|
6365
|
+
"maximum": 9007199254740991
|
|
6366
|
+
}
|
|
6367
|
+
},
|
|
6368
|
+
"additionalProperties": false
|
|
6369
|
+
}
|
|
6370
|
+
},
|
|
6371
|
+
"required": [
|
|
6372
|
+
"do",
|
|
6373
|
+
"target"
|
|
6374
|
+
],
|
|
6375
|
+
"additionalProperties": false
|
|
5795
6376
|
}
|
|
5796
6377
|
]
|
|
5797
6378
|
},
|