File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
components/MultiSelectCombobox
modules/workspaces/DynamicParameter Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,8 @@ interface MultiSelectComboboxProps {
104
104
> ;
105
105
/** hide or show the button that clears all the selected options. */
106
106
hideClearAllButton ?: boolean ;
107
+ /** Test ID for testing purposes */
108
+ "data-testid" ?: string ;
107
109
}
108
110
109
111
interface MultiSelectComboboxRef {
@@ -205,6 +207,7 @@ export const MultiSelectCombobox = forwardRef<
205
207
commandProps,
206
208
inputProps,
207
209
hideClearAllButton = false ,
210
+ "data-testid" : dataTestId ,
208
211
} : MultiSelectComboboxProps ,
209
212
ref ,
210
213
) => {
@@ -454,6 +457,7 @@ export const MultiSelectCombobox = forwardRef<
454
457
< Command
455
458
ref = { dropdownRef }
456
459
{ ...commandProps }
460
+ data-testid = { dataTestId }
457
461
onKeyDown = { ( e ) => {
458
462
handleKeyDown ( e ) ;
459
463
commandProps ?. onKeyDown ?.( e ) ;
Original file line number Diff line number Diff line change @@ -506,7 +506,10 @@ const ParameterField: FC<ParameterFieldProps> = ({
506
506
507
507
return (
508
508
< MultiSelectCombobox
509
- inputProps = { { id } }
509
+ inputProps = { {
510
+ id : id ,
511
+ } }
512
+ data-testid = { `multiselect-${ parameter . name } ` }
510
513
options = { options }
511
514
defaultOptions = { selectedOptions }
512
515
onChange = { ( newValues ) => {
You can’t perform that action at this time.
0 commit comments