Skip to content

Commit

Permalink
Edit test to actually test what it describes
Browse files Browse the repository at this point in the history
  • Loading branch information
marekhrabe committed Jun 20, 2016
1 parent b1da1b5 commit cc524a7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/components/token-field/test/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,8 @@ describe( 'TokenField', function() {
it( 'should not lose focus when a suggestion is clicked', test( function() {
// prevents regression of https://github.com/Automattic/wp-calypso/issues/1884

textInputNode.simulate( 'blur', {
relatedTarget: document.querySelector( '.token-field__suggestion' )
} );
const firstSuggestion = tokenFieldNode.find( '.token-field__suggestion' ).at( 0 );
firstSuggestion.simulate( 'click' );

// wait for setState call
this.clock.tick( 10 );
Expand Down

0 comments on commit cc524a7

Please sign in to comment.