@wordpress/e2e-tests 9.20.1-next.v.202609171837.0 → 9.21.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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/e2e-tests",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.21.0",
|
|
4
4
|
"description": "Test plugins and mu-plugins for E2E tests in WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -20,12 +20,11 @@
|
|
|
20
20
|
"url": "https://github.com/WordPress/gutenberg/issues"
|
|
21
21
|
},
|
|
22
22
|
"engines": {
|
|
23
|
-
"node": ">=18.12.0"
|
|
24
|
-
"npm": ">=8.19.2"
|
|
23
|
+
"node": ">=18.12.0"
|
|
25
24
|
},
|
|
26
25
|
"dependencies": {
|
|
27
|
-
"@wordpress/interactivity": "^6.
|
|
28
|
-
"@wordpress/interactivity-router": "^2.
|
|
26
|
+
"@wordpress/interactivity": "^6.56.0",
|
|
27
|
+
"@wordpress/interactivity-router": "^2.56.0"
|
|
29
28
|
},
|
|
30
29
|
"devDependencies": {
|
|
31
30
|
"y-websocket": "^3.0.0"
|
|
@@ -38,5 +37,5 @@
|
|
|
38
37
|
"publishConfig": {
|
|
39
38
|
"access": "public"
|
|
40
39
|
},
|
|
41
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "56d8058eda6e30c4cc8bfc37818fa6ed972f7dc2"
|
|
42
41
|
}
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
<button data-testid="async navigate" data-wp-on--click="actions.asyncNavigate">Async Navigate</button>
|
|
167
167
|
</div>
|
|
168
168
|
|
|
169
|
-
<!-- Count of
|
|
169
|
+
<!-- Count of successful client-side navigations -->
|
|
170
170
|
<div
|
|
171
171
|
data-testid="navigation count"
|
|
172
172
|
data-wp-interactive="directive-context-navigate"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
( function () {
|
|
2
|
+
const el = wp.element.createElement;
|
|
3
|
+
const Fragment = wp.element.Fragment;
|
|
4
|
+
|
|
5
|
+
// Wraps the media picker with a marker exposing the prop plugins use to
|
|
6
|
+
// recognize the featured image.
|
|
7
|
+
wp.hooks.addFilter(
|
|
8
|
+
'editor.MediaUpload',
|
|
9
|
+
'gutenberg-test/media-upload-filter',
|
|
10
|
+
function ( MediaUpload ) {
|
|
11
|
+
return function ( props ) {
|
|
12
|
+
return el(
|
|
13
|
+
Fragment,
|
|
14
|
+
{},
|
|
15
|
+
el( MediaUpload, props ),
|
|
16
|
+
el(
|
|
17
|
+
'div',
|
|
18
|
+
{
|
|
19
|
+
className: 'e2e-media-upload-filter',
|
|
20
|
+
'data-featured-image-flow': String(
|
|
21
|
+
!! props.featuredImageFlow
|
|
22
|
+
),
|
|
23
|
+
},
|
|
24
|
+
'Media upload filter'
|
|
25
|
+
)
|
|
26
|
+
);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
} )();
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* Plugin Name: Gutenberg Test Media Upload Filter
|
|
4
|
+
* Plugin URI: https://github.com/WordPress/gutenberg
|
|
5
|
+
* Author: Gutenberg Team
|
|
6
|
+
*
|
|
7
|
+
* @package gutenberg-test-media-upload-filter
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Enqueues a script extending the media picker through `editor.MediaUpload`.
|
|
12
|
+
*/
|
|
13
|
+
function enqueue_media_upload_filter_plugin_script() {
|
|
14
|
+
wp_enqueue_script(
|
|
15
|
+
'gutenberg-test-media-upload-filter',
|
|
16
|
+
plugins_url( 'media-upload-filter/index.js', __FILE__ ),
|
|
17
|
+
array( 'wp-element', 'wp-hooks', 'wp-editor' ),
|
|
18
|
+
filemtime( plugin_dir_path( __FILE__ ) . 'media-upload-filter/index.js' ),
|
|
19
|
+
true
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
add_action( 'enqueue_block_editor_assets', 'enqueue_media_upload_filter_plugin_script' );
|