Skip to content

Commit

Permalink
Capitalize more occurrences of Navigation Menu. (#60747)
Browse files Browse the repository at this point in the history
Co-authored-by: afercia <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
  • Loading branch information
3 people authored Apr 23, 2024
1 parent 3d9bdee commit 73a17b0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function DeletedNavigationWarning( { onCreateNew } ) {
<Warning>
{ createInterpolateElement(
__(
'Navigation Menu has been deleted or is unavailable. <button>Create a new menu?</button>'
'Navigation Menu has been deleted or is unavailable. <button>Create a new Menu?</button>'
),
{
button: <Button onClick={ onCreateNew } variant="link" />,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ function NavigationMenuSelector( {
! hasResolvedNavigationMenus
}
>
{ __( 'Create new menu' ) }
{ __( 'Create new Menu' ) }
</MenuItem>
</MenuGroup>
) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ describe( 'NavigationMenuSelector', () => {
expect( toolsGroup ).toBeInTheDocument();

const createMenuButton = screen.getByRole( 'menuitem', {
name: 'Create new menu',
name: 'Create new Menu',
} );

expect( createMenuButton ).toBeInTheDocument();
Expand Down Expand Up @@ -236,7 +236,7 @@ describe( 'NavigationMenuSelector', () => {
await user.click( toggleButton );

const createMenuButton = screen.getByRole( 'menuitem', {
name: 'Create new menu',
name: 'Create new Menu',
} );

await user.click( createMenuButton );
Expand Down Expand Up @@ -268,7 +268,7 @@ describe( 'NavigationMenuSelector', () => {

await user.click(
screen.getByRole( 'menuitem', {
name: 'Create new menu',
name: 'Create new Menu',
} )
);

Expand All @@ -293,7 +293,7 @@ describe( 'NavigationMenuSelector', () => {
// Check the "Create menu" button is disabled.
expect(
screen.queryByRole( 'menuitem', {
name: 'Create new menu',
name: 'Create new Menu',
} )
).toBeDisabled();

Expand All @@ -318,7 +318,7 @@ describe( 'NavigationMenuSelector', () => {
// Check the button is enabled again.
expect(
screen.queryByRole( 'menuitem', {
name: 'Create new menu',
name: 'Create new Menu',
} )
).toBeEnabled();
} );
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/specs/editor/blocks/navigation-list-view.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -560,13 +560,13 @@ test.describe( 'Navigation block - List view editing', () => {
await page.keyboard.press( 'ArrowUp' );

await expect(
page.getByRole( 'menuitem', { name: 'Create new menu' } )
page.getByRole( 'menuitem', { name: 'Create new Menu' } )
).toBeFocused();

await page.keyboard.press( 'Enter' );

await expect(
page.getByText( 'This navigation menu is empty.' )
page.getByText( 'This Navigation Menu is empty.' )
).toBeVisible();

// Move focus to the appender
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/specs/editor/blocks/navigation.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ test.describe( 'Navigation block', () => {
// Find the warning message
const warningMessage = editor.canvas
.getByRole( 'document', { name: 'Block: Navigation' } )
.getByText( 'Navigation menu has been deleted or is unavailable.' );
.getByText( 'Navigation Menu has been deleted or is unavailable.' );
await expect( warningMessage ).toBeVisible();
} );

Expand Down

0 comments on commit 73a17b0

Please sign in to comment.