From 25242fcab7259620f2c3887d78c5cb482424187a Mon Sep 17 00:00:00 2001 From: Sushant Kulkarni Date: Mon, 4 Dec 2017 10:37:30 +0530 Subject: [PATCH] updated test to fix test for input focus as componentDidUpdate would set the focus to input if the menu is open --- test/Async-test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/Async-test.js b/test/Async-test.js index f76bb19801..2bb5557522 100644 --- a/test/Async-test.js +++ b/test/Async-test.js @@ -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); });