Merge pull request #9417 from mabashian/typeahead-select-ouia

Adds ouia id's to typeahead select components

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot] 2021-02-27 19:52:07 +00:00 committed by GitHub
commit 4cdec9c297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 1 deletions

View File

@ -148,10 +148,10 @@ 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}
ouiaId="credential-select"
onToggle={setIsSelectOpen}
onSelect={(event, value) => {
credTypeHelpers.setValue(value);

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}