diff --git a/packages/e2e-tests/specs/experiments/multi-entity-editing.test.js b/packages/e2e-tests/specs/experiments/multi-entity-editing.test.js index fb200ce93a6b3..3535ffcfc0b7e 100644 --- a/packages/e2e-tests/specs/experiments/multi-entity-editing.test.js +++ b/packages/e2e-tests/specs/experiments/multi-entity-editing.test.js @@ -8,6 +8,8 @@ import { trashAllPosts, activateTheme, canvas, + openDocumentSettingsSidebar, + pressKeyWithModifier, } from '@wordpress/e2e-test-utils'; /** @@ -37,7 +39,17 @@ const createTemplatePart = async ( ? '.wp-block-template-part .wp-block-template-part .block-editor-block-list__layout' : '.wp-block-template-part .block-editor-block-list__layout' ); - await page.focus( '.wp-block-template-part__name-panel input' ); + await openDocumentSettingsSidebar(); + + const nameInputSelector = + '.block-editor-block-inspector .components-text-control__input'; + const nameInput = await page.waitForSelector( nameInputSelector ); + await nameInput.click(); + + // Select all of the text in the title field. + await pressKeyWithModifier( 'primary', 'a' ); + + // Give the reusable block a title await page.keyboard.type( templatePartName ); }; diff --git a/packages/e2e-tests/specs/experiments/multi-entity-saving.test.js b/packages/e2e-tests/specs/experiments/multi-entity-saving.test.js index dc494849089ad..c0c035ccd0894 100644 --- a/packages/e2e-tests/specs/experiments/multi-entity-saving.test.js +++ b/packages/e2e-tests/specs/experiments/multi-entity-saving.test.js @@ -112,10 +112,6 @@ describe( 'Multi-entity save flow', () => { // Should trigger multi-entity save button once template part edited. await assertMultiSaveEnabled(); - // 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' - ); // Should only have save panel a11y button active after child entities edited. await assertExistance( publishA11ySelector, false ); diff --git a/packages/e2e-tests/specs/experiments/template-part.test.js b/packages/e2e-tests/specs/experiments/template-part.test.js index a6e628ffc067b..88ffee5efbc08 100644 --- a/packages/e2e-tests/specs/experiments/template-part.test.js +++ b/packages/e2e-tests/specs/experiments/template-part.test.js @@ -248,11 +248,6 @@ describe( 'Template Part', () => { testContentSelector ); expect( templatePartContent ).toBeTruthy(); - - // 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' - ); } ); } ); } );