@wordpress/e2e-tests 8.19.1 → 8.20.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.20.0 (2025-03-13)
6
+
5
7
  ## 8.19.0 (2025-02-28)
6
8
 
7
9
  ## 8.18.0 (2025-02-12)
@@ -10,15 +10,19 @@
10
10
  /**
11
11
  * Enable Templates & Template Parts post type UI during e2e testing.
12
12
  */
13
- add_filter(
14
- 'register_post_type_args',
15
- static function ( $args, $name ) {
16
- if ( in_array( $name, array( 'wp_template', 'wp_template_part' ), true ) ) {
17
- $args['show_ui'] = wp_is_block_theme();
18
- }
19
13
 
20
- return $args;
21
- },
22
- 20,
23
- 2
24
- );
14
+
15
+ function gutenberg_enable_templates_ui() {
16
+ add_filter(
17
+ 'register_post_type_args',
18
+ static function ( $args, $name ) {
19
+ if ( in_array( $name, array( 'wp_template', 'wp_template_part' ), true ) ) {
20
+ $args['show_ui'] = wp_is_block_theme();
21
+ }
22
+ return $args;
23
+ },
24
+ 20,
25
+ 2
26
+ );
27
+ }
28
+ add_action( 'setup_theme', 'gutenberg_enable_templates_ui' );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/e2e-tests",
3
- "version": "8.19.1",
3
+ "version": "8.20.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.19.1",
28
- "@wordpress/interactivity": "^6.19.1",
29
- "@wordpress/interactivity-router": "^2.19.1",
30
- "@wordpress/jest-console": "^8.19.1",
31
- "@wordpress/jest-puppeteer-axe": "^7.19.1",
32
- "@wordpress/scripts": "^30.12.1",
33
- "@wordpress/url": "^4.19.1",
27
+ "@wordpress/e2e-test-utils": "^11.20.0",
28
+ "@wordpress/interactivity": "^6.20.0",
29
+ "@wordpress/interactivity-router": "^2.20.0",
30
+ "@wordpress/jest-console": "^8.20.0",
31
+ "@wordpress/jest-puppeteer-axe": "^7.20.0",
32
+ "@wordpress/scripts": "^30.13.0",
33
+ "@wordpress/url": "^4.20.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": "6f49fee89f840761f7fedf662713cbd4a71723e9"
50
+ "gitHead": "72476970386146d450c375e5c71a96dda7c9aaa8"
51
51
  }