Skip to content

Commit

Permalink
updated test to fix test for input focus as componentDidUpdate would …
Browse files Browse the repository at this point in the history
…set the focus to input if the menu is open
  • Loading branch information
Sushant Kulkarni committed Dec 4, 2017
1 parent 5ad14d4 commit 25242fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Async-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,8 @@ describe('Async', () => {
});

it('focuses the search input', () => {
expect(filterInputNode, 'not to equal', document.activeElement);
// test would fail as `componentDidUpdate` will set focus if the menu is open
//expect(filterInputNode, 'not to equal', document.activeElement);
asyncInstance.focus();
expect(filterInputNode, 'to equal', document.activeElement);
});
Expand Down

0 comments on commit 25242fc

Please sign in to comment.