From e790617fee7849274107d765dd1ceea883855080 Mon Sep 17 00:00:00 2001 From: Ramon Date: Fri, 22 Sep 2023 12:37:37 +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. (#54709) --- 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 6acf09182dba9..7d12381804380 100644 --- a/packages/edit-site/src/utils/constants.js +++ b/packages/edit-site/src/utils/constants.js @@ -50,7 +50,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(); } );