@wordpress/e2e-tests 9.8.1-next.v.202604091042.0 → 9.9.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
+ ## 9.9.0 (2026-04-15)
6
+
5
7
  ## 9.8.0 (2026-04-01)
6
8
 
7
9
  ## 9.7.0 (2026-03-18)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/e2e-tests",
3
- "version": "9.8.1-next.v.202604091042.0+668146787",
3
+ "version": "9.9.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",
@@ -24,8 +24,8 @@
24
24
  "npm": ">=8.19.2"
25
25
  },
26
26
  "dependencies": {
27
- "@wordpress/interactivity": "^6.43.1-next.v.202604091042.0+668146787",
28
- "@wordpress/interactivity-router": "^2.43.1-next.v.202604091042.0+668146787"
27
+ "@wordpress/interactivity": "^6.44.0",
28
+ "@wordpress/interactivity-router": "^2.44.0"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "jest": ">=29",
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "73606df74f1c38a084bfa5db97205259ef817593"
39
+ "gitHead": "b862d8c84121a47bbeff882f6c87e61681ce2e0d"
40
40
  }
@@ -33,3 +33,23 @@ registerConnector( 'test_custom_service', {
33
33
  )
34
34
  ),
35
35
  } );
36
+
37
+ // Registers a custom render for an api_key connector to verify that a
38
+ // subsequent default registration for the same slug does not replace it.
39
+ registerConnector( 'test_api_key_with_custom_render', {
40
+ render: ( props ) =>
41
+ h(
42
+ ConnectorItem,
43
+ {
44
+ className: 'connector-item--test_api_key_with_custom_render',
45
+ name: props.name,
46
+ description: props.description,
47
+ logo: props.logo,
48
+ },
49
+ h(
50
+ 'p',
51
+ { className: 'test-api-key-with-custom-render-content' },
52
+ 'Custom render survived registerDefaultConnectors().'
53
+ )
54
+ ),
55
+ } );
@@ -4,13 +4,16 @@
4
4
  * Plugin URI: https://github.com/WordPress/gutenberg
5
5
  * Author: Gutenberg Team
6
6
  *
7
- * Registers two custom-type connectors on the server:
7
+ * Registers three connectors on the server:
8
8
  *
9
9
  * 1. test_custom_service — also registered client-side via a script module using
10
10
  * the merging strategy (two registerConnector calls with the same slug: one
11
11
  * providing the render function, the other metadata).
12
12
  * 2. test_server_only_service — server-only, with no client-side render function,
13
13
  * so it should not display a card in the UI.
14
+ * 3. test_api_key_with_custom_render — an api_key connector whose JS render
15
+ * is registered before the default registrations run, used to verify that
16
+ * a subsequent default registration does not replace an existing render.
14
17
  *
15
18
  * @package gutenberg-test-connectors-js-extensibility
16
19
  */
@@ -42,6 +45,19 @@ add_action(
42
45
  ),
43
46
  )
44
47
  );
48
+
49
+ $registry->register(
50
+ 'test_api_key_with_custom_render',
51
+ array(
52
+ 'name' => 'Test API Key With Custom Render',
53
+ 'description' => 'An api_key connector with a JS-registered custom render.',
54
+ 'type' => 'ai_provider',
55
+ 'authentication' => array(
56
+ 'method' => 'api_key',
57
+ 'settingName' => 'test_api_key_with_custom_render_key',
58
+ ),
59
+ )
60
+ );
45
61
  }
46
62
  );
47
63
 
@@ -0,0 +1,31 @@
1
+ <?php
2
+ /**
3
+ * Plugin Name: Gutenberg Test Plugin, RTC Compatible Meta Box
4
+ * Plugin URI: https://github.com/WordPress/gutenberg
5
+ * Author: Gutenberg Team
6
+ *
7
+ * @package gutenberg-test-rtc-compatible-meta-box
8
+ */
9
+
10
+ /**
11
+ * Renders the RTC-compatible test meta box.
12
+ */
13
+ function gutenberg_test_rtc_compatible_meta_box_render() {
14
+ echo 'RTC Compatible Meta Box';
15
+ }
16
+
17
+ /**
18
+ * Registers a meta box marked as compatible with real-time collaboration.
19
+ */
20
+ function gutenberg_test_rtc_compatible_meta_box_add() {
21
+ add_meta_box(
22
+ 'gutenberg-test-rtc-compatible-meta-box',
23
+ 'RTC Compatible Test Meta Box',
24
+ 'gutenberg_test_rtc_compatible_meta_box_render',
25
+ 'post',
26
+ 'normal',
27
+ 'high',
28
+ array( '__rtc_compatible_meta_box' => true )
29
+ );
30
+ }
31
+ add_action( 'add_meta_boxes', 'gutenberg_test_rtc_compatible_meta_box_add' );