diff --git a/packages/e2e-test-utils/src/disable-pre-publish-checks.js b/packages/e2e-test-utils/src/disable-pre-publish-checks.js index 25660e48c9555..a3a80effbde64 100644 --- a/packages/e2e-test-utils/src/disable-pre-publish-checks.js +++ b/packages/e2e-test-utils/src/disable-pre-publish-checks.js @@ -10,7 +10,7 @@ import { toggleMoreMenu } from './toggle-more-menu'; export async function disablePrePublishChecks() { await togglePreferencesOption( 'General', - 'Enable pre-publish flow', + 'Enable pre-publish checks', false ); await toggleMoreMenu( 'close' ); diff --git a/packages/e2e-test-utils/src/enable-pre-publish-checks.js b/packages/e2e-test-utils/src/enable-pre-publish-checks.js index 5a65ba6fc1353..817e2414b0940 100644 --- a/packages/e2e-test-utils/src/enable-pre-publish-checks.js +++ b/packages/e2e-test-utils/src/enable-pre-publish-checks.js @@ -8,6 +8,10 @@ import { toggleMoreMenu } from './toggle-more-menu'; * Enables Pre-publish checks. */ export async function enablePrePublishChecks() { - await togglePreferencesOption( 'General', 'Enable pre-publish flow', true ); + await togglePreferencesOption( + 'General', + 'Enable pre-publish checks', + true + ); await toggleMoreMenu( 'close' ); } diff --git a/packages/edit-post/src/components/preferences-modal/index.js b/packages/edit-post/src/components/preferences-modal/index.js index 6a882e2b5f106..22c00aadfe0b1 100644 --- a/packages/edit-post/src/components/preferences-modal/index.js +++ b/packages/edit-post/src/components/preferences-modal/index.js @@ -95,7 +95,7 @@ export default function EditPostPreferencesModal() { help={ __( 'Review settings, such as visibility and tags.' ) } - label={ __( 'Enable pre-publish flow' ) } + label={ __( 'Enable pre-publish checks' ) } /> ) } diff --git a/packages/edit-post/src/hooks/commands/use-common-commands.js b/packages/edit-post/src/hooks/commands/use-common-commands.js index eb8b73e20a9f1..e30f074640bdf 100644 --- a/packages/edit-post/src/hooks/commands/use-common-commands.js +++ b/packages/edit-post/src/hooks/commands/use-common-commands.js @@ -192,16 +192,16 @@ export default function useCommonCommands() { useCommand( { name: 'core/toggle-publish-sidebar', label: isPublishSidebarEnabled - ? __( 'Disable pre-publish checklist' ) - : __( 'Enable pre-publish checklist' ), + ? __( 'Disable pre-publish checks' ) + : __( 'Enable pre-publish checks' ), icon: formatListBullets, callback: ( { close } ) => { close(); toggle( 'core/edit-post', 'isPublishSidebarEnabled' ); createInfoNotice( isPublishSidebarEnabled - ? __( 'Pre-publish checklist off.' ) - : __( 'Pre-publish checklist on.' ), + ? __( 'Pre-publish checks disabled.' ) + : __( 'Pre-publish checks enabled.' ), { id: 'core/edit-post/publish-sidebar/notice', type: 'snackbar', diff --git a/packages/interface/src/components/preferences-modal/README.md b/packages/interface/src/components/preferences-modal/README.md index f873ccf297ec1..4327a59a7905a 100644 --- a/packages/interface/src/components/preferences-modal/README.md +++ b/packages/interface/src/components/preferences-modal/README.md @@ -28,7 +28,7 @@ function MyEditorPreferencesModal() { 'Review settings, such as visibility and tags.' ) } label={ __( - 'Enable pre-publish flow' + 'Enable pre-publish checks' ) } /> diff --git a/test/e2e/specs/editor/various/pref-modal.spec.js b/test/e2e/specs/editor/various/pref-modal.spec.js index f99c7d32a22a9..08c3cd322586a 100644 --- a/test/e2e/specs/editor/various/pref-modal.spec.js +++ b/test/e2e/specs/editor/various/pref-modal.spec.js @@ -9,7 +9,7 @@ test.describe( 'Preferences modal', () => { } ); test.describe( 'Preferences modal adaps to viewport', () => { - test( 'Enable pre-publish flow is visible on desktop ', async ( { + test( 'Enable pre-publish checks is visible on desktop ', async ( { page, } ) => { await page.click( @@ -18,14 +18,14 @@ test.describe( 'Preferences modal', () => { await page.click( 'role=menuitem[name="Preferences"i]' ); const prePublishToggle = page.locator( - 'role=checkbox[name="Enable pre-publish flow"i]' + 'role=checkbox[name="Enable pre-publish checks"i]' ); await expect( prePublishToggle ).toBeVisible(); } ); } ); test.describe( 'Preferences modal adaps to viewport', () => { - test( 'Enable pre-publish flow is not visible on mobile ', async ( { + test( 'Enable pre-publish checks is not visible on mobile ', async ( { page, } ) => { await page.setViewportSize( { width: 500, height: 800 } ); @@ -44,7 +44,7 @@ test.describe( 'Preferences modal', () => { ); const prePublishToggle = page.locator( - 'role=checkbox[name="Enable pre-publish flow"i]' + 'role=checkbox[name="Enable pre-publish checks"i]' ); await expect( generalButton ).toBeVisible();