Skip to content

Commit

Permalink
Update word and related tests
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed May 26, 2023
1 parent 0622788 commit 2d5fdb7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/link-control/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ function LinkControl( {
! valueHasChanges || currentInputIsEmpty
}
>
{ __( 'Apply' ) }
{ __( 'Save' ) }
</Button>
<Button variant="tertiary" onClick={ handleCancel }>
{ __( 'Cancel' ) }
Expand Down
12 changes: 6 additions & 6 deletions packages/block-editor/src/components/link-control/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ describe( 'Manual link entry', () => {
} );

let submitButton = screen.getByRole( 'button', {
name: 'Apply',
name: 'Save',
} );

expect( submitButton ).toBeDisabled();
Expand All @@ -673,7 +673,7 @@ describe( 'Manual link entry', () => {
await user.keyboard( '[Enter]' );

submitButton = screen.getByRole( 'button', {
name: 'Apply',
name: 'Save',
} );

// Verify the UI hasn't allowed submission.
Expand All @@ -696,7 +696,7 @@ describe( 'Manual link entry', () => {
} );

let submitButton = screen.queryByRole( 'button', {
name: 'Apply',
name: 'Save',
} );

expect( submitButton ).toBeDisabled();
Expand All @@ -715,7 +715,7 @@ describe( 'Manual link entry', () => {
await user.click( submitButton );

submitButton = screen.queryByRole( 'button', {
name: 'Apply',
name: 'Save',
} );

// Verify the UI hasn't allowed submission.
Expand Down Expand Up @@ -1809,7 +1809,7 @@ describe( 'Addition Settings UI', () => {

// check that the "Apply" button is disabled by default.
const submitButton = screen.queryByRole( 'button', {
name: 'Apply',
name: 'Save',
} );

expect( submitButton ).toBeDisabled();
Expand Down Expand Up @@ -2242,7 +2242,7 @@ describe( 'Controlling link title text', () => {
expect( textInput ).toHaveValue( textValue );

const submitButton = screen.queryByRole( 'button', {
name: 'Apply',
name: 'Save',
} );

await user.click( submitButton );
Expand Down

0 comments on commit 2d5fdb7

Please sign in to comment.