@@ -3,14 +3,25 @@ import { Route, Switch } from 'react-router-dom';
3
3
import { SelectInput } from 'ui-kit' ;
4
4
import { Suite , Spec } from '../../../../test/percy' ;
5
5
6
- const options = [
6
+ const defaultOptions = [
7
7
{ value : 'one' , label : 'One' } ,
8
8
{ value : 'two' , label : 'Two' } ,
9
9
] ;
10
10
11
+ const longOptions = defaultOptions . concat ( [
12
+ { value : 'three' , label : 'Three' } ,
13
+ { value : 'four' , label : 'Four' } ,
14
+ { value : 'five' , label : 'Five' } ,
15
+ { value : 'six' , label : 'Six' } ,
16
+ { value : 'seven' , label : 'Seven' } ,
17
+ { value : 'eight' , label : 'Eight' } ,
18
+ ] ) ;
19
+
20
+ const options = defaultOptions ;
21
+
11
22
const optionsWithGroups = [
12
- { label : 'one ' , options : [ { value : 'one ' , label : 'One ' } ] } ,
13
- { options : [ { value : 'two' , label : 'Two' } ] } ,
23
+ { label : 'animals ' , options : [ { value : 'cats ' , label : 'Cats ' } ] } ,
24
+ { options : longOptions } ,
14
25
] ;
15
26
16
27
const value = 'one' ;
@@ -102,7 +113,7 @@ const OpenRoute = () => (
102
113
id = "select-input"
103
114
value = { value }
104
115
onChange = { ( ) => { } }
105
- options = { options }
116
+ options = { longOptions }
106
117
horizontalConstraint = "m"
107
118
/>
108
119
</ Spec >
0 commit comments