Skip to content

Commit

Permalink
Merge pull request #8907 from google/infrastructure/8901-e2e-fail
Browse files Browse the repository at this point in the history
Ignore unrelated console error.
  • Loading branch information
eugene-manuilov committed Jun 24, 2024
2 parents 2da2d71 + 4722be0 commit bf9fec6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/e2e/config/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ function observeConsoleLogging() {
return;
}

// WordPress 6.6 logs when loading the block editor which causes console error.
if ( text.startsWith( 'Warning: You are importing createRoot from' ) ) {
return;
}

let logFunction = OBSERVED_CONSOLE_MESSAGE_TYPES[ type ];

// At this point, any unexpected message will result in a test failure.
Expand Down

0 comments on commit bf9fec6

Please sign in to comment.