diff --git a/packages/edit-site/src/hooks/push-changes-to-global-styles/index.js b/packages/edit-site/src/hooks/push-changes-to-global-styles/index.js index 70b9fa1b02f8ea..6d29de4fdc9eed 100644 --- a/packages/edit-site/src/hooks/push-changes-to-global-styles/index.js +++ b/packages/edit-site/src/hooks/push-changes-to-global-styles/index.js @@ -97,7 +97,7 @@ function PushChangesToGlobalStylesControl( { createSuccessNotice( sprintf( // translators: %s: Title of the block e.g. 'Heading'. - __( 'Pushed styles to all %s blocks.' ), + __( '%s styles applied.' ), getBlockType( name ).title ), { @@ -124,7 +124,7 @@ function PushChangesToGlobalStylesControl( { help={ sprintf( // translators: %s: Title of the block e.g. 'Heading'. __( - 'Move this block’s typography, spacing, dimensions, and color styles to all %s blocks.' + 'Apply this block’s typography, spacing, dimensions, and color styles to all %s blocks.' ), getBlockType( name ).title ) } @@ -137,7 +137,7 @@ function PushChangesToGlobalStylesControl( { disabled={ changes.length === 0 } onClick={ pushChanges } > - { __( 'Push changes to Global Styles' ) } + { __( 'Apply globally' ) } ); diff --git a/test/e2e/specs/site-editor/push-to-global-styles.spec.js b/test/e2e/specs/site-editor/push-to-global-styles.spec.js index ce854f476e4f9d..7e9d3a07807f1c 100644 --- a/test/e2e/specs/site-editor/push-to-global-styles.spec.js +++ b/test/e2e/specs/site-editor/push-to-global-styles.spec.js @@ -59,7 +59,7 @@ test.describe( 'Push to Global Styles button', () => { // Push button should be disabled await expect( page.getByRole( 'button', { - name: 'Push changes to Global Styles', + name: 'Apply globally', } ) ).toBeDisabled(); @@ -69,27 +69,25 @@ test.describe( 'Push to Global Styles button', () => { // Push button should now be enabled await expect( page.getByRole( 'button', { - name: 'Push changes to Global Styles', + name: 'Apply globally', } ) ).toBeEnabled(); // Press the Push button - await page - .getByRole( 'button', { name: 'Push changes to Global Styles' } ) - .click(); + await page.getByRole( 'button', { name: 'Apply globally' } ).click(); // Snackbar notification should appear await expect( page.getByRole( 'button', { name: 'Dismiss this notice', - text: 'Pushed styles to all Heading blocks.', + text: 'Heading styles applied.', } ) ).toBeVisible(); // Push button should be disabled again await expect( page.getByRole( 'button', { - name: 'Push changes to Global Styles', + name: 'Apply globally', } ) ).toBeDisabled();