@wordpress/e2e-tests 8.2.0 → 8.4.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 +4 -0
- package/package.json +9 -9
- package/plugins/block-bindings.php +13 -3
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@wordpress/e2e-tests",
|
3
|
-
"version": "8.
|
3
|
+
"version": "8.4.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.
|
28
|
-
"@wordpress/interactivity": "^6.
|
29
|
-
"@wordpress/interactivity-router": "^2.
|
30
|
-
"@wordpress/jest-console": "^8.
|
31
|
-
"@wordpress/jest-puppeteer-axe": "^7.
|
32
|
-
"@wordpress/scripts": "^28.
|
33
|
-
"@wordpress/url": "^4.
|
27
|
+
"@wordpress/e2e-test-utils": "^11.4.0",
|
28
|
+
"@wordpress/interactivity": "^6.4.0",
|
29
|
+
"@wordpress/interactivity-router": "^2.4.0",
|
30
|
+
"@wordpress/jest-console": "^8.4.0",
|
31
|
+
"@wordpress/jest-puppeteer-axe": "^7.4.0",
|
32
|
+
"@wordpress/scripts": "^28.4.0",
|
33
|
+
"@wordpress/url": "^4.4.0",
|
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": "
|
50
|
+
"gitHead": "363edb39b8dda8727f652e42cbb8497732693ed2"
|
51
51
|
}
|
@@ -8,9 +8,19 @@
|
|
8
8
|
*/
|
9
9
|
|
10
10
|
/**
|
11
|
-
* Register custom fields.
|
11
|
+
* Register custom fields and custom block bindings sources.
|
12
12
|
*/
|
13
|
-
function
|
13
|
+
function gutenberg_test_block_bindings_registration() {
|
14
|
+
// Register custom block bindings sources.
|
15
|
+
register_block_bindings_source(
|
16
|
+
'core/server-source',
|
17
|
+
array(
|
18
|
+
'label' => 'Server Source',
|
19
|
+
'get_value_callback' => function () {},
|
20
|
+
)
|
21
|
+
);
|
22
|
+
|
23
|
+
// Register custom fields.
|
14
24
|
register_meta(
|
15
25
|
'post',
|
16
26
|
'text_custom_field',
|
@@ -51,4 +61,4 @@ function gutenberg_test_block_bindings_register_custom_fields() {
|
|
51
61
|
)
|
52
62
|
);
|
53
63
|
}
|
54
|
-
add_action( 'init', '
|
64
|
+
add_action( 'init', 'gutenberg_test_block_bindings_registration' );
|