From a5bad82c41a7dd9c59c8a14c2d938ac9c97a4473 Mon Sep 17 00:00:00 2001 From: Rich Tabor Date: Wed, 17 Apr 2024 07:38:55 -0400 Subject: [PATCH] Simplify button text --- packages/patterns/src/components/allow-overrides-modal.js | 4 ++-- test/e2e/specs/editor/various/pattern-overrides.spec.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/patterns/src/components/allow-overrides-modal.js b/packages/patterns/src/components/allow-overrides-modal.js index 28baa4fb272e1..ad7e29b820d51 100644 --- a/packages/patterns/src/components/allow-overrides-modal.js +++ b/packages/patterns/src/components/allow-overrides-modal.js @@ -95,7 +95,7 @@ export function AllowOverridesModal( { variant="primary" type="submit" > - { __( 'Enable overrides' ) } + { __( 'Enable' ) } @@ -146,7 +146,7 @@ export function DisallowOverridesModal( { onClose, onSave } ) { variant="primary" type="submit" > - { __( 'Disable overrides' ) } + { __( 'Disable' ) } diff --git a/test/e2e/specs/editor/various/pattern-overrides.spec.js b/test/e2e/specs/editor/various/pattern-overrides.spec.js index 57b2ea7ce18d7..c5d0175ecfc26 100644 --- a/test/e2e/specs/editor/various/pattern-overrides.spec.js +++ b/test/e2e/specs/editor/various/pattern-overrides.spec.js @@ -90,11 +90,11 @@ test.describe( 'Pattern Overrides', () => { .getByRole( 'button', { name: 'Advanced' } ) .click(); await editorSettings - .getByRole( 'button', { name: 'Enable overrides' } ) + .getByRole( 'button', { name: 'Enable' } ) .click(); await page .getByRole( 'dialog', { name: 'Enable overrides' } ) - .getByRole( 'button', { name: 'Enable overrides' } ) + .getByRole( 'button', { name: 'Enable' } ) .click(); await expect.poll( editor.getBlocks ).toMatchObject( [