Skip to content

Commit

Permalink
Add dom test fixture to test long multiple select scrolling to the fi…
Browse files Browse the repository at this point in the history
…rst selected option

fixes facebook#13222
  • Loading branch information
segoddnja committed Jul 27, 2018
1 parent 2abb232 commit d7c57e5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions fixtures/dom/src/components/fixtures/selects/index.js
Expand Up @@ -158,6 +158,25 @@ class SelectFixture extends React.Component {
</form>
</div>
</TestCase>

<TestCase title="A multiple selec being scrolled to first selected option">
<TestCase.ExpectedResult>
First selected option should be visible
</TestCase.ExpectedResult>

<div className="test-fixture">
<form ref={n => (this._multipleFormDOMNode = n)}>
<select multiple defaultValue={['tiger']}>
<option value="gorilla">gorilla</option>
<option value="giraffe">giraffe</option>
<option value="monkey">monkey</option>
<option value="lion">lion</option>
<option value="mongoose">mongoose</option>
<option value="tiger">tiget</option>
</select>
</form>
</div>
</TestCase>
</FixtureSet>
);
}
Expand Down

0 comments on commit d7c57e5

Please sign in to comment.