mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 11:20:39 -03:30
add ouia ids to variables expand buttons
This commit is contained in:
parent
e8886a5525
commit
fb257d0add
@ -115,6 +115,7 @@ function VariablesDetail({ dataCy, helpText, value, label, rows, i18n }) {
|
||||
key="select"
|
||||
variant="primary"
|
||||
onClick={() => setIsExpanded(false)}
|
||||
ouiaId={`${dataCy}-unexpand`}
|
||||
>
|
||||
{i18n._(t`Done`)}
|
||||
</Button>,
|
||||
@ -212,6 +213,7 @@ function ModeToggle({
|
||||
variant="plain"
|
||||
aria-label={i18n._(t`Expand input`)}
|
||||
onClick={onExpand}
|
||||
ouiaId={`${dataCy}-expand`}
|
||||
>
|
||||
<ExpandArrowsAltIcon />
|
||||
</Button>
|
||||
|
||||
@ -64,6 +64,7 @@ function VariablesField({
|
||||
key="select"
|
||||
variant="primary"
|
||||
onClick={() => setIsExpanded(false)}
|
||||
ouiaId={`${id}-variables-unexpand`}
|
||||
>
|
||||
{i18n._(t`Done`)}
|
||||
</Button>,
|
||||
@ -163,6 +164,7 @@ function VariablesFieldInternals({
|
||||
variant="plain"
|
||||
aria-label={i18n._(t`Expand input`)}
|
||||
onClick={onExpand}
|
||||
ouiaId={`${id}-variables-expand`}
|
||||
>
|
||||
<ExpandArrowsAltIcon />
|
||||
</Button>
|
||||
|
||||
@ -372,6 +372,7 @@ function JobTemplateDetail({ i18n, template }) {
|
||||
value={extra_vars}
|
||||
rows={4}
|
||||
label={i18n._(t`Variables`)}
|
||||
dataCy={`jt-details-${template.id}`}
|
||||
/>
|
||||
</DetailList>
|
||||
<CardActionsRow>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user