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