From 5d178599b07417c2c2b52dd168a7880ac1e9ddfd Mon Sep 17 00:00:00 2001 From: Marcelo Serpa Date: Mon, 22 Jan 2024 18:39:26 -0600 Subject: [PATCH] (preferences)(hotfix)(17.5) Add expectation preferences that were not migrated to the `core` scope, but will still work due to the 17.5.1-specific hotfix 17.5.1-specific hotfix: https://github.com/WordPress/gutenberg/pull/58031. --- packages/edit-post/src/store/test/actions.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/edit-post/src/store/test/actions.js b/packages/edit-post/src/store/test/actions.js index f702d412d55dad..e8c9c7be151088 100644 --- a/packages/edit-post/src/store/test/actions.js +++ b/packages/edit-post/src/store/test/actions.js @@ -92,6 +92,10 @@ describe( 'actions', () => { expect( registry.select( editPostStore ).getEditorMode() ).toEqual( 'visual' ); + // Expecation added due to a 17.5.1-specific hotifx: https://github.com/WordPress/gutenberg/pull/58031 + expect( console ).toHaveWarnedWith( + "wp.data.select( 'core/preferences' ).get( 'core/edit-post', 'editorMode' ) is deprecated since version 6.5. Please use wp.data.select( 'core/preferences' ).get( 'core', 'editorMode' ) instead." + ); } ); it( 'to text', () => {