From f03b08c7153007934437c75dfe5232e09d4d3999 Mon Sep 17 00:00:00 2001 From: ramon Date: Fri, 22 Sep 2023 11:45:31 +1000 Subject: [PATCH] Based on the efforts in https://github.com/WordPress/gutenberg/pull/51761, remove caps case from Template Part and prefer sentence case. As all instances of this string are stand alone, it's okay to have Template capitalized as it's the start of a sentence. --- packages/edit-site/src/utils/constants.js | 2 +- test/e2e/specs/site-editor/writing-flow.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/edit-site/src/utils/constants.js b/packages/edit-site/src/utils/constants.js index 3b25a51bb1e12..598ba80b3abaf 100644 --- a/packages/edit-site/src/utils/constants.js +++ b/packages/edit-site/src/utils/constants.js @@ -49,7 +49,7 @@ export const PAGE_CONTENT_BLOCK_TYPES = { export const POST_TYPE_LABELS = { [ TEMPLATE_POST_TYPE ]: __( 'Template' ), - [ TEMPLATE_PART_POST_TYPE ]: __( 'Template Part' ), + [ TEMPLATE_PART_POST_TYPE ]: __( 'Template part' ), [ PATTERN_TYPES.user ]: __( 'Pattern' ), [ NAVIGATION_POST_TYPE ]: __( 'Navigation' ), }; diff --git a/test/e2e/specs/site-editor/writing-flow.spec.js b/test/e2e/specs/site-editor/writing-flow.spec.js index a2e05f0f0a463..f9681a5ea2d46 100644 --- a/test/e2e/specs/site-editor/writing-flow.spec.js +++ b/test/e2e/specs/site-editor/writing-flow.spec.js @@ -66,7 +66,7 @@ test.describe( 'Site editor writing flow', () => { // Tab to the inspector, tabbing three times to go past the two resize handles. await pageUtils.pressKeys( 'Tab', { times: 3 } ); const inspectorTemplateTab = page.locator( - 'role=region[name="Editor settings"i] >> role=button[name="Template Part"i]' + 'role=region[name="Editor settings"i] >> role=button[name="Template part"i]' ); await expect( inspectorTemplateTab ).toBeFocused(); } );