Skip to content

Commit

Permalink
Simplify button text
Browse files Browse the repository at this point in the history
  • Loading branch information
richtabor committed Apr 17, 2024
1 parent f6c46c8 commit a5bad82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/patterns/src/components/allow-overrides-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function AllowOverridesModal( {
variant="primary"
type="submit"
>
{ __( 'Enable overrides' ) }
{ __( 'Enable' ) }
</Button>
</HStack>
</VStack>
Expand Down Expand Up @@ -146,7 +146,7 @@ export function DisallowOverridesModal( { onClose, onSave } ) {
variant="primary"
type="submit"
>
{ __( 'Disable overrides' ) }
{ __( 'Disable' ) }
</Button>
</HStack>
</VStack>
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/specs/editor/various/pattern-overrides.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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( [
Expand Down

0 comments on commit a5bad82

Please sign in to comment.