Adds ouia id's to typeahead select components

This commit is contained in:
mabashian 2021-02-25 11:15:10 -05:00
parent 060578b30b
commit 1c7fbc2806
4 changed files with 4 additions and 0 deletions

View File

@ -148,6 +148,7 @@ function CredentialFormFields({ i18n, credentialTypes }) {
label={i18n._(t`Credential Type`)}
>
<Select
ouiaId="CredentialForm-credential_type"
aria-label={i18n._(t`Credential Type`)}
isOpen={isSelectOpen}
variant={SelectVariant.typeahead}

View File

@ -42,6 +42,7 @@ function BecomeMethodField({ fieldOptions, isRequired }) {
validated={!(meta.touched && meta.error) ? 'default' : 'error'}
>
<Select
ouiaId={`CredentialForm-${fieldOptions.id}`}
maxHeight={200}
variant={SelectVariant.typeahead}
onToggle={setIsOpen}

View File

@ -109,6 +109,7 @@ const SCMSubForm = ({ autoPopulateProject, i18n }) => {
}
>
<Select
ouiaId="InventorySourceForm-source_path"
variant={SelectVariant.typeahead}
onToggle={setIsOpen}
isOpen={isOpen}

View File

@ -50,6 +50,7 @@ function PlaybookSelect({
return (
<Select
ouiaId="JobTemplateForm-playbook"
isOpen={isOpen}
variant={SelectVariant.typeahead}
selections={selected}