File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export interface SelectProps
22
22
'onChange'
23
23
> {
24
24
allowDeselect ?: boolean ;
25
+ 'data-testid' ?: string ;
25
26
disabled ?: boolean ;
26
27
dropdownPosition ?: 'top' | 'bottom' ;
27
28
errorContent ?: string ;
@@ -52,6 +53,7 @@ const renderSelectOption = ({
52
53
53
54
const Select = ( {
54
55
allowDeselect = false ,
56
+ 'data-testid' : dataTestId = 'form-select' ,
55
57
disabled,
56
58
dropdownPosition,
57
59
errorContent,
@@ -102,7 +104,7 @@ const Select = ({
102
104
allowDeselect = { allowDeselect }
103
105
comboboxProps = { { position : dropdownPosition } }
104
106
data = { selectableItems }
105
- data-testid = { 'form-select' }
107
+ data-testid = { dataTestId }
106
108
disabled = { disabled || ! items ?. length }
107
109
error = { isDefined ( errorContent ) && `${ errorContent } ` }
108
110
label = { label }
You can’t perform that action at this time.
0 commit comments