Skip to content

Commit

Permalink
Merge pull request #1853 from jochenberger/fix-select
Browse files Browse the repository at this point in the history
fix tests
  • Loading branch information
agirton authored Jul 4, 2017
2 parents 48348bc + da437ce commit 9acb454
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/Select-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1979,8 +1979,8 @@ describe('Select', () => {
clickArrowToOpen();

expect(instance,
'with event mouseDown', 'on', <div className="Select-option">Two</div>,
'with event mouseDown', 'on', <div className="Select-option">One</div>,
'with event', 'mouseDown', 'on', <div className="Select-option">Two</div>,
'with event', 'mouseDown', 'on', <div className="Select-option">One</div>,
'to contain',
<span className="Select-multi-value-wrapper">
<div><span className="Select-value-label">Two</span></div>
Expand Down Expand Up @@ -3798,7 +3798,7 @@ describe('Select', () => {

it('sets the haspopup and expanded to true when menu is shown', () => {
expect(instance,
'with event keyDown', ARROW_DOWN, 'on', <div className="Select-control" />,
'with event', 'keyDown', ARROW_DOWN, 'on', <div className="Select-control" />,
'to contain', <input role="combobox" aria-haspopup="true" aria-expanded="true" />);
});

Expand Down Expand Up @@ -3881,7 +3881,7 @@ describe('Select', () => {

it('hides the `press backspace to remove` message on blur', () => {
expect(instance,
'with event blur', 'on', <input role="combobox" />,
'with event', 'blur', 'on', <input role="combobox" />,
'not to contain',
<span className="Select-aria-only" aria-live="assertive">
Press backspace to remove label two
Expand All @@ -3901,8 +3901,8 @@ describe('Select', () => {
it('updates the active descendant after a selection', () => {

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

Expand Down

0 comments on commit 9acb454

Please sign in to comment.