Skip to content

Instantly share code, notes, and snippets.

@juliandescottes
Created July 10, 2019 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juliandescottes/bf462d9ed9536e659bbdfcadb37d015a to your computer and use it in GitHub Desktop.
Save juliandescottes/bf462d9ed9536e659bbdfcadb37d015a to your computer and use it in GitHub Desktop.
jdescottes@kglazko-23706:~/Development/git/gutenberg$ npm run test-e2e
> gutenberg@5.4.0 pretest-e2e /Users/jdescottes/Development/git/gutenberg
> cross-env SCRIPT_DEBUG=false ./bin/reset-e2e-tests.sh
STATUS: Attempting to connect to WordPress...
STATUS: Resetting test database...
Starting gutenberg_mysql_1 ... done
Starting gutenberg_wordpress_e2e_tests_1 ... done
STATUS: Installing WordPress...
Starting gutenberg_mysql_1 ... done
Starting gutenberg_wordpress_e2e_tests_1 ... done
STATUS: Ensuring that files can be uploaded...
Starting gutenberg_mysql_1 ... done
Starting gutenberg_mysql_1 ... done
Starting gutenberg_mysql_1 ... done
Starting gutenberg_mysql_1 ... done
Starting gutenberg_mysql_1 ... done
mode of '/var/www/html/wp-content/uploads' retained as 0767 (rwxrw-rwx)
Starting gutenberg_mysql_1 ... done
Starting gutenberg_mysql_1 ... done
Starting gutenberg_mysql_1 ... done
Starting gutenberg_wordpress_e2e_tests_1 ... done
STATUS: Current WordPress version: 5.2.2...
STATUS: Updating WordPress to the latest version...
Starting gutenberg_mysql_1 ... done
Starting gutenberg_wordpress_e2e_tests_1 ... done
STATUS: Updating The WordPress Database...
Starting gutenberg_mysql_1 ... done
Starting gutenberg_wordpress_e2e_tests_1 ... done
STATUS: Checking the site's url...
Starting gutenberg_mysql_1 ... done
Starting gutenberg_wordpress_e2e_tests_1 ... done
STATUS: Activating Gutenberg...
Starting gutenberg_mysql_1 ... done
Starting gutenberg_wordpress_e2e_tests_1 ... done
STATUS: Installing a dummy favicon...
Starting gutenberg_mysql_1 ... done
STATUS: Configuring site constants...
Starting gutenberg_mysql_1 ... done
Starting gutenberg_wordpress_e2e_tests_1 ... done
Starting gutenberg_mysql_1 ... done
Starting gutenberg_wordpress_e2e_tests_1 ... done
> gutenberg@5.4.0 test-e2e /Users/jdescottes/Development/git/gutenberg
> wp-scripts test-e2e --config packages/e2e-tests/jest.config.js
Determining test suites to run...DevTools listening on ws://localhost:59450/devtools/browser/c1f4d110-9f78-cd44-9575-756b93560dc1
DevTools listening on ws://localhost:59450/devtools/browser/c1f4d110-9f78-cd44-9575-756b93560dc1
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/plugins/annotations.test.js (113.136s)
● Using Plugins API › Annotations › Allows a block to be annotated
Timeout - Async callback was not invoked within the 100000ms timeout specified by jest.setTimeout.
88 |
89 | describe( 'Annotations', () => {
> 90 | it( 'Allows a block to be annotated', async () => {
| ^
91 | await page.keyboard.type( 'Title' + '\n' + 'Paragraph to annotate' );
92 |
93 | await clickOnMoreMenuItem( 'Annotations Sidebar' );
at Spec (../../node_modules/jest-jasmine2/build/jasmine/Spec.js:92:20)
at Suite.it (specs/plugins/annotations.test.js:90:3)
● Using Plugins API › Annotations › Keeps the cursor in the same location when applying annotation
No node found for selector: #annotations-tests-range-start
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.focus (../../node_modules/puppeteer/lib/FrameManager.js:600:5)
(node:9091) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'addExpectationResult' of undefined
(node:9091) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:9091) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/preview.test.js (313.414s)
● Preview › should open a preview window for a new post
Timeout - Async callback was not invoked within the 100000ms timeout specified by jest.setTimeout.
85 | } );
86 |
> 87 | it( 'should open a preview window for a new post', async () => {
| ^
88 | const editorPage = page;
89 |
90 | // Disabled until content present.
at Spec (../../node_modules/jest-jasmine2/build/jasmine/Spec.js:92:20)
at Suite.it (specs/preview.test.js:87:2)
● Preview › should not revert title during a preview right after a save draft
Timeout - Async callback was not invoked within the 100000ms timeout specified by jest.setTimeout.
162 | } );
163 |
> 164 | it( 'should not revert title during a preview right after a save draft', async () => {
| ^
165 | const editorPage = page;
166 |
167 | // Type aaaaa in the title filed.
at Spec (../../node_modules/jest-jasmine2/build/jasmine/Spec.js:92:20)
at Suite.it (specs/preview.test.js:164:2)
● Preview with Custom Fields enabled › displays edits to the post title and content in the preview
Timeout - Async callback was not invoked within the 100000ms timeout specified by jest.setTimeout.
211 |
212 | // Catch regressions of https://github.com/WordPress/gutenberg/issues/12617
> 213 | it( 'displays edits to the post title and content in the preview', async () => {
| ^
214 | const editorPage = page;
215 |
216 | // Add an initial title and content.
at Spec (../../node_modules/jest-jasmine2/build/jasmine/Spec.js:92:20)
at Suite.it (specs/preview.test.js:213:2)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
(node:9091) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'addExpectationResult' of undefined
(node:9091) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:9091) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'addExpectationResult' of undefined
(node:9091) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:9091) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'addExpectationResult' of undefined
(node:9091) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.error:
TypeError: this._networkObserver is undefined: disable@chrome://remote/content/domains/parent/Network.jsm:78:5
destructor@chrome://remote/content/domains/parent/Network.jsm:51:10
clear@chrome://remote/content/domains/Domains.jsm:92:12
destructor@chrome://remote/content/sessions/Session.jsm:58:18
destructor@chrome://remote/content/sessions/TabSession.jsm:50:11
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.error:
TypeError: this._networkObserver is undefined: disable@chrome://remote/content/domains/parent/Network.jsm:78:5
destructor@chrome://remote/content/domains/parent/Network.jsm:51:10
clear@chrome://remote/content/domains/Domains.jsm:92:12
destructor@chrome://remote/content/sessions/Session.jsm:58:18
destructor@chrome://remote/content/sessions/TabSession.jsm:50:11
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.error:
TypeError: this._networkObserver is undefined: disable@chrome://remote/content/domains/parent/Network.jsm:78:5
destructor@chrome://remote/content/domains/parent/Network.jsm:51:10
clear@chrome://remote/content/domains/Domains.jsm:92:12
destructor@chrome://remote/content/sessions/Session.jsm:58:18
destructor@chrome://remote/content/sessions/TabSession.jsm:50:11
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "http://localhost:8889"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
1562766805972 RemoteAgent ERROR UnknownMethodError: DOM.setFileInputFiles:
RemoteAgentError@chrome://remote/content/Error.jsm:25:5
UnknownMethodError@chrome://remote/content/Error.jsm:108:7
receiveMessage@chrome://remote/content/sessions/ContentProcessSession.jsm:72:19
MessageListener.receiveMessage*ContentProcessSession@chrome://remote/content/sessions/ContentProcessSession.jsm:30:25
@chrome://remote/content/sessions/frame-script.js:12:1
caused by:
FAIL packages/e2e-tests/specs/adding-inline-tokens.test.js (102.706s)
● adding inline tokens › should insert inline image
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● adding inline tokens › should insert inline image
Timeout - Async callback was not invoked within the 100000ms timeout specified by jest.setTimeout.
23 | } );
24 |
> 25 | it( 'should insert inline image', async () => {
| ^
26 | // Create a paragraph.
27 | await clickBlockAppender();
28 | await page.keyboard.type( 'a ' );
at Spec (../../node_modules/jest-jasmine2/build/jasmine/Spec.js:92:20)
at Suite.it (specs/adding-inline-tokens.test.js:25:2)
(node:9091) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'addExpectationResult' of undefined
(node:9091) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 5)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "http://localhost:8889"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
[Child 9106, MediaDecoderStateMachine #1] WARNING: Decoder=18f987800 state=DECODING_METADATA Decode metadata failed, shutting down decoder: file /builds/worker/workspace/build/src/dom/media/MediaDecoderStateMachine.cpp, line 352
[Child 9106, MediaDecoderStateMachine #1] WARNING: Decoder=18f987800 Decode error: NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006): file /builds/worker/workspace/build/src/dom/media/MediaDecoderStateMachine.cpp, line 3309
[Child 9106, MediaDecoderStateMachine #1] WARNING: Decoder=1978ee000 state=DECODING_METADATA Decode metadata failed, shutting down decoder: file /builds/worker/workspace/build/src/dom/media/MediaDecoderStateMachine.cpp, line 352
[Child 9106, MediaDecoderStateMachine #1] WARNING: Decoder=1978ee000 Decode error: NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006): file /builds/worker/workspace/build/src/dom/media/MediaDecoderStateMachine.cpp, line 3309
FAIL packages/e2e-tests/specs/block-transforms.test.js (51.121s)
● Block transforms › should contain the expected transforms
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]],["Media resource data:audio/mpeg;base64,/+MYxAAAAANIAAAAAExBTUUzLjk4LjIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA could not be decoded."],["Media resource data:audio/mpeg;base64,/+MYxAAAAANIAAAAAExBTUUzLjk4LjIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA could not be decoded, error: Error Code: NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006)"]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Block transforms › correctly transform › block Audio in fixture core__audio into the File block
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
["Media resource data:audio/mpeg;base64,/+MYxAAAAANIAAAAAExBTUUzLjk4LjIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA could not be decoded."]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Block transforms › correctly transform › block Media & Text in fixture core__media-text into the Image block
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
["Media resource data:audio/mpeg;base64,/+MYxAAAAANIAAAAAExBTUUzLjk4LjIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA could not be decoded, error: Error Code: NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006)"]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Block transforms › correctly transform › block Cover in fixture core__cover__video-overlay into the Video block
expect(value).toMatchSnapshot()
Received value does not match stored snapshot "Block transforms correctly transform block Cover in fixture core__cover__video-overlay into the Video block 1".
- Snapshot
+ Received
- "<!-- wp:video -->
- <figure class="wp-block-video"><video controls src="data:video/mp4;base64,AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAAAAhmcmVlAAAC721kYXQhEAUgpBv/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3pwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcCEQBSCkG//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADengAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAsJtb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAALwABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAB7HRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAIAAAAAAAAALwAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAC8AAAAAAAEAAAAAAWRtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAKxEAAAIAFXEAAAAAAAtaGRscgAAAAAAAAAAc291bgAAAAAAAAAAAAAAAFNvdW5kSGFuZGxlcgAAAAEPbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAADTc3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAAAAAgAQAAAAAKxEAAAAAAAzZXNkcwAAAAADgICAIgACAASAgIAUQBUAAAAAAfQAAAHz+QWAgIACEhAGgICAAQIAAAAYc3R0cwAAAAAAAAABAAAAAgAABAAAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAIAAAABAAAAHHN0c3oAAAAAAAAAAAAAAAIAAAFzAAABdAAAABRzdGNvAAAAAAAAAAEAAAAsAAAAYnVkdGEAAABabWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAtaWxzdAAAACWpdG9vAAAAHWRhdGEAAAABAAAAAExhdmY1Ni40MC4xMDE="></video></figure>
- <!-- /wp:video -->"
+ "<!-- wp:cover {"url":"data:video/mp4;base64,AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAAAAhmcmVlAAAC721kYXQhEAUgpBv/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3pwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcCEQBSCkG//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADengAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAsJtb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAALwABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAB7HRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAIAAAAAAAAALwAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAC8AAAAAAAEAAAAAAWRtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAKxEAAAIAFXEAAAAAAAtaGRscgAAAAAAAAAAc291bgAAAAAAAAAAAAAAAFNvdW5kSGFuZGxlcgAAAAEPbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAADTc3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAAAAAgAQAAAAAKxEAAAAAAAzZXNkcwAAAAADgICAIgACAASAgIAUQBUAAAAAAfQAAAHz+QWAgIACEhAGgICAAQIAAAAYc3R0cwAAAAAAAAABAAAAAgAABAAAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAIAAAABAAAAHHN0c3oAAAAAAAAAAAAAAAIAAAFzAAABdAAAABRzdGNvAAAAAAAAAAEAAAAsAAAAYnVkdGEAAABabWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAtaWxzdAAAACWpdG9vAAAAHWRhdGEAAAABAAAAAExhdmY1Ni40MC4xMDE=","dimRatio":10,"customOverlayColor":"#3615d9","backgroundType":"video"} -->
+ <div class="wp-block-cover has-background-dim-10 has-background-dim" style="background-color:#3615d9"><video class="wp-block-cover__video-background" autoplay muted loop src="data:video/mp4;base64,AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAAAAhmcmVlAAAC721kYXQhEAUgpBv/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3pwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcCEQBSCkG//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADengAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAsJtb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAALwABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAB7HRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAIAAAAAAAAALwAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAC8AAAAAAAEAAAAAAWRtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAKxEAAAIAFXEAAAAAAAtaGRscgAAAAAAAAAAc291bgAAAAAAAAAAAAAAAFNvdW5kSGFuZGxlcgAAAAEPbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAADTc3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAAAAAgAQAAAAAKxEAAAAAAAzZXNkcwAAAAADgICAIgACAASAgIAUQBUAAAAAAfQAAAHz+QWAgIACEhAGgICAAQIAAAAYc3R0cwAAAAAAAAABAAAAAgAABAAAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAIAAAABAAAAHHN0c3oAAAAAAAAAAAAAAAIAAAFzAAABdAAAABRzdGNvAAAAAAAAAAEAAAAsAAAAYnVkdGEAAABabWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAtaWxzdAAAACWpdG9vAAAAHWRhdGEAAAABAAAAAExhdmY1Ni40MC4xMDE="></video><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"center","placeholder":"Write title…","fontSize":"large"} -->
+ <p style="text-align:center" class="has-large-font-size">
+ Guten Berg!
+ </p>
+ <!-- /wp:paragraph --></div></div>
+ <!-- /wp:cover -->"
166 | expect(
167 | await getTransformResult( content, destinationBlock )
> 168 | ).toMatchSnapshot();
| ^
169 | }
170 | );
171 | } );
at toMatchSnapshot (specs/block-transforms.test.js:168:7)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/block-transforms.test.js:27:103)
at _next (specs/block-transforms.test.js:29:194)
› 1 snapshot failed.
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/links.test.js (47.827s)
● Links › can be modified using the keyboard once a link has been set
expect(received).toBeNull()
Received: {"_client": {"_callbacks": [Map], "_connection": [Connection], "_events": [Object], "_eventsCount": 27, "_lastId": 1724, "_maxListeners": undefined, "_sessionId": 8, "_sessions": [Map], "_targetType": "page"}, "_context": {"_client": [CDPSession], "_contextId": 23622320150, "_frame": [Frame], "_objectHandleFactory": [Function bound createJSHandle]}, "_disposed": false, "_frameManager": {"_client": [CDPSession], "_contextIdToContext": [Map], "_events": [Object], "_eventsCount": 3, "_frames": [Map], "_mainFrame": [Frame], "_maxListeners": undefined, "_page": [Page]}, "_page": {"_client": [CDPSession], "_closed": false, "_coverage": [Coverage], "_defaultNavigationTimeout": 30000, "_emulationManager": [EmulationManager], "_events": [Object], "_eventsCount": 4, "_frameManager": [FrameManager], "_ignoreHTTPSErrors": false, "_keyboard": [Keyboard], "_maxListeners": undefined, "_mouse": [Mouse], "_networkManager": [NetworkManager], "_pageBindings": [Map], "_screenshotTaskQueue": [TaskQueue], "_target": [Target], "_touchscreen": [Touchscreen], "_tracing": [Tracing], "_viewport": [Object], "_workers": [Map]}, "_remoteObject": {"objectId": "a8673ab3-4fa3-754c-9f85-418dc7b07258", "subtype": "node", "type": "object"}}
414 | // and the link popover should not be displayed.
415 | await page.keyboard.press( 'End' );
> 416 | expect( await page.$( '.block-editor-url-popover' ) ).toBeNull();
| ^
417 |
418 | // Move the caret back into the link text and the link popover
419 | // should be displayed.
at Object.toBeNull (specs/links.test.js:416:57)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/links.test.js:15:103)
at _next (specs/links.test.js:17:194)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "http://localhost:8889"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/editor-modes.test.js (38.85s)
● Editing modes (visual/HTML) › should switch between visual and HTML modes
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Editing modes (visual/HTML) › should display sidebar in HTML mode
waiting for selector "button[aria-label="More options"]" failed: timeout 30000ms exceeded
52 |
53 | // Change editing mode from "Visual" to "HTML".
> 54 | await page.waitForSelector( 'button[aria-label="More options"]' );
| ^
55 | await page.click( 'button[aria-label="More options"]' );
56 | const changeModeButton = await page.waitForXPath( '//button[text()="Edit as HTML"]' );
57 | await changeModeButton.click();
at new WaitTask (../../node_modules/puppeteer/lib/FrameManager.js:840:28)
at Frame._waitForSelectorOrXPath (../../node_modules/puppeteer/lib/FrameManager.js:731:12)
at Frame.waitForSelector (../../node_modules/puppeteer/lib/FrameManager.js:690:17)
at Page.waitForSelector (../../node_modules/puppeteer/lib/Page.js:1008:29)
at Object.waitForSelector (specs/editor-modes.test.js:54:14)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/editor-modes.test.js:9:103)
at _next (specs/editor-modes.test.js:11:194)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/writing-flow.test.js (29.454s)
● adding blocks › should navigate empty paragraph
expect(value).toMatchSnapshot()
Received value does not match stored snapshot "adding blocks should navigate empty paragraph 1".
- Snapshot
+ Received
"<!-- wp:paragraph -->
- <p>1</p>
+ <p></p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>2</p>
<!-- /wp:paragraph -->"
309 | await page.keyboard.type( '2' );
310 |
> 311 | expect( await getEditedPostContent() ).toMatchSnapshot();
| ^
312 | } );
313 |
314 | it( 'should navigate contenteditable with padding', async () => {
at Object.toMatchSnapshot (specs/writing-flow.test.js:311:42)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/writing-flow.test.js:9:103)
at _next (specs/writing-flow.test.js:11:194)
● adding blocks › should navigate contenteditable with padding
expect(value).toMatchSnapshot()
Received value does not match stored snapshot "adding blocks should navigate contenteditable with padding 1".
- Snapshot
+ Received
"<!-- wp:paragraph -->
<p>1</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
- <p>2</p>
+ <p></p>
<!-- /wp:paragraph -->"
326 | await page.keyboard.type( '2' );
327 |
> 328 | expect( await getEditedPostContent() ).toMatchSnapshot();
| ^
329 | } );
330 | } );
331 |
at Object.toMatchSnapshot (specs/writing-flow.test.js:328:42)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/writing-flow.test.js:9:103)
at _next (specs/writing-flow.test.js:11:194)
› 2 snapshots failed.
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/splitting-merging.test.js (18.514s)
● splitting and merging blocks › should split and merge paragraph blocks using Enter and Backspace
expect(value).toMatchSnapshot()
Received value does not match stored snapshot "splitting and merging blocks should split and merge paragraph blocks using Enter and Backspace 3".
- Snapshot
+ Received
"<!-- wp:paragraph -->
- <p><strong>First</strong></p>
+ <p>First<strong>Secon</strong></p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
- <p>BeforeSecond:Second</p>
+ <p>BeforeSecond:d</p>
<!-- /wp:paragraph -->"
51 | await page.keyboard.type( 'BeforeSecond:' );
52 |
> 53 | expect( await getEditedPostContent() ).toMatchSnapshot();
| ^
54 | } );
55 |
56 | it( 'should merge into inline boundary position', async () => {
at Object.toMatchSnapshot (specs/splitting-merging.test.js:53:42)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/splitting-merging.test.js:9:103)
at _next (specs/splitting-merging.test.js:11:194)
› 1 snapshot failed.
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/block-switcher.test.js (6.059s)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/datepicker.test.js
● Datepicker › should show the publishing date if the date is in the past
No node found for selector: .components-datetime__time-field-year
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.click (../../node_modules/puppeteer/lib/FrameManager.js:590:5)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/publish-panel.test.js (5.63s)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "http://localhost:8889"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/keyboard-navigable-blocks.test.js (6.582s)
● Order of block keyboard navigation › permits tabbing through paragraph blocks in the expected order
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/compatibility-classic-editor.test.js
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "http://localhost:8889"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/popovers.test.js
● popovers › dropdown › toggles via click
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/block-mover.test.js (5.396s)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/block-hierarchy-navigation.test.js (11.203s)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
1562767141185 RemoteAgent ERROR UnknownMethodError: DOM.setFileInputFiles:
RemoteAgentError@chrome://remote/content/Error.jsm:25:5
UnknownMethodError@chrome://remote/content/Error.jsm:108:7
receiveMessage@chrome://remote/content/sessions/ContentProcessSession.jsm:72:19
MessageListener.receiveMessage*ContentProcessSession@chrome://remote/content/sessions/ContentProcessSession.jsm:30:25
@chrome://remote/content/sessions/frame-script.js:12:1
caused by:
FAIL packages/e2e-tests/specs/manage-reusable-blocks.test.js (101.849s)
● Managing reusable blocks › Should import reusable blocks
Timeout - Async callback was not invoked within the 100000ms timeout specified by jest.setTimeout.
24 | } );
25 |
> 26 | it( 'Should import reusable blocks', async () => {
| ^
27 | const originalEntries = await getNumberOfEntries();
28 |
29 | // Import Reusable block
at Spec (../../node_modules/jest-jasmine2/build/jasmine/Spec.js:92:20)
at Suite.it (specs/manage-reusable-blocks.test.js:26:2)
(node:9091) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'addExpectationResult' of undefined
(node:9091) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 6)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/taxonomies.test.js (8.276s)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "http://localhost:8889"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/navigable-toolbar.test.js (7.526s)
● block toolbar › unified › navigates in and out of toolbar by keyboard (Alt+F10, Escape)
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/invalid-block.test.js
● invalid blocks › Should show an invalid block message with clickable options
expect(jest.fn()).toHaveErrored(expected)
Expected mock function to be called.
30 | // Takes the focus away from the block so the invalid warning is triggered
31 | await page.click( '.editor-post-save-draft' );
> 32 | expect( console ).toHaveErrored();
| ^
33 | expect( console ).toHaveWarned();
34 |
35 | // Click on the 'resolve' button
at Object.toHaveErrored (specs/invalid-block.test.js:32:21)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/invalid-block.test.js:9:103)
at _next (specs/invalid-block.test.js:11:194)
● invalid blocks › Should show an invalid block message with clickable options
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["Block validation: Expected end of content, instead saw ", {"attributes": [], "selfClosing": false, "tagName": "p", "type": "StartTag"}, "."]],["XrayWrapper denied access to property \"save\" (reason: value is callable). See https://developer.mozilla.org/en-US/docs/Xray_vision for more information. Note that only the first denied property access from a given global object will be reported."],["Sending message that cannot be cloned. Are you trying to send an XPCOM object?"]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "http://localhost:8889"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/mentions.test.js
● autocomplete mentions › should insert mention
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/block-deletion.test.js (14.302s)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
JavaScript error: debugger eval code, line 4: Error: Unexpected focus loss
JavaScript error: debugger eval code, line 4: Error: Unexpected focus loss
JavaScript error: debugger eval code, line 4: Error: Unexpected focus loss
JavaScript error: debugger eval code, line 4: Error: Unexpected focus loss
JavaScript error: debugger eval code, line 4: Error: Unexpected focus loss
JavaScript error: debugger eval code, line 4: Error: Unexpected focus loss
FAIL packages/e2e-tests/specs/sidebar.test.js (7.012s)
● Sidebar › should have the sidebar closed by default on mobile
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Error: Unexpected focus loss"]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Sidebar › should close the sidebar when resizing from desktop to mobile
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Error: Unexpected focus loss"]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Sidebar › should reopen sidebar the sidebar when resizing from mobile to desktop if the sidebar was closed automatically
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Error: Unexpected focus loss"]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Sidebar › should preserve tab order while changing active tab
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Error: Unexpected focus loss"]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Sidebar › should be possible to programmatically remove Document Settings panels
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Error: Unexpected focus loss"]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/undo.test.js (6.725s)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/reusable-blocks.test.js (10.052s)
● Reusable Blocks › can be converted to a regular block
expect(received).not.toBeNull()
Received: null
164 | // Check that we have a paragraph block on the page
165 | const block = await page.$( '.block-editor-block-list__block[data-type="core/paragraph"]' );
> 166 | expect( block ).not.toBeNull();
| ^
167 |
168 | // Check that its content is up to date
169 | const text = await page.$eval(
at Object.toBeNull (specs/reusable-blocks.test.js:166:23)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/reusable-blocks.test.js:27:103)
at _next (specs/reusable-blocks.test.js:29:194)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/style-variation.test.js
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/adding-blocks.test.js
● adding blocks › Should insert content using the placeholder and the regular inserter
expect(received).not.toBeNull()
Received: null
31 | // Click below editor to focus last field (block appender)
32 | await clickBelow( await page.$( '.block-editor-default-block-appender' ) );
> 33 | expect( await page.$( '[data-type="core/paragraph"]' ) ).not.toBeNull();
| ^
34 | await page.keyboard.type( 'Paragraph block' );
35 |
36 | // Using the slash command
at Object.toBeNull (specs/adding-blocks.test.js:33:64)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/adding-blocks.test.js:15:103)
at _next (specs/adding-blocks.test.js:17:194)
● adding blocks › should not allow transfer of focus outside of the block-insertion menu once open
expect(array).toContain(value) // indexOf
Expected value: "block-editor-inserter__search"
Received array: ["wp-block", "editor-block-list__block", "block-editor-block-list__block"]
114 | // Expect the inserter search input to be the active element.
115 | let activeElementClassList = await page.evaluate( () => document.activeElement.classList );
> 116 | expect( Object.values( activeElementClassList ) ).toContain( 'block-editor-inserter__search' );
| ^
117 |
118 | // Try using the up arrow key (vertical navigation triggers the issue described in #9583).
119 | await page.keyboard.press( 'ArrowUp' );
at Object.toContain (specs/adding-blocks.test.js:116:53)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/adding-blocks.test.js:15:103)
at _next (specs/adding-blocks.test.js:17:194)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/font-size-picker.test.js (13.948s)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/convert-block-type.test.js
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/post-visibility.test.js
● Post visibility › can be changed when the viewport is large
expect(received).toBe(expected) // Object.is equality
Expected: "private"
Received: "auto-draft"
26 | } );
27 |
> 28 | expect( currentStatus ).toBe( 'private' );
| ^
29 | } );
30 | } );
31 | } );
at Object.toBe (specs/post-visibility.test.js:28:28)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/post-visibility.test.js:23:103)
at _next (specs/post-visibility.test.js:25:194)
● Post visibility › can be changed when the viewport is small
No node found for selector: .edit-post-post-visibility__toggle
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.click (../../node_modules/puppeteer/lib/FrameManager.js:590:5)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/demo.test.js
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/rich-text.test.js (17.195s)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/fullscreen-mode.test.js
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/a11y.test.js (5.493s)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/multi-block-selection.test.js (15.356s)
● Multi-block selection › should only trigger multi-selection when at the end
expect(value).toMatchSnapshot()
Received value does not match stored snapshot "Multi-block selection should only trigger multi-selection when at the end 1".
- Snapshot
+ Received
"<!-- wp:paragraph -->
- <p>1.</p>
+ <p>14.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->"
164 | await page.keyboard.press( 'Backspace' );
165 |
> 166 | expect( await getEditedPostContent() ).toMatchSnapshot();
| ^
167 | } );
168 |
169 | it( 'should use selection direction to determine vertical edge', async () => {
at Object.toMatchSnapshot (specs/multi-block-selection.test.js:166:42)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/multi-block-selection.test.js:15:103)
at _next (specs/multi-block-selection.test.js:17:194)
› 1 snapshot failed.
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/preferences.test.js (5.219s)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/shortcut-help.test.js
● keyboard shortcut help modal › displays the shortcut help modal when opened using the menu item in the more menu
expect(received).toHaveLength(length)
Expected length: 1
Received length: 0
Received array: []
17 | await clickOnMoreMenuItem( 'Keyboard Shortcuts' );
18 | const shortcutHelpModalElements = await page.$$( '.edit-post-keyboard-shortcut-help' );
> 19 | expect( shortcutHelpModalElements ).toHaveLength( 1 );
| ^
20 | } );
21 |
22 | it( 'closes the shortcut help modal when the close icon is clicked', async () => {
at Object.toHaveLength (specs/shortcut-help.test.js:19:39)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/shortcut-help.test.js:9:103)
at _next (specs/shortcut-help.test.js:11:194)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/nux.test.js (16.999s)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/new-post-default-content.test.js
● new editor filtered state › should respect default content
Evaluation failed: wp.data is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● new editor filtered state › should respect default content
Error: failed to find element matching selector ".editor-post-title__input"
at ElementHandle.$eval (../../node_modules/puppeteer/lib/ElementHandle.js:307:13)
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/sidebar-permalink-panel.test.js (12.548s)
● Sidebar Permalink Panel › should not render permalink sidebar panel while the post is new
Evaluation failed: wp.data is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "http://localhost:8889"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/publish-button.test.js (7.234s)
● PostPublishButton › should be disabled when post is not saveable
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● PostPublishButton › should be disabled when post is not saveable
Evaluation failed: element is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● PostPublishButton › should be disabled when post is being saved
Evaluation failed: element is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● PostPublishButton › should be disabled when post is being saved
expect(received).not.toBeNull()
Received: null
35 |
36 | await page.click( '.editor-post-save-draft' );
> 37 | expect( await page.$( '.editor-post-publish-button[aria-disabled="true"]' ) ).not.toBeNull();
| ^
38 | } );
39 |
40 | it( 'should be disabled when metabox is being saved', async () => {
at Object.toBeNull (specs/publish-button.test.js:37:85)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/publish-button.test.js:9:103)
at _next (specs/publish-button.test.js:11:194)
● PostPublishButton › should be disabled when post is being saved
TypeError: Cannot read property 'click' of undefined
at _callee$ (../e2e-test-utils/build/@wordpress/e2e-test-utils/src/click-on-more-menu-item.js:11:8)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
● PostPublishButton › should be disabled when metabox is being saved
Evaluation failed: element is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● PostPublishButton › should be disabled when metabox is being saved
expect(received).not.toBeNull()
Received: null
43 |
44 | await page.evaluate( () => window.wp.data.dispatch( 'core/edit-post' ).requestMetaBoxUpdates() );
> 45 | expect( await page.$( '.editor-post-publish-button[aria-disabled="true"]' ) ).not.toBeNull();
| ^
46 | } );
47 | } );
48 |
at Object.toBeNull (specs/publish-button.test.js:45:85)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/publish-button.test.js:9:103)
at _next (specs/publish-button.test.js:11:194)
● PostPublishButton › should be disabled when metabox is being saved
TypeError: Cannot read property 'click' of undefined
at _callee$ (../e2e-test-utils/build/@wordpress/e2e-test-utils/src/click-on-more-menu-item.js:11:8)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "http://localhost:8889"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
JavaScript error: http://localhost:8889/wp-admin/post-new.php line 19 > scriptElement, line 33: TypeError: window.parent is null
JavaScript error: http://localhost:8889/wp-admin/post-new.php line 19 > scriptElement, line 33: TypeError: window.parent is null
JavaScript error: http://localhost:8889/wp-admin/post-new.php line 19 > scriptElement, line 33: TypeError: window.parent is null
FAIL packages/e2e-tests/specs/embedding.test.js (114.748s)
● Embedding content › should render embeds in the correct state
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Embedding content › should render embeds in the correct state
waiting for selector "figure.wp-block-embed-wordpress" failed: timeout 30000ms exceeded
162 | await page.waitForSelector( 'figure.wp-block-embed-twitter' );
163 | await page.waitForSelector( 'figure.wp-block-embed-cloudup' );
> 164 | await page.waitForSelector( 'figure.wp-block-embed-wordpress' );
| ^
165 | // Video embed should also have the aspect ratio class.
166 | await page.waitForSelector( 'figure.wp-block-embed-youtube.wp-embed-aspect-16-9' );
167 |
at new WaitTask (../../node_modules/puppeteer/lib/FrameManager.js:840:28)
at Frame._waitForSelectorOrXPath (../../node_modules/puppeteer/lib/FrameManager.js:731:12)
at Frame.waitForSelector (../../node_modules/puppeteer/lib/FrameManager.js:690:17)
at Page.waitForSelector (../../node_modules/puppeteer/lib/Page.js:1008:29)
at Object.waitForSelector (specs/embedding.test.js:164:14)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/embedding.test.js:9:103)
at _next (specs/embedding.test.js:11:194)
● Embedding content › should render embeds in the correct state
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["TypeError: window.parent is null"],["TypeError: window.parent is null"],["TypeError: window.parent is null"]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Embedding content › should allow the user to convert unembeddable URLs to a paragraph with a link in it
expect(value).toMatchSnapshot()
Received value does not match stored snapshot "Embedding content should allow the user to convert unembeddable URLs to a paragraph with a link in it 1".
- Snapshot
+ Received
- "<!-- wp:paragraph -->
- <p><a href="https://twitter.com/wooyaygutenberg123454312">https://twitter.com/wooyaygutenberg123454312</a></p>
- <!-- /wp:paragraph -->"
+ "<!-- wp:embed {"url":"https://twitter.com/wooyaygutenberg123454312"} -->
+ <figure class="wp-block-embed"><div class="wp-block-embed__wrapper">
+ https://twitter.com/wooyaygutenberg123454312
+ </div></figure>
+ <!-- /wp:embed -->"
181 |
182 | await clickButton( 'Convert to link' );
> 183 | expect( await getEditedPostContent() ).toMatchSnapshot();
| ^
184 | } );
185 |
186 | it( 'should retry embeds that could not be embedded with trailing slashes, without the trailing slashes', async () => {
at Object.toMatchSnapshot (specs/embedding.test.js:183:42)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/embedding.test.js:9:103)
at _next (specs/embedding.test.js:11:194)
● Embedding content › should retry embeds that could not be embedded with trailing slashes, without the trailing slashes
waiting for selector "figure.wp-block-embed-twitter" failed: timeout 30000ms exceeded
192 | await page.keyboard.press( 'Enter' );
193 | // The twitter block should appear correctly.
> 194 | await page.waitForSelector( 'figure.wp-block-embed-twitter' );
| ^
195 | } );
196 |
197 | it( 'should allow the user to try embedding a failed URL again', async () => {
at new WaitTask (../../node_modules/puppeteer/lib/FrameManager.js:840:28)
at Frame._waitForSelectorOrXPath (../../node_modules/puppeteer/lib/FrameManager.js:731:12)
at Frame.waitForSelector (../../node_modules/puppeteer/lib/FrameManager.js:690:17)
at Page.waitForSelector (../../node_modules/puppeteer/lib/Page.js:1008:29)
at Object.waitForSelector (specs/embedding.test.js:194:14)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/embedding.test.js:9:103)
at _next (specs/embedding.test.js:11:194)
● Embedding content › should allow the user to try embedding a failed URL again
waiting for selector "figure.wp-block-embed-twitter" failed: timeout 30000ms exceeded
212 | );
213 | await clickButton( 'Try again' );
> 214 | await page.waitForSelector( 'figure.wp-block-embed-twitter' );
| ^
215 | } );
216 |
217 | it( 'should switch to the WordPress block correctly', async () => {
at new WaitTask (../../node_modules/puppeteer/lib/FrameManager.js:840:28)
at Frame._waitForSelectorOrXPath (../../node_modules/puppeteer/lib/FrameManager.js:731:12)
at Frame.waitForSelector (../../node_modules/puppeteer/lib/FrameManager.js:690:17)
at Page.waitForSelector (../../node_modules/puppeteer/lib/Page.js:1008:29)
at Object.waitForSelector (specs/embedding.test.js:214:14)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/embedding.test.js:9:103)
at _next (specs/embedding.test.js:11:194)
› 1 snapshot failed.
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "http://localhost:8889"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/publishing.test.js (12.491s)
● Publishing › a post › should publish the post and close the panel once we start editing again.
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Publishing › a post with pre-publish checks disabled › should publish the post without opening the post-publish sidebar.
Evaluation failed: element is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● Publishing › a post with pre-publish checks disabled › should publish the post without opening the post-publish sidebar.
expect(received).toBeNull()
Received: {"_client": {"_callbacks": [Map], "_connection": [Connection], "_events": [Object], "_eventsCount": 27, "_lastId": 259, "_maxListeners": undefined, "_sessionId": 46, "_sessions": [Map], "_targetType": "page"}, "_context": {"_client": [CDPSession], "_contextId": 105226698761, "_frame": [Frame], "_objectHandleFactory": [Function bound createJSHandle]}, "_disposed": false, "_frameManager": {"_client": [CDPSession], "_contextIdToContext": [Map], "_events": [Object], "_eventsCount": 3, "_frames": [Map], "_mainFrame": [Frame], "_maxListeners": undefined, "_page": [Page]}, "_page": {"_client": [CDPSession], "_closed": false, "_coverage": [Coverage], "_defaultNavigationTimeout": 30000, "_emulationManager": [EmulationManager], "_events": [Object], "_eventsCount": 4, "_frameManager": [FrameManager], "_ignoreHTTPSErrors": false, "_keyboard": [Keyboard], "_maxListeners": undefined, "_mouse": [Mouse], "_networkManager": [NetworkManager], "_pageBindings": [Map], "_screenshotTaskQueue": [TaskQueue], "_target": [Target], "_touchscreen": [Touchscreen], "_tracing": [Tracing], "_viewport": [Object], "_workers": [Map]}, "_remoteObject": {"objectId": "b8d006f3-73b4-6142-99d0-c3b36b7cfdc7", "subtype": "node", "type": "object"}}
68 |
69 | // The "Publish" button should be shown instead of the "Publish..." toggle
> 70 | expect( await page.$( '.editor-post-publish-panel__toggle' ) ).toBeNull();
| ^
71 | expect( await page.$( '.editor-post-publish-button' ) ).not.toBeNull();
72 |
73 | await publishPostWithPrePublishChecksDisabled();
at Object.toBeNull (specs/publishing.test.js:70:68)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/publishing.test.js:11:103)
at _next (specs/publishing.test.js:13:194)
● Publishing › a post with pre-publish checks disabled › should publish the post without opening the post-publish sidebar.
TypeError: Cannot read property 'click' of undefined
at _callee$ (../e2e-test-utils/build/@wordpress/e2e-test-utils/src/click-on-more-menu-item.js:11:8)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
● Publishing › a page with pre-publish checks disabled › should publish the page without opening the post-publish sidebar.
Evaluation failed: element is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● Publishing › a page with pre-publish checks disabled › should publish the page without opening the post-publish sidebar.
expect(received).toBeNull()
Received: {"_client": {"_callbacks": [Map], "_connection": [Connection], "_events": [Object], "_eventsCount": 27, "_lastId": 334, "_maxListeners": undefined, "_sessionId": 46, "_sessions": [Map], "_targetType": "page"}, "_context": {"_client": [CDPSession], "_contextId": 105226698762, "_frame": [Frame], "_objectHandleFactory": [Function bound createJSHandle]}, "_disposed": false, "_frameManager": {"_client": [CDPSession], "_contextIdToContext": [Map], "_events": [Object], "_eventsCount": 3, "_frames": [Map], "_mainFrame": [Frame], "_maxListeners": undefined, "_page": [Page]}, "_page": {"_client": [CDPSession], "_closed": false, "_coverage": [Coverage], "_defaultNavigationTimeout": 30000, "_emulationManager": [EmulationManager], "_events": [Object], "_eventsCount": 4, "_frameManager": [FrameManager], "_ignoreHTTPSErrors": false, "_keyboard": [Keyboard], "_maxListeners": undefined, "_mouse": [Mouse], "_networkManager": [NetworkManager], "_pageBindings": [Map], "_screenshotTaskQueue": [TaskQueue], "_target": [Target], "_touchscreen": [Touchscreen], "_tracing": [Tracing], "_viewport": [Object], "_workers": [Map]}, "_remoteObject": {"objectId": "eefccc67-6a91-d441-a37f-201d57d66b84", "subtype": "node", "type": "object"}}
68 |
69 | // The "Publish" button should be shown instead of the "Publish..." toggle
> 70 | expect( await page.$( '.editor-post-publish-panel__toggle' ) ).toBeNull();
| ^
71 | expect( await page.$( '.editor-post-publish-button' ) ).not.toBeNull();
72 |
73 | await publishPostWithPrePublishChecksDisabled();
at Object.toBeNull (specs/publishing.test.js:70:68)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/publishing.test.js:11:103)
at _next (specs/publishing.test.js:13:194)
● Publishing › a page with pre-publish checks disabled › should publish the page without opening the post-publish sidebar.
TypeError: Cannot read property 'click' of undefined
at _callee$ (../e2e-test-utils/build/@wordpress/e2e-test-utils/src/click-on-more-menu-item.js:11:8)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
● Publishing › a post in small viewports › should ignore the pre-publish checks and show the Publish... toggle instead of the Publish button
Evaluation failed: element is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● Publishing › a post in small viewports › should ignore the pre-publish checks and show the Publish... toggle instead of the Publish button
TypeError: Cannot read property 'click' of undefined
at _callee$ (../e2e-test-utils/build/@wordpress/e2e-test-utils/src/click-on-more-menu-item.js:11:8)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
● Publishing › a page in small viewports › should ignore the pre-publish checks and show the Publish... toggle instead of the Publish button
TypeError: Cannot read property 'click' of undefined
at _callee$ (../e2e-test-utils/build/@wordpress/e2e-test-utils/src/click-on-more-menu-item.js:11:8)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
● Publishing › a page in small viewports › should ignore the pre-publish checks and show the Publish... toggle instead of the Publish button
Element .edit-post-more-menu [aria-label="Show more tools & options"] not found
waiting for function failed: timeout 500ms exceeded
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "http://localhost:8889"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/new-post.test.js (10.364s)
● new editor state › should show the New Post page in Gutenberg
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● new editor state › should show the New Post page in Gutenberg
Evaluation failed: wp.data is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● new editor state › should show the New Post page in Gutenberg
expect(received).toEqual(expected)
Expected: StringContaining "post-new.php"
Received: "http://localhost:8889/wp-admin/plugins.php?plugin_status=all&paged=1&s"
22 |
23 | it( 'should show the New Post page in Gutenberg', async () => {
> 24 | expect( page.url() ).toEqual( expect.stringContaining( 'post-new.php' ) );
| ^
25 | // Should display the blank title.
26 | const title = await page.$( '[placeholder="Add title"]' );
27 | expect( title ).not.toBeNull();
at Object.toEqual (specs/new-post.test.js:24:24)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/new-post.test.js:15:103)
at _next (specs/new-post.test.js:17:194)
at specs/new-post.test.js:17:364
at Object.<anonymous> (specs/new-post.test.js:17:97)
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.error:
TypeError: topFrame.currentURI is null: _onRequest@chrome://remote/content/domains/parent/Network.jsm:100:20
emit@resource://gre/modules/EventEmitter.jsm:160:20
_onRequest@chrome://remote/content/domains/parent/network/NetworkObserver.jsm:282:10
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "http://localhost:8889"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/change-detection.test.js (76.07s)
● Change detection › Should not save on new unsaved post
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Change detection › Should prompt to confirm unsaved changes for autosaved draft for non-content fields
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
37 |
38 | // Ensure whether it was expected that dialog was encountered.
> 39 | expect( hadDialog ).toBe( isDirty );
| ^
40 | } catch ( error ) {
41 | throw error;
42 | } finally {
at toBe (specs/change-detection.test.js:39:24)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/change-detection.test.js:19:103)
at _next (specs/change-detection.test.js:21:194)
● Change detection › Should prompt to confirm unsaved changes for autosaved published post
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
37 |
38 | // Ensure whether it was expected that dialog was encountered.
> 39 | expect( hadDialog ).toBe( isDirty );
| ^
40 | } catch ( error ) {
41 | throw error;
42 | } finally {
at toBe (specs/change-detection.test.js:39:24)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/change-detection.test.js:19:103)
at _next (specs/change-detection.test.js:21:194)
● Change detection › Should prompt if property changed without save
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
37 |
38 | // Ensure whether it was expected that dialog was encountered.
> 39 | expect( hadDialog ).toBe( isDirty );
| ^
40 | } catch ( error ) {
41 | throw error;
42 | } finally {
at toBe (specs/change-detection.test.js:39:24)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/change-detection.test.js:19:103)
at _next (specs/change-detection.test.js:21:194)
● Change detection › Should prompt if content added without save
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
37 |
38 | // Ensure whether it was expected that dialog was encountered.
> 39 | expect( hadDialog ).toBe( isDirty );
| ^
40 | } catch ( error ) {
41 | throw error;
42 | } finally {
at toBe (specs/change-detection.test.js:39:24)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/change-detection.test.js:19:103)
at _next (specs/change-detection.test.js:21:194)
● Change detection › Should prompt if save failed
waiting for XPath "//*[contains(@class, "components-notice") and contains(@class, "is-error")]/*[text()="Updating failed"]" failed: timeout 30000ms exceeded
199 |
200 | // Ensure save update fails and presents button.
> 201 | page.waitForXPath(
| ^
202 | '//*[contains(@class, "components-notice") and contains(@class, "is-error")]/*[text()="Updating failed"]'
203 | ),
204 | page.waitForSelector( '.editor-post-save-draft' ),
at new WaitTask (../../node_modules/puppeteer/lib/FrameManager.js:840:28)
at Frame._waitForSelectorOrXPath (../../node_modules/puppeteer/lib/FrameManager.js:731:12)
at Frame.waitForXPath (../../node_modules/puppeteer/lib/FrameManager.js:699:17)
at Page.waitForXPath (../../node_modules/puppeteer/lib/Page.js:1017:29)
at Object.waitForXPath (specs/change-detection.test.js:201:9)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/change-detection.test.js:19:103)
at _next (specs/change-detection.test.js:21:194)
● Change detection › Should prompt if changes and save is in-flight
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
37 |
38 | // Ensure whether it was expected that dialog was encountered.
> 39 | expect( hadDialog ).toBe( isDirty );
| ^
40 | } catch ( error ) {
41 | throw error;
42 | } finally {
at toBe (specs/change-detection.test.js:39:24)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/change-detection.test.js:19:103)
at _next (specs/change-detection.test.js:21:194)
● Change detection › Should prompt if changes made while save is in-flight
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
37 |
38 | // Ensure whether it was expected that dialog was encountered.
> 39 | expect( hadDialog ).toBe( isDirty );
| ^
40 | } catch ( error ) {
41 | throw error;
42 | } finally {
at toBe (specs/change-detection.test.js:39:24)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/change-detection.test.js:19:103)
at _next (specs/change-detection.test.js:21:194)
● Change detection › Should prompt if property changes made while save is in-flight, and save completes
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
37 |
38 | // Ensure whether it was expected that dialog was encountered.
> 39 | expect( hadDialog ).toBe( isDirty );
| ^
40 | } catch ( error ) {
41 | throw error;
42 | } finally {
at toBe (specs/change-detection.test.js:39:24)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/change-detection.test.js:19:103)
at _next (specs/change-detection.test.js:21:194)
● Change detection › Should prompt if block revision is made while save is in-flight, and save completes
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
37 |
38 | // Ensure whether it was expected that dialog was encountered.
> 39 | expect( hadDialog ).toBe( isDirty );
| ^
40 | } catch ( error ) {
41 | throw error;
42 | } finally {
at toBe (specs/change-detection.test.js:39:24)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/change-detection.test.js:19:103)
at _next (specs/change-detection.test.js:21:194)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "http://localhost:8889"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/plugins/meta-attribute-block.test.js (6.493s)
● Block with a meta attribute › Should persist the meta attribute properly
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Block with a meta attribute › Should persist the meta attribute properly
Evaluation failed: wp.data.dispatch(...) is null
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● Block with a meta attribute › Should persist the meta attribute properly
No node found for selector: .edit-post-header [aria-label="Add block"]
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.click (../../node_modules/puppeteer/lib/FrameManager.js:590:5)
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.error:
TypeError: topFrame.currentURI is null: _onRequest@chrome://remote/content/domains/parent/Network.jsm:100:20
emit@resource://gre/modules/EventEmitter.jsm:160:20
_onRequest@chrome://remote/content/domains/parent/network/NetworkObserver.jsm:282:10
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/plugins/format-api.test.js
● Using Format API › Clicking the control wraps the selected text properly with HTML code
Evaluation failed: wp.data is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● Using Format API › Clicking the control wraps the selected text properly with HTML code
No node found for selector: .block-editor-default-block-appender__content
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.click (../../node_modules/puppeteer/lib/FrameManager.js:590:5)
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/plugins/allowed-blocks.test.js
● Allowed Blocks Filter › should restrict the allowed blocks in the inserter
Evaluation failed: wp.data is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● Allowed Blocks Filter › should restrict the allowed blocks in the inserter
No node found for selector: .edit-post-header [aria-label="Add block"]
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.click (../../node_modules/puppeteer/lib/FrameManager.js:590:5)
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/plugins/wp-editor-meta-box.test.js
● WP Editor Meta Boxes › Should save the changes
Evaluation failed: wp.data is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● WP Editor Meta Boxes › Should save the changes
No node found for selector: .editor-post-title__input
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.type (../../node_modules/puppeteer/lib/FrameManager.js:657:5)
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.error:
TypeError: topFrame.currentURI is null: _onRequest@chrome://remote/content/domains/parent/Network.jsm:100:20
emit@resource://gre/modules/EventEmitter.jsm:160:20
_onRequest@chrome://remote/content/domains/parent/network/NetworkObserver.jsm:282:10
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
JavaScript error: chrome://remote/content/domains/content/Page.jsm, line 127: TypeError: target.location is null
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/plugins/container-blocks.test.js (108.783s)
● InnerBlocks Template Sync › Ensures blocks without locking are kept intact even if they do not match the template
Timeout - Async callback was not invoked within the 100000ms timeout specified by jest.setTimeout.
43 | };
44 |
> 45 | it( 'Ensures blocks without locking are kept intact even if they do not match the template ', async () => {
| ^
46 | await insertBlockAndAddParagraphInside( 'Test Inner Blocks no locking', 'test/test-inner-blocks-no-locking' );
47 | expect( await getEditedPostContent() ).toMatchSnapshot();
48 | } );
at Spec (../../node_modules/jest-jasmine2/build/jasmine/Spec.js:92:20)
at Suite.it (specs/plugins/container-blocks.test.js:45:2)
● InnerBlocks Template Sync › Ensures blocks without locking are kept intact even if they do not match the template
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["TypeError: target.location is null"]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Container block without paragraph support › ensures we can use the alternative block appender properly
No node found for selector: .edit-post-header [aria-label="Add block"]
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.click (../../node_modules/puppeteer/lib/FrameManager.js:590:5)
(node:9091) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'addExpectationResult' of undefined
(node:9091) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 11)
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
JavaScript error: chrome://remote/content/domains/content/Page.jsm, line 127: TypeError: target.location is null
FAIL packages/e2e-tests/specs/plugins/inner-blocks-allowed-blocks.test.js
● Allowed Blocks Setting on InnerBlocks › allows all blocks if the allowed blocks setting was not set
No node found for selector: .edit-post-header [aria-label="Add block"]
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.click (../../node_modules/puppeteer/lib/FrameManager.js:590:5)
● Allowed Blocks Setting on InnerBlocks › allows the blocks if the allowed blocks setting was set
Evaluation failed: wp.data is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● Allowed Blocks Setting on InnerBlocks › allows the blocks if the allowed blocks setting was set
No node found for selector: .edit-post-header [aria-label="Add block"]
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.click (../../node_modules/puppeteer/lib/FrameManager.js:590:5)
● Allowed Blocks Setting on InnerBlocks › allows the blocks if the allowed blocks setting was set
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["TypeError: target.location is null"]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
JavaScript error: http://localhost:8889/wp-includes/js/media-editor.min.js?ver=5.2.2, line 1: TypeError: wp is null
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/plugins/block-icons.test.js (122.817s)
● Correctly Renders Block Icons on Inserter and Inspector › Block with svg icon › Renders correctly the icon in the inserter
Timeout - Async callback was not invoked within the 100000ms timeout specified by jest.setTimeout.
68 |
69 | function testIconsOfBlock( blockName, blockTitle, validateIcon ) {
> 70 | it( 'Renders correctly the icon in the inserter', async () => {
| ^
71 | await searchForBlock( blockTitle );
72 | validateIcon( await getFirstInserterIcon() );
73 | } );
at Spec (../../node_modules/jest-jasmine2/build/jasmine/Spec.js:92:20)
at it (specs/plugins/block-icons.test.js:70:3)
at Suite.testIconsOfBlock (specs/plugins/block-icons.test.js:92:3)
(node:9091) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'addExpectationResult' of undefined
(node:9091) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 12)
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
JavaScript error: , line 0: TypeError: NetworkError when attempting to fetch resource.
JavaScript error: , line 0: TypeError: NetworkError when attempting to fetch resource.
JavaScript error: , line 0: TypeError: NetworkError when attempting to fetch resource.
JavaScript error: , line 0: TypeError: NetworkError when attempting to fetch resource.
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/plugins/meta-boxes.test.js (14.849s)
● Meta boxes › Should save the post
No node found for selector: .editor-post-title__input
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.type (../../node_modules/puppeteer/lib/FrameManager.js:657:5)
● Meta boxes › Should render dynamic blocks when the meta box uses the excerpt for front end rendering
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["TypeError: NetworkError when attempting to fetch resource."],["TypeError: NetworkError when attempting to fetch resource."]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Meta boxes › Should render the excerpt in meta based on post content if no explicit excerpt exists
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["TypeError: NetworkError when attempting to fetch resource."]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Meta boxes › Should render the explicitly set excerpt in meta instead of the content based one
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["TypeError: NetworkError when attempting to fetch resource."]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
JavaScript error: http://localhost:8889/wp-includes/js/wp-emoji-release.min.js?ver=5.2.2, line 4: NS_ERROR_UNEXPECTED:
JavaScript error: http://localhost:8889/wp-admin/js/common.min.js?ver=5.2.2, line 1: NS_ERROR_UNEXPECTED:
console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "http://localhost:8889"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/plugins/align-hook.test.js (26.303s)
● Align Hook Works As Expected › Block with no alignment set › Shows no alignment buttons on the alignment toolbar
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
JavaScript error: http://localhost:8889/wp-includes/js/wp-emoji-release.min.js?ver=5.2.2, line 4: NS_ERROR_UNEXPECTED:
JavaScript error: http://localhost:8889/wp-admin/js/common.min.js?ver=5.2.2, line 1: NS_ERROR_UNEXPECTED:
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/plugins/deprecated-node-matcher.test.js (5.609s)
● Deprecated Node Matcher › should insert block with node source
Evaluation failed: wp.data.dispatch(...) is null
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● Deprecated Node Matcher › should insert block with node source
No node found for selector: .edit-post-header [aria-label="Add block"]
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.click (../../node_modules/puppeteer/lib/FrameManager.js:590:5)
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
JavaScript error: http://localhost:8889/wp-includes/js/wp-emoji-release.min.js?ver=5.2.2, line 4: NS_ERROR_UNEXPECTED:
JavaScript error: http://localhost:8889/wp-admin/js/common.min.js?ver=5.2.2, line 1: NS_ERROR_UNEXPECTED:
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/plugins/cpt-locking.test.js (18.17s)
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
JavaScript error: http://localhost:8889/wp-includes/js/wp-emoji-release.min.js?ver=5.2.2, line 4: NS_ERROR_UNEXPECTED:
JavaScript error: http://localhost:8889/wp-admin/js/common.min.js?ver=5.2.2, line 1: NS_ERROR_UNEXPECTED:
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/plugins/plugins-api.test.js (11.689s)
● Using Plugins API › Post Status Info › Should render post status info inside Document Setting sidebar
Error: failed to find element matching selector ".edit-post-post-status .my-post-status-info-plugin"
at ElementHandle.$eval (../../node_modules/puppeteer/lib/ElementHandle.js:307:13)
● Using Plugins API › Sidebar › Should open plugins sidebar using More Menu item and render content
TypeError: Cannot read property 'click' of undefined
at _callee$ (../e2e-test-utils/build/@wordpress/e2e-test-utils/src/click-on-more-menu-item.js:11:8)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
● Using Plugins API › Sidebar › Should close plugins sidebar using More Menu item
expect(received).toBeNull()
Received: {"_client": {"_callbacks": [Map], "_connection": [Connection], "_events": [Object], "_eventsCount": 27, "_lastId": 226, "_maxListeners": undefined, "_sessionId": 60, "_sessions": [Map], "_targetType": "page"}, "_context": {"_client": [CDPSession], "_contextId": 135291469835, "_frame": [Frame], "_objectHandleFactory": [Function bound createJSHandle]}, "_disposed": false, "_frameManager": {"_client": [CDPSession], "_contextIdToContext": [Map], "_events": [Object], "_eventsCount": 3, "_frames": [Map], "_mainFrame": [Frame], "_maxListeners": undefined, "_page": [Page]}, "_page": {"_client": [CDPSession], "_closed": false, "_coverage": [Coverage], "_defaultNavigationTimeout": 30000, "_emulationManager": [EmulationManager], "_events": [Object], "_eventsCount": 4, "_frameManager": [FrameManager], "_ignoreHTTPSErrors": false, "_keyboard": [Keyboard], "_maxListeners": undefined, "_mouse": [Mouse], "_networkManager": [NetworkManager], "_pageBindings": [Map], "_screenshotTaskQueue": [TaskQueue], "_target": [Target], "_touchscreen": [Touchscreen], "_tracing": [Tracing], "_viewport": [Object], "_workers": [Map]}, "_remoteObject": {"objectId": "f40cc868-903f-3642-9181-5489e19f5707", "subtype": "node", "type": "object"}}
74 |
75 | const pluginSidebarClosed = await page.$( '.edit-post-sidebar' );
> 76 | expect( pluginSidebarClosed ).toBeNull();
| ^
77 | } );
78 | } );
79 | } );
at Object.toBeNull (specs/plugins/plugins-api.test.js:76:34)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/plugins/plugins-api.test.js:9:103)
at _next (specs/plugins/plugins-api.test.js:11:194)
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
JavaScript error: http://localhost:8889/wp-includes/js/wp-emoji-release.min.js?ver=5.2.2, line 4: NS_ERROR_UNEXPECTED:
JavaScript error: http://localhost:8889/wp-admin/js/common.min.js?ver=5.2.2, line 1: NS_ERROR_UNEXPECTED:
console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "http://localhost:8889"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/plugins/templates.test.js (22.871s)
● templates › Using a CPT with a predefined template › Should add a custom post types with a predefined template
expect(value).toMatchSnapshot()
Received value does not match stored snapshot "templates Using a CPT with a predefined template Should add a custom post types with a predefined template 1".
- Snapshot
+ Received
- "<!-- wp:image -->
- <figure class="wp-block-image"><img alt=""/></figure>
- <!-- /wp:image -->
-
- <!-- wp:paragraph {"placeholder":"Add a book description"} -->
- <p></p>
- <!-- /wp:paragraph -->
-
- <!-- wp:quote -->
- <blockquote class="wp-block-quote"><p></p></blockquote>
- <!-- /wp:quote -->
-
- <!-- wp:columns -->
- <div class="wp-block-columns has-2-columns"><!-- wp:column -->
- <div class="wp-block-column"><!-- wp:image -->
- <figure class="wp-block-image"><img alt=""/></figure>
- <!-- /wp:image --></div>
- <!-- /wp:column -->
-
- <!-- wp:column -->
- <div class="wp-block-column"><!-- wp:paragraph {"placeholder":"Add a inner paragraph"} -->
- <p></p>
- <!-- /wp:paragraph --></div>
- <!-- /wp:column --></div>
- <!-- /wp:columns -->"
+ ""
30 |
31 | it( 'Should add a custom post types with a predefined template', async () => {
> 32 | expect( await getEditedPostContent() ).toMatchSnapshot();
| ^
33 | } );
34 |
35 | it( 'Should respect user edits to not re-apply template after save (single block removal)', async () => {
at Object.toMatchSnapshot (specs/plugins/templates.test.js:32:43)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/plugins/templates.test.js:15:103)
at _next (specs/plugins/templates.test.js:17:194)
● templates › With default post format assigned › should populate new post with default block for format
expect(value).toMatchSnapshot()
Received value does not match stored snapshot "templates With default post format assigned should populate new post with default block for format 1".
- Snapshot
+ Received
- "<!-- wp:image -->
- <figure class="wp-block-image"><img alt=""/></figure>
- <!-- /wp:image -->"
+ ""
86 | await createNewPost();
87 |
> 88 | expect( await getEditedPostContent() ).toMatchSnapshot();
| ^
89 | } );
90 |
91 | it( 'should not populate edited post with default block for format', async () => {
at Object.toMatchSnapshot (specs/plugins/templates.test.js:88:43)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/plugins/templates.test.js:15:103)
at _next (specs/plugins/templates.test.js:17:194)
● templates › With default post format assigned › should not populate edited post with default block for format
Error: failed to find element matching selector "#default_post_format"
at ElementHandle.$eval (../../node_modules/puppeteer/lib/ElementHandle.js:307:13)
● templates › With default post format assigned › should not populate new page with default block for format
Error: failed to find element matching selector "#default_post_format"
at ElementHandle.$eval (../../node_modules/puppeteer/lib/ElementHandle.js:307:13)
› 2 snapshots failed.
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
JavaScript error: http://localhost:8889/wp-includes/js/wp-emoji-release.min.js?ver=5.2.2, line 4: NS_ERROR_UNEXPECTED:
JavaScript error: http://localhost:8889/wp-admin/js/common.min.js?ver=5.2.2, line 1: NS_ERROR_UNEXPECTED:
console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "http://localhost:8889"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/plugins/hooks-api.test.js (7.245s)
● Using Hooks API › Should contain a reset block button on the sidebar
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Using Hooks API › Should contain a reset block button on the sidebar
No node found for selector: .block-editor-default-block-appender__content
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.click (../../node_modules/puppeteer/lib/FrameManager.js:590:5)
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
JavaScript error: http://localhost:8889/wp-includes/js/wp-emoji-release.min.js?ver=5.2.2, line 4: NS_ERROR_UNEXPECTED:
JavaScript error: http://localhost:8889/wp-admin/js/common.min.js?ver=5.2.2, line 1: NS_ERROR_UNEXPECTED:
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/blocks/heading.test.js (5.462s)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/blocks/section.test.js (5.934s)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/blocks/list.test.js (68.674s)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/blocks/separator.test.js
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/blocks/code.test.js
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
PASS packages/e2e-tests/specs/blocks/preformatted.test.js
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
console.warn: nsLoginManager: "searchLogins: `formActionOrigin` or `httpRealm` is recommended"
FAIL packages/e2e-tests/specs/blocks/classic.test.js (36.503s)
● Classic › should insert media
waiting for selector "div[aria-label="Add Media"]" failed: timeout 30000ms exceeded
44 |
45 | // Click the image button.
> 46 | await page.waitForSelector( 'div[aria-label="Add Media"]' );
| ^
47 | await page.click( 'div[aria-label="Add Media"]' );
48 |
49 | // Wait for media modal to appear and upload image.
at new WaitTask (../../node_modules/puppeteer/lib/FrameManager.js:840:28)
at Frame._waitForSelectorOrXPath (../../node_modules/puppeteer/lib/FrameManager.js:731:12)
at Frame.waitForSelector (../../node_modules/puppeteer/lib/FrameManager.js:690:17)
at Page.waitForSelector (../../node_modules/puppeteer/lib/Page.js:1008:29)
at Object.waitForSelector (specs/blocks/classic.test.js:46:14)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/blocks/classic.test.js:21:103)
at _next (specs/blocks/classic.test.js:23:194)
console.error:
TypeError: this.mm is null: destructor@chrome://remote/content/sessions/TabSession.jsm:52:5
emit@resource://gre/modules/EventEmitter.jsm:160:20
close@chrome://remote/content/server/WebSocketTransport.jsm:50:10
handleEvent@chrome://remote/content/server/WebSocketTransport.jsm:70:14
EventListener.handleEvent*ready@chrome://remote/content/server/WebSocketTransport.jsm:30:17
Connection@chrome://remote/content/Connection.jsm:33:20
handle@chrome://remote/content/targets/Target.jsm:47:18
async*createHandlerFunc/<@chrome://remote/content/server/HTTPD.jsm:2033:13
handleResponse@chrome://remote/content/server/HTTPD.jsm:2358:36
process@chrome://remote/content/server/HTTPD.jsm:1254:26
_handleResponse@chrome://remote/content/server/HTTPD.jsm:1700:22
_processBody@chrome://remote/content/server/HTTPD.jsm:1545:14
onInputStreamReady@chrome://remote/content/server/HTTPD.jsm:1425:14
FAIL packages/e2e-tests/specs/blocks/media-text.test.js
● Test suite failed to run
TypeError: Cannot read property 'removeListener' of undefined
at PuppeteerEnvironment.teardown (../../node_modules/jest-environment-puppeteer/lib/PuppeteerEnvironment.js:126:22)
FAIL packages/e2e-tests/specs/blocks/quote.test.js
● Test suite failed to run
TypeError: Cannot read property 'removeListener' of undefined
at PuppeteerEnvironment.teardown (../../node_modules/jest-environment-puppeteer/lib/PuppeteerEnvironment.js:126:22)
FAIL packages/e2e-tests/specs/blocks/columns.test.js
● Test suite failed to run
TypeError: Cannot read property 'removeListener' of undefined
at PuppeteerEnvironment.teardown (../../node_modules/jest-environment-puppeteer/lib/PuppeteerEnvironment.js:126:22)
FAIL packages/e2e-tests/specs/blocks/html.test.js
● Test suite failed to run
TypeError: Cannot read property 'removeListener' of undefined
at PuppeteerEnvironment.teardown (../../node_modules/jest-environment-puppeteer/lib/PuppeteerEnvironment.js:126:22)
Summary of all failing tests
FAIL specs/plugins/annotations.test.js (113.136s)
● Using Plugins API › Annotations › Allows a block to be annotated
Timeout - Async callback was not invoked within the 100000ms timeout specified by jest.setTimeout.
88 |
89 | describe( 'Annotations', () => {
> 90 | it( 'Allows a block to be annotated', async () => {
| ^
91 | await page.keyboard.type( 'Title' + '\n' + 'Paragraph to annotate' );
92 |
93 | await clickOnMoreMenuItem( 'Annotations Sidebar' );
at Spec (../../node_modules/jest-jasmine2/build/jasmine/Spec.js:92:20)
at Suite.it (specs/plugins/annotations.test.js:90:3)
● Using Plugins API › Annotations › Keeps the cursor in the same location when applying annotation
No node found for selector: #annotations-tests-range-start
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.focus (../../node_modules/puppeteer/lib/FrameManager.js:600:5)
FAIL specs/preview.test.js (313.414s)
● Preview › should open a preview window for a new post
Timeout - Async callback was not invoked within the 100000ms timeout specified by jest.setTimeout.
85 | } );
86 |
> 87 | it( 'should open a preview window for a new post', async () => {
| ^
88 | const editorPage = page;
89 |
90 | // Disabled until content present.
at Spec (../../node_modules/jest-jasmine2/build/jasmine/Spec.js:92:20)
at Suite.it (specs/preview.test.js:87:2)
● Preview › should not revert title during a preview right after a save draft
Timeout - Async callback was not invoked within the 100000ms timeout specified by jest.setTimeout.
162 | } );
163 |
> 164 | it( 'should not revert title during a preview right after a save draft', async () => {
| ^
165 | const editorPage = page;
166 |
167 | // Type aaaaa in the title filed.
at Spec (../../node_modules/jest-jasmine2/build/jasmine/Spec.js:92:20)
at Suite.it (specs/preview.test.js:164:2)
● Preview with Custom Fields enabled › displays edits to the post title and content in the preview
Timeout - Async callback was not invoked within the 100000ms timeout specified by jest.setTimeout.
211 |
212 | // Catch regressions of https://github.com/WordPress/gutenberg/issues/12617
> 213 | it( 'displays edits to the post title and content in the preview', async () => {
| ^
214 | const editorPage = page;
215 |
216 | // Add an initial title and content.
at Spec (../../node_modules/jest-jasmine2/build/jasmine/Spec.js:92:20)
at Suite.it (specs/preview.test.js:213:2)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
FAIL specs/adding-inline-tokens.test.js (102.706s)
● adding inline tokens › should insert inline image
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● adding inline tokens › should insert inline image
Timeout - Async callback was not invoked within the 100000ms timeout specified by jest.setTimeout.
23 | } );
24 |
> 25 | it( 'should insert inline image', async () => {
| ^
26 | // Create a paragraph.
27 | await clickBlockAppender();
28 | await page.keyboard.type( 'a ' );
at Spec (../../node_modules/jest-jasmine2/build/jasmine/Spec.js:92:20)
at Suite.it (specs/adding-inline-tokens.test.js:25:2)
FAIL specs/block-transforms.test.js (51.121s)
● Block transforms › should contain the expected transforms
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]],["Media resource data:audio/mpeg;base64,/+MYxAAAAANIAAAAAExBTUUzLjk4LjIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA could not be decoded."],["Media resource data:audio/mpeg;base64,/+MYxAAAAANIAAAAAExBTUUzLjk4LjIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA could not be decoded, error: Error Code: NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006)"]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Block transforms › correctly transform › block Audio in fixture core__audio into the File block
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
["Media resource data:audio/mpeg;base64,/+MYxAAAAANIAAAAAExBTUUzLjk4LjIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA could not be decoded."]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Block transforms › correctly transform › block Media & Text in fixture core__media-text into the Image block
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
["Media resource data:audio/mpeg;base64,/+MYxAAAAANIAAAAAExBTUUzLjk4LjIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA could not be decoded, error: Error Code: NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006)"]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Block transforms › correctly transform › block Cover in fixture core__cover__video-overlay into the Video block
expect(value).toMatchSnapshot()
Received value does not match stored snapshot "Block transforms correctly transform block Cover in fixture core__cover__video-overlay into the Video block 1".
- Snapshot
+ Received
- "<!-- wp:video -->
- <figure class="wp-block-video"><video controls src="data:video/mp4;base64,AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAAAAhmcmVlAAAC721kYXQhEAUgpBv/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3pwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcCEQBSCkG//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADengAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAsJtb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAALwABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAB7HRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAIAAAAAAAAALwAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAC8AAAAAAAEAAAAAAWRtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAKxEAAAIAFXEAAAAAAAtaGRscgAAAAAAAAAAc291bgAAAAAAAAAAAAAAAFNvdW5kSGFuZGxlcgAAAAEPbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAADTc3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAAAAAgAQAAAAAKxEAAAAAAAzZXNkcwAAAAADgICAIgACAASAgIAUQBUAAAAAAfQAAAHz+QWAgIACEhAGgICAAQIAAAAYc3R0cwAAAAAAAAABAAAAAgAABAAAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAIAAAABAAAAHHN0c3oAAAAAAAAAAAAAAAIAAAFzAAABdAAAABRzdGNvAAAAAAAAAAEAAAAsAAAAYnVkdGEAAABabWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAtaWxzdAAAACWpdG9vAAAAHWRhdGEAAAABAAAAAExhdmY1Ni40MC4xMDE="></video></figure>
- <!-- /wp:video -->"
+ "<!-- wp:cover {"url":"data:video/mp4;base64,AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAAAAhmcmVlAAAC721kYXQhEAUgpBv/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3pwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcCEQBSCkG//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADengAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAsJtb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAALwABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAB7HRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAIAAAAAAAAALwAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAC8AAAAAAAEAAAAAAWRtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAKxEAAAIAFXEAAAAAAAtaGRscgAAAAAAAAAAc291bgAAAAAAAAAAAAAAAFNvdW5kSGFuZGxlcgAAAAEPbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAADTc3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAAAAAgAQAAAAAKxEAAAAAAAzZXNkcwAAAAADgICAIgACAASAgIAUQBUAAAAAAfQAAAHz+QWAgIACEhAGgICAAQIAAAAYc3R0cwAAAAAAAAABAAAAAgAABAAAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAIAAAABAAAAHHN0c3oAAAAAAAAAAAAAAAIAAAFzAAABdAAAABRzdGNvAAAAAAAAAAEAAAAsAAAAYnVkdGEAAABabWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAtaWxzdAAAACWpdG9vAAAAHWRhdGEAAAABAAAAAExhdmY1Ni40MC4xMDE=","dimRatio":10,"customOverlayColor":"#3615d9","backgroundType":"video"} -->
+ <div class="wp-block-cover has-background-dim-10 has-background-dim" style="background-color:#3615d9"><video class="wp-block-cover__video-background" autoplay muted loop src="data:video/mp4;base64,AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAAAAhmcmVlAAAC721kYXQhEAUgpBv/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3pwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcCEQBSCkG//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADengAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAsJtb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAALwABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAB7HRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAIAAAAAAAAALwAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAC8AAAAAAAEAAAAAAWRtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAKxEAAAIAFXEAAAAAAAtaGRscgAAAAAAAAAAc291bgAAAAAAAAAAAAAAAFNvdW5kSGFuZGxlcgAAAAEPbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAADTc3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAAAAAgAQAAAAAKxEAAAAAAAzZXNkcwAAAAADgICAIgACAASAgIAUQBUAAAAAAfQAAAHz+QWAgIACEhAGgICAAQIAAAAYc3R0cwAAAAAAAAABAAAAAgAABAAAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAIAAAABAAAAHHN0c3oAAAAAAAAAAAAAAAIAAAFzAAABdAAAABRzdGNvAAAAAAAAAAEAAAAsAAAAYnVkdGEAAABabWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAtaWxzdAAAACWpdG9vAAAAHWRhdGEAAAABAAAAAExhdmY1Ni40MC4xMDE="></video><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"center","placeholder":"Write title…","fontSize":"large"} -->
+ <p style="text-align:center" class="has-large-font-size">
+ Guten Berg!
+ </p>
+ <!-- /wp:paragraph --></div></div>
+ <!-- /wp:cover -->"
166 | expect(
167 | await getTransformResult( content, destinationBlock )
> 168 | ).toMatchSnapshot();
| ^
169 | }
170 | );
171 | } );
at toMatchSnapshot (specs/block-transforms.test.js:168:7)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/block-transforms.test.js:27:103)
at _next (specs/block-transforms.test.js:29:194)
FAIL specs/links.test.js (47.827s)
● Links › can be modified using the keyboard once a link has been set
expect(received).toBeNull()
Received: {"_client": {"_callbacks": [Map], "_connection": [Connection], "_events": [Object], "_eventsCount": 27, "_lastId": 1724, "_maxListeners": undefined, "_sessionId": 8, "_sessions": [Map], "_targetType": "page"}, "_context": {"_client": [CDPSession], "_contextId": 23622320150, "_frame": [Frame], "_objectHandleFactory": [Function bound createJSHandle]}, "_disposed": false, "_frameManager": {"_client": [CDPSession], "_contextIdToContext": [Map], "_events": [Object], "_eventsCount": 3, "_frames": [Map], "_mainFrame": [Frame], "_maxListeners": undefined, "_page": [Page]}, "_page": {"_client": [CDPSession], "_closed": false, "_coverage": [Coverage], "_defaultNavigationTimeout": 30000, "_emulationManager": [EmulationManager], "_events": [Object], "_eventsCount": 4, "_frameManager": [FrameManager], "_ignoreHTTPSErrors": false, "_keyboard": [Keyboard], "_maxListeners": undefined, "_mouse": [Mouse], "_networkManager": [NetworkManager], "_pageBindings": [Map], "_screenshotTaskQueue": [TaskQueue], "_target": [Target], "_touchscreen": [Touchscreen], "_tracing": [Tracing], "_viewport": [Object], "_workers": [Map]}, "_remoteObject": {"objectId": "a8673ab3-4fa3-754c-9f85-418dc7b07258", "subtype": "node", "type": "object"}}
414 | // and the link popover should not be displayed.
415 | await page.keyboard.press( 'End' );
> 416 | expect( await page.$( '.block-editor-url-popover' ) ).toBeNull();
| ^
417 |
418 | // Move the caret back into the link text and the link popover
419 | // should be displayed.
at Object.toBeNull (specs/links.test.js:416:57)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/links.test.js:15:103)
at _next (specs/links.test.js:17:194)
FAIL specs/editor-modes.test.js (38.85s)
● Editing modes (visual/HTML) › should switch between visual and HTML modes
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Editing modes (visual/HTML) › should display sidebar in HTML mode
waiting for selector "button[aria-label="More options"]" failed: timeout 30000ms exceeded
52 |
53 | // Change editing mode from "Visual" to "HTML".
> 54 | await page.waitForSelector( 'button[aria-label="More options"]' );
| ^
55 | await page.click( 'button[aria-label="More options"]' );
56 | const changeModeButton = await page.waitForXPath( '//button[text()="Edit as HTML"]' );
57 | await changeModeButton.click();
at new WaitTask (../../node_modules/puppeteer/lib/FrameManager.js:840:28)
at Frame._waitForSelectorOrXPath (../../node_modules/puppeteer/lib/FrameManager.js:731:12)
at Frame.waitForSelector (../../node_modules/puppeteer/lib/FrameManager.js:690:17)
at Page.waitForSelector (../../node_modules/puppeteer/lib/Page.js:1008:29)
at Object.waitForSelector (specs/editor-modes.test.js:54:14)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/editor-modes.test.js:9:103)
at _next (specs/editor-modes.test.js:11:194)
FAIL specs/writing-flow.test.js (29.454s)
● adding blocks › should navigate empty paragraph
expect(value).toMatchSnapshot()
Received value does not match stored snapshot "adding blocks should navigate empty paragraph 1".
- Snapshot
+ Received
"<!-- wp:paragraph -->
- <p>1</p>
+ <p></p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>2</p>
<!-- /wp:paragraph -->"
309 | await page.keyboard.type( '2' );
310 |
> 311 | expect( await getEditedPostContent() ).toMatchSnapshot();
| ^
312 | } );
313 |
314 | it( 'should navigate contenteditable with padding', async () => {
at Object.toMatchSnapshot (specs/writing-flow.test.js:311:42)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/writing-flow.test.js:9:103)
at _next (specs/writing-flow.test.js:11:194)
● adding blocks › should navigate contenteditable with padding
expect(value).toMatchSnapshot()
Received value does not match stored snapshot "adding blocks should navigate contenteditable with padding 1".
- Snapshot
+ Received
"<!-- wp:paragraph -->
<p>1</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
- <p>2</p>
+ <p></p>
<!-- /wp:paragraph -->"
326 | await page.keyboard.type( '2' );
327 |
> 328 | expect( await getEditedPostContent() ).toMatchSnapshot();
| ^
329 | } );
330 | } );
331 |
at Object.toMatchSnapshot (specs/writing-flow.test.js:328:42)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/writing-flow.test.js:9:103)
at _next (specs/writing-flow.test.js:11:194)
FAIL specs/splitting-merging.test.js (18.514s)
● splitting and merging blocks › should split and merge paragraph blocks using Enter and Backspace
expect(value).toMatchSnapshot()
Received value does not match stored snapshot "splitting and merging blocks should split and merge paragraph blocks using Enter and Backspace 3".
- Snapshot
+ Received
"<!-- wp:paragraph -->
- <p><strong>First</strong></p>
+ <p>First<strong>Secon</strong></p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
- <p>BeforeSecond:Second</p>
+ <p>BeforeSecond:d</p>
<!-- /wp:paragraph -->"
51 | await page.keyboard.type( 'BeforeSecond:' );
52 |
> 53 | expect( await getEditedPostContent() ).toMatchSnapshot();
| ^
54 | } );
55 |
56 | it( 'should merge into inline boundary position', async () => {
at Object.toMatchSnapshot (specs/splitting-merging.test.js:53:42)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/splitting-merging.test.js:9:103)
at _next (specs/splitting-merging.test.js:11:194)
FAIL specs/datepicker.test.js
● Datepicker › should show the publishing date if the date is in the past
No node found for selector: .components-datetime__time-field-year
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.click (../../node_modules/puppeteer/lib/FrameManager.js:590:5)
FAIL specs/keyboard-navigable-blocks.test.js (6.582s)
● Order of block keyboard navigation › permits tabbing through paragraph blocks in the expected order
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
FAIL specs/popovers.test.js
● popovers › dropdown › toggles via click
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
FAIL specs/manage-reusable-blocks.test.js (101.849s)
● Managing reusable blocks › Should import reusable blocks
Timeout - Async callback was not invoked within the 100000ms timeout specified by jest.setTimeout.
24 | } );
25 |
> 26 | it( 'Should import reusable blocks', async () => {
| ^
27 | const originalEntries = await getNumberOfEntries();
28 |
29 | // Import Reusable block
at Spec (../../node_modules/jest-jasmine2/build/jasmine/Spec.js:92:20)
at Suite.it (specs/manage-reusable-blocks.test.js:26:2)
FAIL specs/navigable-toolbar.test.js (7.526s)
● block toolbar › unified › navigates in and out of toolbar by keyboard (Alt+F10, Escape)
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
FAIL specs/invalid-block.test.js
● invalid blocks › Should show an invalid block message with clickable options
expect(jest.fn()).toHaveErrored(expected)
Expected mock function to be called.
30 | // Takes the focus away from the block so the invalid warning is triggered
31 | await page.click( '.editor-post-save-draft' );
> 32 | expect( console ).toHaveErrored();
| ^
33 | expect( console ).toHaveWarned();
34 |
35 | // Click on the 'resolve' button
at Object.toHaveErrored (specs/invalid-block.test.js:32:21)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/invalid-block.test.js:9:103)
at _next (specs/invalid-block.test.js:11:194)
● invalid blocks › Should show an invalid block message with clickable options
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["Block validation: Expected end of content, instead saw ", {"attributes": [], "selfClosing": false, "tagName": "p", "type": "StartTag"}, "."]],["XrayWrapper denied access to property \"save\" (reason: value is callable). See https://developer.mozilla.org/en-US/docs/Xray_vision for more information. Note that only the first denied property access from a given global object will be reported."],["Sending message that cannot be cloned. Are you trying to send an XPCOM object?"]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
FAIL specs/mentions.test.js
● autocomplete mentions › should insert mention
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
FAIL specs/sidebar.test.js (7.012s)
● Sidebar › should have the sidebar closed by default on mobile
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Error: Unexpected focus loss"]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Sidebar › should close the sidebar when resizing from desktop to mobile
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Error: Unexpected focus loss"]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Sidebar › should reopen sidebar the sidebar when resizing from mobile to desktop if the sidebar was closed automatically
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Error: Unexpected focus loss"]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Sidebar › should preserve tab order while changing active tab
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Error: Unexpected focus loss"]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Sidebar › should be possible to programmatically remove Document Settings panels
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Error: Unexpected focus loss"]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
FAIL specs/reusable-blocks.test.js (10.052s)
● Reusable Blocks › can be converted to a regular block
expect(received).not.toBeNull()
Received: null
164 | // Check that we have a paragraph block on the page
165 | const block = await page.$( '.block-editor-block-list__block[data-type="core/paragraph"]' );
> 166 | expect( block ).not.toBeNull();
| ^
167 |
168 | // Check that its content is up to date
169 | const text = await page.$eval(
at Object.toBeNull (specs/reusable-blocks.test.js:166:23)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/reusable-blocks.test.js:27:103)
at _next (specs/reusable-blocks.test.js:29:194)
FAIL specs/adding-blocks.test.js
● adding blocks › Should insert content using the placeholder and the regular inserter
expect(received).not.toBeNull()
Received: null
31 | // Click below editor to focus last field (block appender)
32 | await clickBelow( await page.$( '.block-editor-default-block-appender' ) );
> 33 | expect( await page.$( '[data-type="core/paragraph"]' ) ).not.toBeNull();
| ^
34 | await page.keyboard.type( 'Paragraph block' );
35 |
36 | // Using the slash command
at Object.toBeNull (specs/adding-blocks.test.js:33:64)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/adding-blocks.test.js:15:103)
at _next (specs/adding-blocks.test.js:17:194)
● adding blocks › should not allow transfer of focus outside of the block-insertion menu once open
expect(array).toContain(value) // indexOf
Expected value: "block-editor-inserter__search"
Received array: ["wp-block", "editor-block-list__block", "block-editor-block-list__block"]
114 | // Expect the inserter search input to be the active element.
115 | let activeElementClassList = await page.evaluate( () => document.activeElement.classList );
> 116 | expect( Object.values( activeElementClassList ) ).toContain( 'block-editor-inserter__search' );
| ^
117 |
118 | // Try using the up arrow key (vertical navigation triggers the issue described in #9583).
119 | await page.keyboard.press( 'ArrowUp' );
at Object.toContain (specs/adding-blocks.test.js:116:53)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/adding-blocks.test.js:15:103)
at _next (specs/adding-blocks.test.js:17:194)
FAIL specs/post-visibility.test.js
● Post visibility › can be changed when the viewport is large
expect(received).toBe(expected) // Object.is equality
Expected: "private"
Received: "auto-draft"
26 | } );
27 |
> 28 | expect( currentStatus ).toBe( 'private' );
| ^
29 | } );
30 | } );
31 | } );
at Object.toBe (specs/post-visibility.test.js:28:28)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/post-visibility.test.js:23:103)
at _next (specs/post-visibility.test.js:25:194)
● Post visibility › can be changed when the viewport is small
No node found for selector: .edit-post-post-visibility__toggle
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.click (../../node_modules/puppeteer/lib/FrameManager.js:590:5)
FAIL specs/multi-block-selection.test.js (15.356s)
● Multi-block selection › should only trigger multi-selection when at the end
expect(value).toMatchSnapshot()
Received value does not match stored snapshot "Multi-block selection should only trigger multi-selection when at the end 1".
- Snapshot
+ Received
"<!-- wp:paragraph -->
- <p>1.</p>
+ <p>14.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->"
164 | await page.keyboard.press( 'Backspace' );
165 |
> 166 | expect( await getEditedPostContent() ).toMatchSnapshot();
| ^
167 | } );
168 |
169 | it( 'should use selection direction to determine vertical edge', async () => {
at Object.toMatchSnapshot (specs/multi-block-selection.test.js:166:42)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/multi-block-selection.test.js:15:103)
at _next (specs/multi-block-selection.test.js:17:194)
FAIL specs/shortcut-help.test.js
● keyboard shortcut help modal › displays the shortcut help modal when opened using the menu item in the more menu
expect(received).toHaveLength(length)
Expected length: 1
Received length: 0
Received array: []
17 | await clickOnMoreMenuItem( 'Keyboard Shortcuts' );
18 | const shortcutHelpModalElements = await page.$$( '.edit-post-keyboard-shortcut-help' );
> 19 | expect( shortcutHelpModalElements ).toHaveLength( 1 );
| ^
20 | } );
21 |
22 | it( 'closes the shortcut help modal when the close icon is clicked', async () => {
at Object.toHaveLength (specs/shortcut-help.test.js:19:39)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/shortcut-help.test.js:9:103)
at _next (specs/shortcut-help.test.js:11:194)
FAIL specs/new-post-default-content.test.js
● new editor filtered state › should respect default content
Evaluation failed: wp.data is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● new editor filtered state › should respect default content
Error: failed to find element matching selector ".editor-post-title__input"
at ElementHandle.$eval (../../node_modules/puppeteer/lib/ElementHandle.js:307:13)
FAIL specs/sidebar-permalink-panel.test.js (12.548s)
● Sidebar Permalink Panel › should not render permalink sidebar panel while the post is new
Evaluation failed: wp.data is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
FAIL specs/publish-button.test.js (7.234s)
● PostPublishButton › should be disabled when post is not saveable
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● PostPublishButton › should be disabled when post is not saveable
Evaluation failed: element is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● PostPublishButton › should be disabled when post is being saved
Evaluation failed: element is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● PostPublishButton › should be disabled when post is being saved
expect(received).not.toBeNull()
Received: null
35 |
36 | await page.click( '.editor-post-save-draft' );
> 37 | expect( await page.$( '.editor-post-publish-button[aria-disabled="true"]' ) ).not.toBeNull();
| ^
38 | } );
39 |
40 | it( 'should be disabled when metabox is being saved', async () => {
at Object.toBeNull (specs/publish-button.test.js:37:85)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/publish-button.test.js:9:103)
at _next (specs/publish-button.test.js:11:194)
● PostPublishButton › should be disabled when post is being saved
TypeError: Cannot read property 'click' of undefined
at _callee$ (../e2e-test-utils/build/@wordpress/e2e-test-utils/src/click-on-more-menu-item.js:11:8)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
● PostPublishButton › should be disabled when metabox is being saved
Evaluation failed: element is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● PostPublishButton › should be disabled when metabox is being saved
expect(received).not.toBeNull()
Received: null
43 |
44 | await page.evaluate( () => window.wp.data.dispatch( 'core/edit-post' ).requestMetaBoxUpdates() );
> 45 | expect( await page.$( '.editor-post-publish-button[aria-disabled="true"]' ) ).not.toBeNull();
| ^
46 | } );
47 | } );
48 |
at Object.toBeNull (specs/publish-button.test.js:45:85)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/publish-button.test.js:9:103)
at _next (specs/publish-button.test.js:11:194)
● PostPublishButton › should be disabled when metabox is being saved
TypeError: Cannot read property 'click' of undefined
at _callee$ (../e2e-test-utils/build/@wordpress/e2e-test-utils/src/click-on-more-menu-item.js:11:8)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
FAIL specs/embedding.test.js (114.748s)
● Embedding content › should render embeds in the correct state
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Embedding content › should render embeds in the correct state
waiting for selector "figure.wp-block-embed-wordpress" failed: timeout 30000ms exceeded
162 | await page.waitForSelector( 'figure.wp-block-embed-twitter' );
163 | await page.waitForSelector( 'figure.wp-block-embed-cloudup' );
> 164 | await page.waitForSelector( 'figure.wp-block-embed-wordpress' );
| ^
165 | // Video embed should also have the aspect ratio class.
166 | await page.waitForSelector( 'figure.wp-block-embed-youtube.wp-embed-aspect-16-9' );
167 |
at new WaitTask (../../node_modules/puppeteer/lib/FrameManager.js:840:28)
at Frame._waitForSelectorOrXPath (../../node_modules/puppeteer/lib/FrameManager.js:731:12)
at Frame.waitForSelector (../../node_modules/puppeteer/lib/FrameManager.js:690:17)
at Page.waitForSelector (../../node_modules/puppeteer/lib/Page.js:1008:29)
at Object.waitForSelector (specs/embedding.test.js:164:14)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/embedding.test.js:9:103)
at _next (specs/embedding.test.js:11:194)
● Embedding content › should render embeds in the correct state
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["TypeError: window.parent is null"],["TypeError: window.parent is null"],["TypeError: window.parent is null"]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Embedding content › should allow the user to convert unembeddable URLs to a paragraph with a link in it
expect(value).toMatchSnapshot()
Received value does not match stored snapshot "Embedding content should allow the user to convert unembeddable URLs to a paragraph with a link in it 1".
- Snapshot
+ Received
- "<!-- wp:paragraph -->
- <p><a href="https://twitter.com/wooyaygutenberg123454312">https://twitter.com/wooyaygutenberg123454312</a></p>
- <!-- /wp:paragraph -->"
+ "<!-- wp:embed {"url":"https://twitter.com/wooyaygutenberg123454312"} -->
+ <figure class="wp-block-embed"><div class="wp-block-embed__wrapper">
+ https://twitter.com/wooyaygutenberg123454312
+ </div></figure>
+ <!-- /wp:embed -->"
181 |
182 | await clickButton( 'Convert to link' );
> 183 | expect( await getEditedPostContent() ).toMatchSnapshot();
| ^
184 | } );
185 |
186 | it( 'should retry embeds that could not be embedded with trailing slashes, without the trailing slashes', async () => {
at Object.toMatchSnapshot (specs/embedding.test.js:183:42)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/embedding.test.js:9:103)
at _next (specs/embedding.test.js:11:194)
● Embedding content › should retry embeds that could not be embedded with trailing slashes, without the trailing slashes
waiting for selector "figure.wp-block-embed-twitter" failed: timeout 30000ms exceeded
192 | await page.keyboard.press( 'Enter' );
193 | // The twitter block should appear correctly.
> 194 | await page.waitForSelector( 'figure.wp-block-embed-twitter' );
| ^
195 | } );
196 |
197 | it( 'should allow the user to try embedding a failed URL again', async () => {
at new WaitTask (../../node_modules/puppeteer/lib/FrameManager.js:840:28)
at Frame._waitForSelectorOrXPath (../../node_modules/puppeteer/lib/FrameManager.js:731:12)
at Frame.waitForSelector (../../node_modules/puppeteer/lib/FrameManager.js:690:17)
at Page.waitForSelector (../../node_modules/puppeteer/lib/Page.js:1008:29)
at Object.waitForSelector (specs/embedding.test.js:194:14)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/embedding.test.js:9:103)
at _next (specs/embedding.test.js:11:194)
● Embedding content › should allow the user to try embedding a failed URL again
waiting for selector "figure.wp-block-embed-twitter" failed: timeout 30000ms exceeded
212 | );
213 | await clickButton( 'Try again' );
> 214 | await page.waitForSelector( 'figure.wp-block-embed-twitter' );
| ^
215 | } );
216 |
217 | it( 'should switch to the WordPress block correctly', async () => {
at new WaitTask (../../node_modules/puppeteer/lib/FrameManager.js:840:28)
at Frame._waitForSelectorOrXPath (../../node_modules/puppeteer/lib/FrameManager.js:731:12)
at Frame.waitForSelector (../../node_modules/puppeteer/lib/FrameManager.js:690:17)
at Page.waitForSelector (../../node_modules/puppeteer/lib/Page.js:1008:29)
at Object.waitForSelector (specs/embedding.test.js:214:14)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/embedding.test.js:9:103)
at _next (specs/embedding.test.js:11:194)
FAIL specs/publishing.test.js (12.491s)
● Publishing › a post › should publish the post and close the panel once we start editing again.
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Publishing › a post with pre-publish checks disabled › should publish the post without opening the post-publish sidebar.
Evaluation failed: element is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● Publishing › a post with pre-publish checks disabled › should publish the post without opening the post-publish sidebar.
expect(received).toBeNull()
Received: {"_client": {"_callbacks": [Map], "_connection": [Connection], "_events": [Object], "_eventsCount": 27, "_lastId": 259, "_maxListeners": undefined, "_sessionId": 46, "_sessions": [Map], "_targetType": "page"}, "_context": {"_client": [CDPSession], "_contextId": 105226698761, "_frame": [Frame], "_objectHandleFactory": [Function bound createJSHandle]}, "_disposed": false, "_frameManager": {"_client": [CDPSession], "_contextIdToContext": [Map], "_events": [Object], "_eventsCount": 3, "_frames": [Map], "_mainFrame": [Frame], "_maxListeners": undefined, "_page": [Page]}, "_page": {"_client": [CDPSession], "_closed": false, "_coverage": [Coverage], "_defaultNavigationTimeout": 30000, "_emulationManager": [EmulationManager], "_events": [Object], "_eventsCount": 4, "_frameManager": [FrameManager], "_ignoreHTTPSErrors": false, "_keyboard": [Keyboard], "_maxListeners": undefined, "_mouse": [Mouse], "_networkManager": [NetworkManager], "_pageBindings": [Map], "_screenshotTaskQueue": [TaskQueue], "_target": [Target], "_touchscreen": [Touchscreen], "_tracing": [Tracing], "_viewport": [Object], "_workers": [Map]}, "_remoteObject": {"objectId": "b8d006f3-73b4-6142-99d0-c3b36b7cfdc7", "subtype": "node", "type": "object"}}
68 |
69 | // The "Publish" button should be shown instead of the "Publish..." toggle
> 70 | expect( await page.$( '.editor-post-publish-panel__toggle' ) ).toBeNull();
| ^
71 | expect( await page.$( '.editor-post-publish-button' ) ).not.toBeNull();
72 |
73 | await publishPostWithPrePublishChecksDisabled();
at Object.toBeNull (specs/publishing.test.js:70:68)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/publishing.test.js:11:103)
at _next (specs/publishing.test.js:13:194)
● Publishing › a post with pre-publish checks disabled › should publish the post without opening the post-publish sidebar.
TypeError: Cannot read property 'click' of undefined
at _callee$ (../e2e-test-utils/build/@wordpress/e2e-test-utils/src/click-on-more-menu-item.js:11:8)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
● Publishing › a page with pre-publish checks disabled › should publish the page without opening the post-publish sidebar.
Evaluation failed: element is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● Publishing › a page with pre-publish checks disabled › should publish the page without opening the post-publish sidebar.
expect(received).toBeNull()
Received: {"_client": {"_callbacks": [Map], "_connection": [Connection], "_events": [Object], "_eventsCount": 27, "_lastId": 334, "_maxListeners": undefined, "_sessionId": 46, "_sessions": [Map], "_targetType": "page"}, "_context": {"_client": [CDPSession], "_contextId": 105226698762, "_frame": [Frame], "_objectHandleFactory": [Function bound createJSHandle]}, "_disposed": false, "_frameManager": {"_client": [CDPSession], "_contextIdToContext": [Map], "_events": [Object], "_eventsCount": 3, "_frames": [Map], "_mainFrame": [Frame], "_maxListeners": undefined, "_page": [Page]}, "_page": {"_client": [CDPSession], "_closed": false, "_coverage": [Coverage], "_defaultNavigationTimeout": 30000, "_emulationManager": [EmulationManager], "_events": [Object], "_eventsCount": 4, "_frameManager": [FrameManager], "_ignoreHTTPSErrors": false, "_keyboard": [Keyboard], "_maxListeners": undefined, "_mouse": [Mouse], "_networkManager": [NetworkManager], "_pageBindings": [Map], "_screenshotTaskQueue": [TaskQueue], "_target": [Target], "_touchscreen": [Touchscreen], "_tracing": [Tracing], "_viewport": [Object], "_workers": [Map]}, "_remoteObject": {"objectId": "eefccc67-6a91-d441-a37f-201d57d66b84", "subtype": "node", "type": "object"}}
68 |
69 | // The "Publish" button should be shown instead of the "Publish..." toggle
> 70 | expect( await page.$( '.editor-post-publish-panel__toggle' ) ).toBeNull();
| ^
71 | expect( await page.$( '.editor-post-publish-button' ) ).not.toBeNull();
72 |
73 | await publishPostWithPrePublishChecksDisabled();
at Object.toBeNull (specs/publishing.test.js:70:68)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/publishing.test.js:11:103)
at _next (specs/publishing.test.js:13:194)
● Publishing › a page with pre-publish checks disabled › should publish the page without opening the post-publish sidebar.
TypeError: Cannot read property 'click' of undefined
at _callee$ (../e2e-test-utils/build/@wordpress/e2e-test-utils/src/click-on-more-menu-item.js:11:8)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
● Publishing › a post in small viewports › should ignore the pre-publish checks and show the Publish... toggle instead of the Publish button
Evaluation failed: element is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● Publishing › a post in small viewports › should ignore the pre-publish checks and show the Publish... toggle instead of the Publish button
TypeError: Cannot read property 'click' of undefined
at _callee$ (../e2e-test-utils/build/@wordpress/e2e-test-utils/src/click-on-more-menu-item.js:11:8)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
● Publishing › a page in small viewports › should ignore the pre-publish checks and show the Publish... toggle instead of the Publish button
TypeError: Cannot read property 'click' of undefined
at _callee$ (../e2e-test-utils/build/@wordpress/e2e-test-utils/src/click-on-more-menu-item.js:11:8)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
● Publishing › a page in small viewports › should ignore the pre-publish checks and show the Publish... toggle instead of the Publish button
Element .edit-post-more-menu [aria-label="Show more tools & options"] not found
waiting for function failed: timeout 500ms exceeded
FAIL specs/new-post.test.js (10.364s)
● new editor state › should show the New Post page in Gutenberg
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● new editor state › should show the New Post page in Gutenberg
Evaluation failed: wp.data is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● new editor state › should show the New Post page in Gutenberg
expect(received).toEqual(expected)
Expected: StringContaining "post-new.php"
Received: "http://localhost:8889/wp-admin/plugins.php?plugin_status=all&paged=1&s"
22 |
23 | it( 'should show the New Post page in Gutenberg', async () => {
> 24 | expect( page.url() ).toEqual( expect.stringContaining( 'post-new.php' ) );
| ^
25 | // Should display the blank title.
26 | const title = await page.$( '[placeholder="Add title"]' );
27 | expect( title ).not.toBeNull();
at Object.toEqual (specs/new-post.test.js:24:24)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/new-post.test.js:15:103)
at _next (specs/new-post.test.js:17:194)
at specs/new-post.test.js:17:364
at Object.<anonymous> (specs/new-post.test.js:17:97)
FAIL specs/change-detection.test.js (76.07s)
● Change detection › Should not save on new unsaved post
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Change detection › Should prompt to confirm unsaved changes for autosaved draft for non-content fields
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
37 |
38 | // Ensure whether it was expected that dialog was encountered.
> 39 | expect( hadDialog ).toBe( isDirty );
| ^
40 | } catch ( error ) {
41 | throw error;
42 | } finally {
at toBe (specs/change-detection.test.js:39:24)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/change-detection.test.js:19:103)
at _next (specs/change-detection.test.js:21:194)
● Change detection › Should prompt to confirm unsaved changes for autosaved published post
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
37 |
38 | // Ensure whether it was expected that dialog was encountered.
> 39 | expect( hadDialog ).toBe( isDirty );
| ^
40 | } catch ( error ) {
41 | throw error;
42 | } finally {
at toBe (specs/change-detection.test.js:39:24)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/change-detection.test.js:19:103)
at _next (specs/change-detection.test.js:21:194)
● Change detection › Should prompt if property changed without save
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
37 |
38 | // Ensure whether it was expected that dialog was encountered.
> 39 | expect( hadDialog ).toBe( isDirty );
| ^
40 | } catch ( error ) {
41 | throw error;
42 | } finally {
at toBe (specs/change-detection.test.js:39:24)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/change-detection.test.js:19:103)
at _next (specs/change-detection.test.js:21:194)
● Change detection › Should prompt if content added without save
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
37 |
38 | // Ensure whether it was expected that dialog was encountered.
> 39 | expect( hadDialog ).toBe( isDirty );
| ^
40 | } catch ( error ) {
41 | throw error;
42 | } finally {
at toBe (specs/change-detection.test.js:39:24)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/change-detection.test.js:19:103)
at _next (specs/change-detection.test.js:21:194)
● Change detection › Should prompt if save failed
waiting for XPath "//*[contains(@class, "components-notice") and contains(@class, "is-error")]/*[text()="Updating failed"]" failed: timeout 30000ms exceeded
199 |
200 | // Ensure save update fails and presents button.
> 201 | page.waitForXPath(
| ^
202 | '//*[contains(@class, "components-notice") and contains(@class, "is-error")]/*[text()="Updating failed"]'
203 | ),
204 | page.waitForSelector( '.editor-post-save-draft' ),
at new WaitTask (../../node_modules/puppeteer/lib/FrameManager.js:840:28)
at Frame._waitForSelectorOrXPath (../../node_modules/puppeteer/lib/FrameManager.js:731:12)
at Frame.waitForXPath (../../node_modules/puppeteer/lib/FrameManager.js:699:17)
at Page.waitForXPath (../../node_modules/puppeteer/lib/Page.js:1017:29)
at Object.waitForXPath (specs/change-detection.test.js:201:9)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/change-detection.test.js:19:103)
at _next (specs/change-detection.test.js:21:194)
● Change detection › Should prompt if changes and save is in-flight
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
37 |
38 | // Ensure whether it was expected that dialog was encountered.
> 39 | expect( hadDialog ).toBe( isDirty );
| ^
40 | } catch ( error ) {
41 | throw error;
42 | } finally {
at toBe (specs/change-detection.test.js:39:24)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/change-detection.test.js:19:103)
at _next (specs/change-detection.test.js:21:194)
● Change detection › Should prompt if changes made while save is in-flight
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
37 |
38 | // Ensure whether it was expected that dialog was encountered.
> 39 | expect( hadDialog ).toBe( isDirty );
| ^
40 | } catch ( error ) {
41 | throw error;
42 | } finally {
at toBe (specs/change-detection.test.js:39:24)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/change-detection.test.js:19:103)
at _next (specs/change-detection.test.js:21:194)
● Change detection › Should prompt if property changes made while save is in-flight, and save completes
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
37 |
38 | // Ensure whether it was expected that dialog was encountered.
> 39 | expect( hadDialog ).toBe( isDirty );
| ^
40 | } catch ( error ) {
41 | throw error;
42 | } finally {
at toBe (specs/change-detection.test.js:39:24)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/change-detection.test.js:19:103)
at _next (specs/change-detection.test.js:21:194)
● Change detection › Should prompt if block revision is made while save is in-flight, and save completes
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
37 |
38 | // Ensure whether it was expected that dialog was encountered.
> 39 | expect( hadDialog ).toBe( isDirty );
| ^
40 | } catch ( error ) {
41 | throw error;
42 | } finally {
at toBe (specs/change-detection.test.js:39:24)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/change-detection.test.js:19:103)
at _next (specs/change-detection.test.js:21:194)
FAIL specs/plugins/meta-attribute-block.test.js (6.493s)
● Block with a meta attribute › Should persist the meta attribute properly
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Block with a meta attribute › Should persist the meta attribute properly
Evaluation failed: wp.data.dispatch(...) is null
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● Block with a meta attribute › Should persist the meta attribute properly
No node found for selector: .edit-post-header [aria-label="Add block"]
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.click (../../node_modules/puppeteer/lib/FrameManager.js:590:5)
FAIL specs/plugins/format-api.test.js
● Using Format API › Clicking the control wraps the selected text properly with HTML code
Evaluation failed: wp.data is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● Using Format API › Clicking the control wraps the selected text properly with HTML code
No node found for selector: .block-editor-default-block-appender__content
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.click (../../node_modules/puppeteer/lib/FrameManager.js:590:5)
FAIL specs/plugins/allowed-blocks.test.js
● Allowed Blocks Filter › should restrict the allowed blocks in the inserter
Evaluation failed: wp.data is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● Allowed Blocks Filter › should restrict the allowed blocks in the inserter
No node found for selector: .edit-post-header [aria-label="Add block"]
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.click (../../node_modules/puppeteer/lib/FrameManager.js:590:5)
FAIL specs/plugins/wp-editor-meta-box.test.js
● WP Editor Meta Boxes › Should save the changes
Evaluation failed: wp.data is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● WP Editor Meta Boxes › Should save the changes
No node found for selector: .editor-post-title__input
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.type (../../node_modules/puppeteer/lib/FrameManager.js:657:5)
FAIL specs/plugins/container-blocks.test.js (108.783s)
● InnerBlocks Template Sync › Ensures blocks without locking are kept intact even if they do not match the template
Timeout - Async callback was not invoked within the 100000ms timeout specified by jest.setTimeout.
43 | };
44 |
> 45 | it( 'Ensures blocks without locking are kept intact even if they do not match the template ', async () => {
| ^
46 | await insertBlockAndAddParagraphInside( 'Test Inner Blocks no locking', 'test/test-inner-blocks-no-locking' );
47 | expect( await getEditedPostContent() ).toMatchSnapshot();
48 | } );
at Spec (../../node_modules/jest-jasmine2/build/jasmine/Spec.js:92:20)
at Suite.it (specs/plugins/container-blocks.test.js:45:2)
● InnerBlocks Template Sync › Ensures blocks without locking are kept intact even if they do not match the template
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["TypeError: target.location is null"]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Container block without paragraph support › ensures we can use the alternative block appender properly
No node found for selector: .edit-post-header [aria-label="Add block"]
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.click (../../node_modules/puppeteer/lib/FrameManager.js:590:5)
FAIL specs/plugins/inner-blocks-allowed-blocks.test.js
● Allowed Blocks Setting on InnerBlocks › allows all blocks if the allowed blocks setting was not set
No node found for selector: .edit-post-header [aria-label="Add block"]
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.click (../../node_modules/puppeteer/lib/FrameManager.js:590:5)
● Allowed Blocks Setting on InnerBlocks › allows the blocks if the allowed blocks setting was set
Evaluation failed: wp.data is undefined
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● Allowed Blocks Setting on InnerBlocks › allows the blocks if the allowed blocks setting was set
No node found for selector: .edit-post-header [aria-label="Add block"]
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.click (../../node_modules/puppeteer/lib/FrameManager.js:590:5)
● Allowed Blocks Setting on InnerBlocks › allows the blocks if the allowed blocks setting was set
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["TypeError: target.location is null"]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
FAIL specs/plugins/block-icons.test.js (122.817s)
● Correctly Renders Block Icons on Inserter and Inspector › Block with svg icon › Renders correctly the icon in the inserter
Timeout - Async callback was not invoked within the 100000ms timeout specified by jest.setTimeout.
68 |
69 | function testIconsOfBlock( blockName, blockTitle, validateIcon ) {
> 70 | it( 'Renders correctly the icon in the inserter', async () => {
| ^
71 | await searchForBlock( blockTitle );
72 | validateIcon( await getFirstInserterIcon() );
73 | } );
at Spec (../../node_modules/jest-jasmine2/build/jasmine/Spec.js:92:20)
at it (specs/plugins/block-icons.test.js:70:3)
at Suite.testIconsOfBlock (specs/plugins/block-icons.test.js:92:3)
FAIL specs/plugins/meta-boxes.test.js (14.849s)
● Meta boxes › Should save the post
No node found for selector: .editor-post-title__input
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.type (../../node_modules/puppeteer/lib/FrameManager.js:657:5)
● Meta boxes › Should render dynamic blocks when the meta box uses the excerpt for front end rendering
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["TypeError: NetworkError when attempting to fetch resource."],["TypeError: NetworkError when attempting to fetch resource."]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Meta boxes › Should render the excerpt in meta based on post content if no explicit excerpt exists
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["TypeError: NetworkError when attempting to fetch resource."]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Meta boxes › Should render the explicitly set excerpt in meta instead of the content based one
expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["TypeError: NetworkError when attempting to fetch resource."]
at Object.expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
FAIL specs/plugins/align-hook.test.js (26.303s)
● Align Hook Works As Expected › Block with no alignment set › Shows no alignment buttons on the alignment toolbar
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
FAIL specs/plugins/deprecated-node-matcher.test.js (5.609s)
● Deprecated Node Matcher › should insert block with node source
Evaluation failed: wp.data.dispatch(...) is null
at ExecutionContext.evaluateHandle (../../node_modules/puppeteer/lib/ExecutionContext.js:97:13)
● Deprecated Node Matcher › should insert block with node source
No node found for selector: .edit-post-header [aria-label="Add block"]
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.click (../../node_modules/puppeteer/lib/FrameManager.js:590:5)
FAIL specs/plugins/plugins-api.test.js (11.689s)
● Using Plugins API › Post Status Info › Should render post status info inside Document Setting sidebar
Error: failed to find element matching selector ".edit-post-post-status .my-post-status-info-plugin"
at ElementHandle.$eval (../../node_modules/puppeteer/lib/ElementHandle.js:307:13)
● Using Plugins API › Sidebar › Should open plugins sidebar using More Menu item and render content
TypeError: Cannot read property 'click' of undefined
at _callee$ (../e2e-test-utils/build/@wordpress/e2e-test-utils/src/click-on-more-menu-item.js:11:8)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (../../node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
● Using Plugins API › Sidebar › Should close plugins sidebar using More Menu item
expect(received).toBeNull()
Received: {"_client": {"_callbacks": [Map], "_connection": [Connection], "_events": [Object], "_eventsCount": 27, "_lastId": 226, "_maxListeners": undefined, "_sessionId": 60, "_sessions": [Map], "_targetType": "page"}, "_context": {"_client": [CDPSession], "_contextId": 135291469835, "_frame": [Frame], "_objectHandleFactory": [Function bound createJSHandle]}, "_disposed": false, "_frameManager": {"_client": [CDPSession], "_contextIdToContext": [Map], "_events": [Object], "_eventsCount": 3, "_frames": [Map], "_mainFrame": [Frame], "_maxListeners": undefined, "_page": [Page]}, "_page": {"_client": [CDPSession], "_closed": false, "_coverage": [Coverage], "_defaultNavigationTimeout": 30000, "_emulationManager": [EmulationManager], "_events": [Object], "_eventsCount": 4, "_frameManager": [FrameManager], "_ignoreHTTPSErrors": false, "_keyboard": [Keyboard], "_maxListeners": undefined, "_mouse": [Mouse], "_networkManager": [NetworkManager], "_pageBindings": [Map], "_screenshotTaskQueue": [TaskQueue], "_target": [Target], "_touchscreen": [Touchscreen], "_tracing": [Tracing], "_viewport": [Object], "_workers": [Map]}, "_remoteObject": {"objectId": "f40cc868-903f-3642-9181-5489e19f5707", "subtype": "node", "type": "object"}}
74 |
75 | const pluginSidebarClosed = await page.$( '.edit-post-sidebar' );
> 76 | expect( pluginSidebarClosed ).toBeNull();
| ^
77 | } );
78 | } );
79 | } );
at Object.toBeNull (specs/plugins/plugins-api.test.js:76:34)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/plugins/plugins-api.test.js:9:103)
at _next (specs/plugins/plugins-api.test.js:11:194)
FAIL specs/plugins/templates.test.js (22.871s)
● templates › Using a CPT with a predefined template › Should add a custom post types with a predefined template
expect(value).toMatchSnapshot()
Received value does not match stored snapshot "templates Using a CPT with a predefined template Should add a custom post types with a predefined template 1".
- Snapshot
+ Received
- "<!-- wp:image -->
- <figure class="wp-block-image"><img alt=""/></figure>
- <!-- /wp:image -->
-
- <!-- wp:paragraph {"placeholder":"Add a book description"} -->
- <p></p>
- <!-- /wp:paragraph -->
-
- <!-- wp:quote -->
- <blockquote class="wp-block-quote"><p></p></blockquote>
- <!-- /wp:quote -->
-
- <!-- wp:columns -->
- <div class="wp-block-columns has-2-columns"><!-- wp:column -->
- <div class="wp-block-column"><!-- wp:image -->
- <figure class="wp-block-image"><img alt=""/></figure>
- <!-- /wp:image --></div>
- <!-- /wp:column -->
-
- <!-- wp:column -->
- <div class="wp-block-column"><!-- wp:paragraph {"placeholder":"Add a inner paragraph"} -->
- <p></p>
- <!-- /wp:paragraph --></div>
- <!-- /wp:column --></div>
- <!-- /wp:columns -->"
+ ""
30 |
31 | it( 'Should add a custom post types with a predefined template', async () => {
> 32 | expect( await getEditedPostContent() ).toMatchSnapshot();
| ^
33 | } );
34 |
35 | it( 'Should respect user edits to not re-apply template after save (single block removal)', async () => {
at Object.toMatchSnapshot (specs/plugins/templates.test.js:32:43)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/plugins/templates.test.js:15:103)
at _next (specs/plugins/templates.test.js:17:194)
● templates › With default post format assigned › should populate new post with default block for format
expect(value).toMatchSnapshot()
Received value does not match stored snapshot "templates With default post format assigned should populate new post with default block for format 1".
- Snapshot
+ Received
- "<!-- wp:image -->
- <figure class="wp-block-image"><img alt=""/></figure>
- <!-- /wp:image -->"
+ ""
86 | await createNewPost();
87 |
> 88 | expect( await getEditedPostContent() ).toMatchSnapshot();
| ^
89 | } );
90 |
91 | it( 'should not populate edited post with default block for format', async () => {
at Object.toMatchSnapshot (specs/plugins/templates.test.js:88:43)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/plugins/templates.test.js:15:103)
at _next (specs/plugins/templates.test.js:17:194)
● templates › With default post format assigned › should not populate edited post with default block for format
Error: failed to find element matching selector "#default_post_format"
at ElementHandle.$eval (../../node_modules/puppeteer/lib/ElementHandle.js:307:13)
● templates › With default post format assigned › should not populate new page with default block for format
Error: failed to find element matching selector "#default_post_format"
at ElementHandle.$eval (../../node_modules/puppeteer/lib/ElementHandle.js:307:13)
FAIL specs/plugins/hooks-api.test.js (7.245s)
● Using Hooks API › Should contain a reset block button on the sidebar
expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
[["getRecipes: falling back to a synchronous message for:", "http://localhost:8889"]]
at expect (../jest-console/build/@wordpress/jest-console/src/index.js:34:4)
● Using Hooks API › Should contain a reset block button on the sidebar
No node found for selector: .block-editor-default-block-appender__content
at assert (../../node_modules/puppeteer/lib/helper.js:282:11)
at Frame.click (../../node_modules/puppeteer/lib/FrameManager.js:590:5)
FAIL specs/blocks/classic.test.js (36.503s)
● Classic › should insert media
waiting for selector "div[aria-label="Add Media"]" failed: timeout 30000ms exceeded
44 |
45 | // Click the image button.
> 46 | await page.waitForSelector( 'div[aria-label="Add Media"]' );
| ^
47 | await page.click( 'div[aria-label="Add Media"]' );
48 |
49 | // Wait for media modal to appear and upload image.
at new WaitTask (../../node_modules/puppeteer/lib/FrameManager.js:840:28)
at Frame._waitForSelectorOrXPath (../../node_modules/puppeteer/lib/FrameManager.js:731:12)
at Frame.waitForSelector (../../node_modules/puppeteer/lib/FrameManager.js:690:17)
at Page.waitForSelector (../../node_modules/puppeteer/lib/Page.js:1008:29)
at Object.waitForSelector (specs/blocks/classic.test.js:46:14)
at tryCatch (../../node_modules/regenerator-runtime/runtime.js:62:40)
at Generator.invoke [as _invoke] (../../node_modules/regenerator-runtime/runtime.js:288:22)
at Generator.prototype.(anonymous function) [as next] (../../node_modules/regenerator-runtime/runtime.js:114:21)
at asyncGeneratorStep (specs/blocks/classic.test.js:21:103)
at _next (specs/blocks/classic.test.js:23:194)
FAIL specs/blocks/media-text.test.js
● Test suite failed to run
TypeError: Cannot read property 'removeListener' of undefined
at PuppeteerEnvironment.teardown (../../node_modules/jest-environment-puppeteer/lib/PuppeteerEnvironment.js:126:22)
FAIL specs/blocks/quote.test.js
● Test suite failed to run
TypeError: Cannot read property 'removeListener' of undefined
at PuppeteerEnvironment.teardown (../../node_modules/jest-environment-puppeteer/lib/PuppeteerEnvironment.js:126:22)
FAIL specs/blocks/columns.test.js
● Test suite failed to run
TypeError: Cannot read property 'removeListener' of undefined
at PuppeteerEnvironment.teardown (../../node_modules/jest-environment-puppeteer/lib/PuppeteerEnvironment.js:126:22)
FAIL specs/blocks/html.test.js
● Test suite failed to run
TypeError: Cannot read property 'removeListener' of undefined
at PuppeteerEnvironment.teardown (../../node_modules/jest-environment-puppeteer/lib/PuppeteerEnvironment.js:126:22)
Snapshot Summary
› 8 snapshots failed from 6 test suites. Inspect your code changes or run `npm run test-e2e -- -u` to update them.
Test Suites: 46 failed, 24 passed, 70 total
Tests: 84 failed, 4 skipped, 272 passed, 360 total
Snapshots: 8 failed, 212 passed, 220 total
Time: 2398.939s
Ran all test suites.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gutenberg@5.4.0 test-e2e: `wp-scripts test-e2e --config packages/e2e-tests/jest.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gutenberg@5.4.0 test-e2e script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/jdescottes/.npm/_logs/2019-07-10T14_26_14_935Z-debug.log
jdescottes@kglazko-23706:~/Development/git/gutenberg$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment