diff --git a/test/Select-test.js b/test/Select-test.js index 21866b2c17..7c93dc9c4b 100644 --- a/test/Select-test.js +++ b/test/Select-test.js @@ -3799,4 +3799,17 @@ describe('Select', () => { }); }); }); + + describe('.focus()', () => { + beforeEach(() => { + instance = createControl({}); + }); + + it('focuses the search input', () => { + var input = ReactDOM.findDOMNode(instance.input).querySelector('input'); + expect(input, 'not to equal', document.activeElement); + instance.focus(); + expect(input, 'to equal', document.activeElement); + }); + }); });