Skip to content

Commit 2d5fdb7

Browse files
committed
Update word and related tests
1 parent 0622788 commit 2d5fdb7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/block-editor/src/components/link-control/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ function LinkControl( {
410410
! valueHasChanges || currentInputIsEmpty
411411
}
412412
>
413-
{ __( 'Apply' ) }
413+
{ __( 'Save' ) }
414414
</Button>
415415
<Button variant="tertiary" onClick={ handleCancel }>
416416
{ __( 'Cancel' ) }

packages/block-editor/src/components/link-control/test/index.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ describe( 'Manual link entry', () => {
655655
} );
656656

657657
let submitButton = screen.getByRole( 'button', {
658-
name: 'Apply',
658+
name: 'Save',
659659
} );
660660

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

675675
submitButton = screen.getByRole( 'button', {
676-
name: 'Apply',
676+
name: 'Save',
677677
} );
678678

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

698698
let submitButton = screen.queryByRole( 'button', {
699-
name: 'Apply',
699+
name: 'Save',
700700
} );
701701

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

717717
submitButton = screen.queryByRole( 'button', {
718-
name: 'Apply',
718+
name: 'Save',
719719
} );
720720

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

18101810
// check that the "Apply" button is disabled by default.
18111811
const submitButton = screen.queryByRole( 'button', {
1812-
name: 'Apply',
1812+
name: 'Save',
18131813
} );
18141814

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

22442244
const submitButton = screen.queryByRole( 'button', {
2245-
name: 'Apply',
2245+
name: 'Save',
22462246
} );
22472247

22482248
await user.click( submitButton );

0 commit comments

Comments
 (0)