diff --git a/test/e2e/specs/block-deletion.test.js b/test/e2e/specs/block-deletion.test.js index d2d70eb6de337d..9851cd7526eb8d 100644 --- a/test/e2e/specs/block-deletion.test.js +++ b/test/e2e/specs/block-deletion.test.js @@ -42,7 +42,9 @@ describe( 'block deletion -', () => { describe( 'deleting the third block using the Remove Block shortcut', () => { it( 'results in two remaining blocks and positions the caret at the end of the second block', async () => { - await pressWithModifier( [ 'Shift', META_KEY ], 'Backspace' ); + // Type some text to assert that the shortcut also deletes block content. + await page.keyboard.type( 'this is block 2' ); + await pressWithModifier( [ 'Alt', META_KEY ], 'Backspace' ); expect( await getEditedPostContent() ).toMatchSnapshot(); // Type additional text and assert that caret position is correct by comparing to snapshot.