Skip to content

Commit

Permalink
Differentiate shortcut test from backspace test
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Sep 2, 2018
1 parent a7db5a7 commit 865e9ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/e2e/specs/block-deletion.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ 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 () => {
// 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();

Expand Down

0 comments on commit 865e9ee

Please sign in to comment.