mirror of
https://github.com/ansible/awx.git
synced 2026-02-15 10:10:01 -03:30
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:
@@ -148,10 +148,10 @@ function CredentialFormFields({ i18n, credentialTypes }) {
|
|||||||
label={i18n._(t`Credential Type`)}
|
label={i18n._(t`Credential Type`)}
|
||||||
>
|
>
|
||||||
<Select
|
<Select
|
||||||
|
ouiaId="CredentialForm-credential_type"
|
||||||
aria-label={i18n._(t`Credential Type`)}
|
aria-label={i18n._(t`Credential Type`)}
|
||||||
isOpen={isSelectOpen}
|
isOpen={isSelectOpen}
|
||||||
variant={SelectVariant.typeahead}
|
variant={SelectVariant.typeahead}
|
||||||
ouiaId="credential-select"
|
|
||||||
onToggle={setIsSelectOpen}
|
onToggle={setIsSelectOpen}
|
||||||
onSelect={(event, value) => {
|
onSelect={(event, value) => {
|
||||||
credTypeHelpers.setValue(value);
|
credTypeHelpers.setValue(value);
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ function BecomeMethodField({ fieldOptions, isRequired }) {
|
|||||||
validated={!(meta.touched && meta.error) ? 'default' : 'error'}
|
validated={!(meta.touched && meta.error) ? 'default' : 'error'}
|
||||||
>
|
>
|
||||||
<Select
|
<Select
|
||||||
|
ouiaId={`CredentialForm-${fieldOptions.id}`}
|
||||||
maxHeight={200}
|
maxHeight={200}
|
||||||
variant={SelectVariant.typeahead}
|
variant={SelectVariant.typeahead}
|
||||||
onToggle={setIsOpen}
|
onToggle={setIsOpen}
|
||||||
|
|||||||
@@ -109,6 +109,7 @@ const SCMSubForm = ({ autoPopulateProject, i18n }) => {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Select
|
<Select
|
||||||
|
ouiaId="InventorySourceForm-source_path"
|
||||||
variant={SelectVariant.typeahead}
|
variant={SelectVariant.typeahead}
|
||||||
onToggle={setIsOpen}
|
onToggle={setIsOpen}
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ function PlaybookSelect({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Select
|
<Select
|
||||||
|
ouiaId="JobTemplateForm-playbook"
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
variant={SelectVariant.typeahead}
|
variant={SelectVariant.typeahead}
|
||||||
selections={selected}
|
selections={selected}
|
||||||
|
|||||||
Reference in New Issue
Block a user