Skip to content

Commit

Permalink
Tests: Improve block clear provisional verification
Browse files Browse the repository at this point in the history
Clicking visual editor is not very reliable because clearing is dependant upon where click occurs. Escape is most reliable for intent of clearing the focused selected block.
  • Loading branch information
aduth committed Mar 7, 2018
1 parent 901b243 commit 027149b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/integration/002-adding-blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe( 'Adding blocks', () => {
// Default block appender is provisional
cy.get( lastBlockSelector ).then( ( firstBlock ) => {
cy.get( '.editor-default-block-appender' ).click();
cy.get( '.edit-post-visual-editor' ).click();
cy.focused().type( '{esc}' );
cy.get( lastBlockSelector ).should( 'have.text', firstBlock.text() );
} );

Expand Down

0 comments on commit 027149b

Please sign in to comment.