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 Aug 1, 2018
1 parent ba7a6bd commit bc2e39a
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 @@ -202,6 +202,25 @@ class SelectFixture extends React.Component {
</select>
</div>
</TestCase>

<TestCase title="A multiple select 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 bc2e39a

Please sign in to comment.