diff --git a/packages/edit-site/src/components/add-new-pattern/index.js b/packages/edit-site/src/components/add-new-pattern/index.js index 160d3fb731ddc1..e4c990dae1e868 100644 --- a/packages/edit-site/src/components/add-new-pattern/index.js +++ b/packages/edit-site/src/components/add-new-pattern/index.js @@ -58,21 +58,21 @@ export default function AddNewPattern() { { icon: header, onClick: () => setShowTemplatePartModal( true ), - title: __( 'Create a template part' ), + title: __( 'Create template part' ), }, { icon: file, onClick: () => setShowPatternModal( true ), - title: __( 'Create a pattern' ), + title: __( 'Create pattern' ), }, ] } icon={ } - label={ __( 'Create a pattern.' ) } + label={ __( 'Create pattern.' ) } /> { showPatternModal && ( diff --git a/packages/edit-site/src/components/create-template-part-modal/index.js b/packages/edit-site/src/components/create-template-part-modal/index.js index 7deeeae23ab56e..a006ba6f2cb439 100644 --- a/packages/edit-site/src/components/create-template-part-modal/index.js +++ b/packages/edit-site/src/components/create-template-part-modal/index.js @@ -101,7 +101,7 @@ export default function CreateTemplatePartModal( { return ( diff --git a/test/e2e/specs/site-editor/site-editor-url-navigation.spec.js b/test/e2e/specs/site-editor/site-editor-url-navigation.spec.js index ee9a0dd99eb488..90daa3ae50c242 100644 --- a/test/e2e/specs/site-editor/site-editor-url-navigation.spec.js +++ b/test/e2e/specs/site-editor/site-editor-url-navigation.spec.js @@ -63,10 +63,10 @@ test.describe( 'Site editor url navigation', () => { } ) => { await admin.visitSiteEditor(); await page.click( 'role=button[name="Library"i]' ); - await page.click( 'role=button[name="Create a pattern"i]' ); + await page.click( 'role=button[name="Create pattern"i]' ); await page - .getByRole( 'menu', { name: 'Create a pattern' } ) - .getByRole( 'menuitem', { name: 'Create a template part' } ) + .getByRole( 'menu', { name: 'Create pattern' } ) + .getByRole( 'menuitem', { name: 'Create template part' } ) .click(); // Fill in a name in the dialog that pops up. await page.type(