Skip to content

Commit

Permalink
Based on the efforts in #51761, remove caps case from Template Part a…
Browse files Browse the repository at this point in the history
…nd 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.
  • Loading branch information
ramonjd committed Sep 22, 2023
1 parent 2989933 commit f03b08c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/edit-site/src/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
};
2 changes: 1 addition & 1 deletion test/e2e/specs/site-editor/writing-flow.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
} );
Expand Down

0 comments on commit f03b08c

Please sign in to comment.