Update share modal dropdown with a description for reviewers in a free project (#24571)

* Update collaborator select dropdown with a description for reviewers in free project

* Update share-project-modal test

* Fix saas-e2e tests

* fix server pro tests

* fix cypress multiple inputs selection

* fix testid case

GitOrigin-RevId: 5369828334596d80988aba168385f0a51eea998f
This commit is contained in:
Domagoj Kriskovic
2025-04-03 08:04:59 +00:00
committed by Copybot
parent 830d0daa38
commit f36c87b301
12 changed files with 103 additions and 51 deletions
@@ -52,6 +52,8 @@ export type SelectProps<T> = {
loading?: boolean
// Show a checkmark next to the selected item
selectedIcon?: boolean
// testId for the input element
dataTestId?: string
}
export const Select = <T,>({
@@ -70,6 +72,7 @@ export const Select = <T,>({
optionalLabel = false,
loading = false,
selectedIcon = false,
dataTestId,
}: SelectProps<T>) => {
const [selectedItem, setSelectedItem] = useState<T | undefined | null>(
defaultItem
@@ -247,6 +250,7 @@ export const Select = <T,>({
</Form.Label>
) : null}
<FormControl
data-testid={dataTestId}
{...getToggleButtonProps({
disabled,
onKeyDown,