diff --git a/tests/e2e/config/bootstrap.js b/tests/e2e/config/bootstrap.js index 83c9ada3f7..3a767b21b0 100644 --- a/tests/e2e/config/bootstrap.js +++ b/tests/e2e/config/bootstrap.js @@ -33,7 +33,6 @@ const pageEvents = []; // The Jest timeout is increased because these tests are a bit slow jest.setTimeout( PUPPETEER_TIMEOUT || 100000 ); - /** * Adds an event listener to the page to handle additions of page event * handlers, to assure that they are removed at test teardown. @@ -72,6 +71,12 @@ function observeConsoleLogging() { return; } + // An exception is made for jQuery migrate console warnings output by + // the unminified script loaded in development environments. + if ( text.includes( 'JQMIGRATE' ) ) { + return; + } + // Viewing posts on the front end can result in this error, which // has nothing to do with Gutenberg. if ( text.includes( 'net::ERR_UNKNOWN_URL_SCHEME' ) ) {