Skip to content

Commit

Permalink
Revert "Update shortcut for remove block in block-deletion test" (#9477)
Browse files Browse the repository at this point in the history
- Revert shortcut change in block-deletion e2e test
- Remove risk of false positive in block-deletion shortcut test case
  • Loading branch information
talldan authored Sep 3, 2018
1 parent 4528ee3 commit cf74b67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/specs/block-deletion.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cf74b67

Please sign in to comment.