@wordpress/e2e-tests 8.31.1-next.233ccab9b.0 → 8.32.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.32.0 (2025-10-01)
6
+
5
7
  ## 8.31.0 (2025-09-17)
6
8
 
7
9
  ## 8.30.0 (2025-09-03)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/e2e-tests",
3
- "version": "8.31.1-next.233ccab9b.0",
3
+ "version": "8.32.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.31.1-next.233ccab9b.0",
28
- "@wordpress/interactivity": "^6.31.1-next.233ccab9b.0",
29
- "@wordpress/interactivity-router": "^2.31.1-next.233ccab9b.0",
30
- "@wordpress/jest-console": "^8.31.1-next.233ccab9b.0",
31
- "@wordpress/jest-puppeteer-axe": "^7.31.1-next.233ccab9b.0",
32
- "@wordpress/scripts": "^30.24.1-next.233ccab9b.0",
33
- "@wordpress/url": "^4.31.1-next.233ccab9b.0",
27
+ "@wordpress/e2e-test-utils": "^11.32.0",
28
+ "@wordpress/interactivity": "^6.32.0",
29
+ "@wordpress/interactivity-router": "^2.32.0",
30
+ "@wordpress/jest-console": "^8.32.0",
31
+ "@wordpress/jest-puppeteer-axe": "^7.32.0",
32
+ "@wordpress/scripts": "^30.25.0",
33
+ "@wordpress/url": "^4.32.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": "d11f971521e4b39b07124d5c5516890ff98b0e31"
50
+ "gitHead": "a030b4c0e0695239b942c7dc18511782b64f10ed"
51
51
  }
@@ -110,18 +110,54 @@
110
110
  </section>
111
111
 
112
112
  <div data-wp-interactive="router-regions">
113
- <div data-wp-router-region="invalid-region-1">
114
- <p data-testid="invalid-region-text-1">
115
- content from page <?php echo $attributes['page']; ?>
116
- </p>
117
- </div>
118
- <div data-wp-interactive="router-regions" data-wp-router-region="invalid-region-2">
119
- <p data-testid="invalid-region-text-2">
113
+ <!-- Router region inside data-wp-interactive -->
114
+ <div
115
+ data-testid="valid-inside-interactive"
116
+ data-wp-interactive="router-regions"
117
+ data-wp-router-region="valid-inside-interactive"
118
+ data-wp-context='{ "counter": { "value": 0 } }'
119
+ >
120
+ <p data-testid="text-1">
120
121
  content from page <?php echo $attributes['page']; ?>
121
122
  </p>
123
+ <button
124
+ data-testid="valid-inside-interactive-counter"
125
+ data-wp-text="context.counter.value"
126
+ data-wp-on--click="actions.counter.increment"
127
+ >
128
+ NaN
129
+ </button>
130
+
131
+ <!-- Router region inside data-wp-router-region -->
132
+ <div
133
+ data-testid="valid-inside-router-region"
134
+ data-wp-interactive="router-regions"
135
+ data-wp-router-region="valid-inside-router-region"
136
+ data-wp-context='{ "counter": { "value": 0 } }'
137
+ >
138
+ <p data-testid="text-2">
139
+ content from page <?php echo $attributes['page']; ?>
140
+ </p>
141
+ <button
142
+ data-testid="valid-inside-router-region-counter"
143
+ data-wp-text="context.counter.value"
144
+ data-wp-on--click="actions.counter.increment"
145
+ >
146
+ NaN
147
+ </button>
148
+ </div>
122
149
  </div>
123
150
  </div>
124
151
 
152
+ <div
153
+ data-testid="invalid-outside-interactive"
154
+ data-wp-router-region="invalid-outside-interactive"
155
+ >
156
+ <p data-testid="text-3">
157
+ content from page <?php echo $attributes['page']; ?>
158
+ </p>
159
+ </div>
160
+
125
161
  <div id="regions-with-attach-to" data-testid="regions-with-attach-to">
126
162
  <?php
127
163
  /*
@@ -43,5 +43,30 @@ add_action(
43
43
  'editor_script_handles' => array( 'server-side-rendered-block' ),
44
44
  )
45
45
  );
46
+
47
+ // PHP-only block with auto_register flag, will be auto-registered without JS code
48
+ register_block_type(
49
+ 'test/auto-register-block',
50
+ array(
51
+ 'api_version' => 3,
52
+ 'render_callback' => static function () {
53
+ return '<div>Auto-register block content</div>';
54
+ },
55
+ 'supports' => array(
56
+ 'auto_register' => true,
57
+ ),
58
+ )
59
+ );
60
+
61
+ // PHP-only block WITHOUT auto_register flag, will NOT be auto-registered without JS code
62
+ register_block_type(
63
+ 'test/php-only-no-auto-register',
64
+ array(
65
+ 'api_version' => 3,
66
+ 'render_callback' => static function () {
67
+ return '<div>PHP-only block content</div>';
68
+ },
69
+ )
70
+ );
46
71
  }
47
72
  );