@wordpress/e2e-tests 8.0.1 → 8.1.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.1.0 (2024-06-15)
6
+
5
7
  ## 8.0.0 (2024-05-31)
6
8
 
7
9
  ### Breaking Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/e2e-tests",
3
- "version": "8.0.1",
3
+ "version": "8.1.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.0.1",
28
- "@wordpress/interactivity": "^6.0.1",
29
- "@wordpress/interactivity-router": "^2.0.1",
30
- "@wordpress/jest-console": "^8.0.1",
31
- "@wordpress/jest-puppeteer-axe": "^7.0.1",
32
- "@wordpress/scripts": "^28.0.1",
33
- "@wordpress/url": "^4.0.1",
27
+ "@wordpress/e2e-test-utils": "^11.1.0",
28
+ "@wordpress/interactivity": "^6.1.0",
29
+ "@wordpress/interactivity-router": "^2.1.0",
30
+ "@wordpress/jest-console": "^8.1.0",
31
+ "@wordpress/jest-puppeteer-axe": "^7.1.0",
32
+ "@wordpress/scripts": "^28.1.0",
33
+ "@wordpress/url": "^4.1.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": "0e973525f7787401b5a544e0727774d52a78639f"
50
+ "gitHead": "66d3bf12e67d16deddc4b4a9ec42e1d0bed3479a"
51
51
  }
@@ -56,12 +56,13 @@ class Test_Widget extends WP_Widget {
56
56
  /**
57
57
  * Handles updating settings for the current widget instance.
58
58
  *
59
+ * @since 4.8.1
60
+ *
59
61
  * @param array $new_instance New settings for this instance as input by the user via
60
62
  * WP_Widget::form().
61
63
  * @param array $old_instance Old settings for this instance.
62
64
  *
63
65
  * @return array Settings to save or bool false to cancel saving.
64
- * @since 4.8.1
65
66
  */
66
67
  // @codingStandardsIgnoreStart – to prevent phpcs from complaining about unused function argument.
67
68
  public function update( $new_instance, $old_instance ) {
@@ -3,8 +3,9 @@
3
3
  */
4
4
  import { store, getContext } from '@wordpress/interactivity';
5
5
 
6
- document.addEventListener( 'DOMContentLoaded', () => {
7
- setTimeout( () => {
6
+ window.addEventListener(
7
+ '_test_proceed_',
8
+ () => {
8
9
  store( 'test/deferred-store', {
9
10
  state: {
10
11
  reversedText() {
@@ -16,5 +17,6 @@ document.addEventListener( 'DOMContentLoaded', () => {
16
17
  },
17
18
  },
18
19
  } );
19
- }, 100 );
20
- } );
20
+ },
21
+ { once: true }
22
+ );