@wordpress/e2e-tests 8.10.1 → 8.11.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 CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 8.11.0 (2024-10-30)
6
+
5
7
  ## 8.10.0 (2024-10-16)
6
8
 
7
9
  ## 8.9.0 (2024-10-03)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/e2e-tests",
3
- "version": "8.10.1",
3
+ "version": "8.11.0",
4
4
  "description": "End-To-End (E2E) tests for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -24,13 +24,13 @@
24
24
  "npm": ">=8.19.2"
25
25
  },
26
26
  "dependencies": {
27
- "@wordpress/e2e-test-utils": "^11.10.0",
28
- "@wordpress/interactivity": "^6.10.0",
29
- "@wordpress/interactivity-router": "^2.10.0",
30
- "@wordpress/jest-console": "^8.10.0",
31
- "@wordpress/jest-puppeteer-axe": "^7.10.0",
32
- "@wordpress/scripts": "^30.3.0",
33
- "@wordpress/url": "^4.10.0",
27
+ "@wordpress/e2e-test-utils": "*",
28
+ "@wordpress/interactivity": "*",
29
+ "@wordpress/interactivity-router": "*",
30
+ "@wordpress/jest-console": "*",
31
+ "@wordpress/jest-puppeteer-axe": "*",
32
+ "@wordpress/scripts": "*",
33
+ "@wordpress/url": "*",
34
34
  "chalk": "^4.0.0",
35
35
  "expect-puppeteer": "^4.4.0",
36
36
  "filenamify": "^4.2.0",
@@ -47,5 +47,5 @@
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  },
50
- "gitHead": "3c61eb662828587b54037df69b291a6256851a56"
50
+ "gitHead": "dcf4613b33b0eda14e203ac30f700ed0db70347f"
51
51
  }
@@ -21,14 +21,17 @@ function gutenberg_test_block_bindings_registration() {
21
21
  'text_field' => array(
22
22
  'label' => 'Text Field Label',
23
23
  'value' => 'Text Field Value',
24
+ 'type' => 'string',
24
25
  ),
25
26
  'url_field' => array(
26
27
  'label' => 'URL Field Label',
27
28
  'value' => $testing_url,
29
+ 'type' => 'string',
28
30
  ),
29
31
  'empty_field' => array(
30
32
  'label' => 'Empty Field Label',
31
33
  'value' => '',
34
+ 'type' => 'string',
32
35
  ),
33
36
  );
34
37
 
@@ -106,6 +109,89 @@ function gutenberg_test_block_bindings_registration() {
106
109
  'type' => 'string',
107
110
  )
108
111
  );
112
+ // Register different types of custom fields for testing.
113
+ register_meta(
114
+ 'post',
115
+ 'string_custom_field',
116
+ array(
117
+ 'label' => 'String custom field',
118
+ 'default' => '',
119
+ 'show_in_rest' => true,
120
+ 'single' => true,
121
+ 'type' => 'string',
122
+ )
123
+ );
124
+ register_meta(
125
+ 'post',
126
+ 'object_custom_field',
127
+ array(
128
+ 'label' => 'Object custom field',
129
+ 'show_in_rest' => array(
130
+ 'schema' => array(
131
+ 'type' => 'object',
132
+ 'properties' => array(
133
+ 'foo' => array(
134
+ 'type' => 'string',
135
+ ),
136
+ ),
137
+ ),
138
+ ),
139
+ 'single' => true,
140
+ 'type' => 'object',
141
+ )
142
+ );
143
+ register_meta(
144
+ 'post',
145
+ 'array_custom_field',
146
+ array(
147
+ 'label' => 'Array custom field',
148
+ 'show_in_rest' => array(
149
+ 'schema' => array(
150
+ 'type' => 'array',
151
+ 'items' => array(
152
+ 'type' => 'string',
153
+ ),
154
+ ),
155
+ ),
156
+ 'single' => true,
157
+ 'type' => 'array',
158
+ 'default' => array(),
159
+ )
160
+ );
161
+ register_meta(
162
+ 'post',
163
+ 'number',
164
+ array(
165
+ 'label' => 'Number custom field',
166
+ 'type' => 'number',
167
+ 'show_in_rest' => true,
168
+ 'single' => true,
169
+ 'default' => 5.5,
170
+ )
171
+ );
172
+ register_meta(
173
+ 'post',
174
+ 'integer',
175
+ array(
176
+ 'label' => 'Integer custom field',
177
+ 'type' => 'integer',
178
+ 'show_in_rest' => true,
179
+ 'single' => true,
180
+ 'default' => 5,
181
+ )
182
+ );
183
+ register_meta(
184
+ 'post',
185
+ 'boolean',
186
+ array(
187
+ 'label' => 'Boolean custom field',
188
+ 'type' => 'boolean',
189
+ 'show_in_rest' => true,
190
+ 'single' => true,
191
+ 'default' => true,
192
+ )
193
+ );
194
+
109
195
  // Register CPT custom fields.
110
196
  register_meta(
111
197
  'post',