Skip to content

Commit

Permalink
removed test made obsolete by changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gwyneplaine committed Nov 23, 2017
1 parent 79eefba commit 63d2e18
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions test/Select-test.js
Expand Up @@ -4171,34 +4171,6 @@ describe('Select', () => {
});

});

it('updates the active descendant after a selection using space bar', () => {

return expect(wrapper,
'with event', 'keyDown', ARROW_DOWN, 'on', <div className="Select-control" />,
'with event', 'keyDown', KEY_SPACE, 'on', <div className="Select-control" />,
'queried for', <input role="combobox" />)
.then(input => {

// [ 'three', 'two', 'one' ] is now selected,
// therefore in-focus should be 'four'

const activeId = input.attributes['aria-activedescendant'].value;
expect(ReactDOM.findDOMNode(instance), 'queried for first', '#' + activeId, 'to have text', 'label four');
});

});

it('expands the drop down when the space bar is pressed', () => {

return expect(wrapper,
'with event', 'keyDown', KEY_SPACE, 'on', <div className="Select-control" />,
'queried for', <input role="combobox" />)
.then(input => {
expect(instance.state.focusedOption, 'to equal', { value: 'one', label: 'label one' });
});

});
});
});

Expand Down

0 comments on commit 63d2e18

Please sign in to comment.