File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
components/MultiSelectCombobox
modules/workspaces/DynamicParameter Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ interface MultiSelectComboboxProps {
97
97
> ;
98
98
/** hide or show the button that clears all the selected options. */
99
99
hideClearAllButton ?: boolean ;
100
+ /** Test ID for testing purposes */
101
+ "data-testid" ?: string ;
100
102
}
101
103
102
104
interface MultiSelectComboboxRef {
@@ -198,6 +200,7 @@ export const MultiSelectCombobox = forwardRef<
198
200
commandProps,
199
201
inputProps,
200
202
hideClearAllButton = false ,
203
+ "data-testid" : dataTestId ,
201
204
} : MultiSelectComboboxProps ,
202
205
ref ,
203
206
) => {
@@ -447,6 +450,7 @@ export const MultiSelectCombobox = forwardRef<
447
450
< Command
448
451
ref = { dropdownRef }
449
452
{ ...commandProps }
453
+ data-testid = { dataTestId }
450
454
onKeyDown = { ( e ) => {
451
455
handleKeyDown ( e ) ;
452
456
commandProps ?. onKeyDown ?.( e ) ;
Original file line number Diff line number Diff line change @@ -454,6 +454,7 @@ const ParameterField: FC<ParameterFieldProps> = ({
454
454
inputProps = { {
455
455
id : id ,
456
456
} }
457
+ data-testid = { `multiselect-${ parameter . name } ` }
457
458
options = { options }
458
459
defaultOptions = { selectedOptions }
459
460
onChange = { ( newValues ) => {
You can’t perform that action at this time.
0 commit comments