diff --git a/packages/block-editor/src/components/block-parent-selector/index.js b/packages/block-editor/src/components/block-parent-selector/index.js index e338a10f17069..ef6231269a2da 100644 --- a/packages/block-editor/src/components/block-parent-selector/index.js +++ b/packages/block-editor/src/components/block-parent-selector/index.js @@ -82,7 +82,7 @@ export default function BlockParentSelector() { onClick={ () => selectBlock( firstParentClientId ) } label={ sprintf( /* translators: %s: Name of the block's parent. */ - __( 'Select %s' ), + __( 'Select "%s"' ), blockInformation?.title ) } showTooltip diff --git a/test/e2e/specs/editor/blocks/list.spec.js b/test/e2e/specs/editor/blocks/list.spec.js index 505f077918a97..4a41ba3ed6283 100644 --- a/test/e2e/specs/editor/blocks/list.spec.js +++ b/test/e2e/specs/editor/blocks/list.spec.js @@ -309,7 +309,7 @@ test.describe( 'List', () => { await page.keyboard.type( 'one' ); await page.keyboard.press( 'Enter' ); await page.keyboard.type( 'two' ); - await editor.clickBlockToolbarButton( 'Select List' ); + await editor.clickBlockToolbarButton( 'Select "List"' ); await editor.transformBlockTo( 'core/paragraph' ); await expect.poll( editor.getEditedPostContent ).toBe( @@ -352,7 +352,7 @@ test.describe( 'List', () => { await page.keyboard.type( 'one' ); await page.keyboard.press( 'Enter' ); await page.keyboard.type( 'two' ); - await editor.clickBlockToolbarButton( 'Select List' ); + await editor.clickBlockToolbarButton( 'Select "List"' ); await editor.transformBlockTo( 'core/quote' ); await expect.poll( editor.getEditedPostContent ).toBe( @@ -564,7 +564,7 @@ test.describe( 'List', () => { test( 'should change the base list type', async ( { editor } ) => { await editor.insertBlock( { name: 'core/list' } ); - await editor.clickBlockToolbarButton( 'Select List' ); + await editor.clickBlockToolbarButton( 'Select "List"' ); await editor.clickBlockToolbarButton( 'Ordered' ); await expect.poll( editor.getEditedPostContent ).toBe( ` @@ -584,7 +584,7 @@ test.describe( 'List', () => { await page.keyboard.press( 'Enter' ); await editor.clickBlockToolbarButton( 'Indent' ); await page.keyboard.type( '1' ); - await editor.clickBlockToolbarButton( 'Select List' ); + await editor.clickBlockToolbarButton( 'Select "List"' ); await editor.clickBlockToolbarButton( 'Ordered' ); await expect.poll( editor.getEditedPostContent ).toBe( @@ -1108,7 +1108,7 @@ test.describe( 'List', () => { await page.keyboard.type( '2' ); await page.keyboard.press( 'Enter' ); await page.keyboard.type( '3' ); - await editor.clickBlockToolbarButton( 'Select List' ); + await editor.clickBlockToolbarButton( 'Select "List"' ); await editor.clickBlockToolbarButton( 'Ordered' ); await expect.poll( editor.getEditedPostContent ).toBe( @@ -1138,7 +1138,7 @@ test.describe( 'List', () => { await page.keyboard.type( 'b' ); await page.keyboard.press( 'Enter' ); await page.keyboard.type( 'c' ); - await editor.clickBlockToolbarButton( 'Select List' ); + await editor.clickBlockToolbarButton( 'Select "List"' ); await editor.clickBlockToolbarButton( 'Unordered' ); await expect.poll( editor.getEditedPostContent ).toBe( diff --git a/test/e2e/specs/editor/various/toolbar-roving-tabindex.spec.js b/test/e2e/specs/editor/various/toolbar-roving-tabindex.spec.js index 43de49fef1481..2692b09e78f96 100644 --- a/test/e2e/specs/editor/various/toolbar-roving-tabindex.spec.js +++ b/test/e2e/specs/editor/various/toolbar-roving-tabindex.spec.js @@ -209,7 +209,7 @@ class ToolbarRovingTabindexUtils { await this.page.keyboard.press( 'ArrowRight' ); await this.expectLabelToHaveFocus( currentBlockLabel ); await this.pageUtils.pressKeyWithModifier( 'shift', 'Tab' ); - await this.expectLabelToHaveFocus( 'Select Group' ); + await this.expectLabelToHaveFocus( 'Select "Group"' ); await this.page.keyboard.press( 'ArrowRight' ); await this.expectLabelToHaveFocus( currentBlockTitle ); }