[Automated Testing] Do not load remote patterns in tests #33126
Labels
[Status] In Progress
Tracking issues with work in progress
[Type] Automated Testing
Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
Description
Recently a regression in GB was introduced that made a deprecated block from core remote patterns (loaded from the pattern directory) create errors that were logged and therefore made tests fail as they take into account the
console
output.While the regression was fixed here: #33117, the problem still remains and we can't have GB CI rely on this external source.
Resolution
Make sure that remote patterns are not loaded during tests. If some tests require patterns should handle registration etc.. isolated there. An example could be the tests for
Query Loop
block which needs patterns for testing here: https://github.com/WordPress/gutenberg/blob/trunk/packages/e2e-tests/plugins/query-block.php#L14.The text was updated successfully, but these errors were encountered: