From 63728d39b4d6197e21e4347fba1f998c2cc956ae Mon Sep 17 00:00:00 2001 From: David Szabo Date: Thu, 11 Feb 2021 15:56:52 +0100 Subject: [PATCH] Remove warning --- .../e2e-tests/specs/experiments/settings-sidebar.test.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/e2e-tests/specs/experiments/settings-sidebar.test.js b/packages/e2e-tests/specs/experiments/settings-sidebar.test.js index 457fb0ae859213..7d82b95f48caef 100644 --- a/packages/e2e-tests/specs/experiments/settings-sidebar.test.js +++ b/packages/e2e-tests/specs/experiments/settings-sidebar.test.js @@ -92,10 +92,7 @@ describe( 'Settings sidebar', () => { await selectBlockByClientId( allBlocks[ 0 ].clientId ); await toggleSidebar(); - // TODO: Remove when toolbar supports text fields - expect( console ).toHaveWarnedWith( - 'Using custom components as toolbar controls is deprecated. Please use ToolbarItem or ToolbarButton components instead. See: https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols' - ); + expect( await getActiveTabLabel() ).toEqual( 'Block (selected)' ); } ); } );