diff --git a/packages/block-library/src/list/test/edit.native.js b/packages/block-library/src/list/test/edit.native.js index 5b70952925cd9..2c9cbcd43ec3e 100644 --- a/packages/block-library/src/list/test/edit.native.js +++ b/packages/block-library/src/list/test/edit.native.js @@ -347,7 +347,10 @@ describe( 'List block', () => { // backward delete const listItemField = within( listItemBlock ).getByLabelText( /Text input. .*Two.*/ ); - changeAndSelectTextOfRichText( listItemField, 'Two' ); + changeAndSelectTextOfRichText( listItemField, 'Two', { + initialSelectionStart: 0, + initialSelectionEnd: 3, + } ); fireEvent( listItemField, 'onKeyDown', { nativeEvent: {}, preventDefault() {}, @@ -395,7 +398,10 @@ describe( 'List block', () => { // backward delete const listItemField = within( listItemBlock ).getByLabelText( /Text input. .*One.*/ ); - changeAndSelectTextOfRichText( listItemField, 'One' ); + changeAndSelectTextOfRichText( listItemField, 'One', { + initialSelectionStart: 0, + initialSelectionEnd: 3, + } ); fireEvent( listItemField, 'onKeyDown', { nativeEvent: {}, preventDefault() {}, @@ -406,11 +412,11 @@ describe( 'List block', () => { "

A quick brown fox.

- +

One

- +