mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 13:36:02 -03:30
Update selectors on EE details page to ease testing
Update selectors on EE details page to ease testing.
This commit is contained in:
@@ -46,10 +46,15 @@ function ExecutionEnvironmentDetails({ executionEnvironment, i18n }) {
|
|||||||
value={image}
|
value={image}
|
||||||
dataCy="execution-environment-detail-image"
|
dataCy="execution-environment-detail-image"
|
||||||
/>
|
/>
|
||||||
<Detail label={i18n._(t`Description`)} value={description} />
|
<Detail
|
||||||
|
label={i18n._(t`Description`)}
|
||||||
|
value={description}
|
||||||
|
dataCy="execution-environment-detail-description"
|
||||||
|
/>
|
||||||
<Detail
|
<Detail
|
||||||
label={i18n._(t`Pull`)}
|
label={i18n._(t`Pull`)}
|
||||||
value={pull === '' ? i18n._(t`Missing`) : toTitleCase(pull)}
|
value={pull === '' ? i18n._(t`Missing`) : toTitleCase(pull)}
|
||||||
|
dataCy="execution-environment-pull"
|
||||||
/>
|
/>
|
||||||
{executionEnvironment.summary_fields.credential && (
|
{executionEnvironment.summary_fields.credential && (
|
||||||
<Detail
|
<Detail
|
||||||
@@ -66,11 +71,13 @@ function ExecutionEnvironmentDetails({ executionEnvironment, i18n }) {
|
|||||||
label={i18n._(t`Created`)}
|
label={i18n._(t`Created`)}
|
||||||
date={executionEnvironment.created}
|
date={executionEnvironment.created}
|
||||||
user={executionEnvironment.summary_fields.created_by}
|
user={executionEnvironment.summary_fields.created_by}
|
||||||
|
dataCy="execution-environment-created"
|
||||||
/>
|
/>
|
||||||
<UserDateDetail
|
<UserDateDetail
|
||||||
label={i18n._(t`Last Modified`)}
|
label={i18n._(t`Last Modified`)}
|
||||||
date={executionEnvironment.modified}
|
date={executionEnvironment.modified}
|
||||||
user={executionEnvironment.summary_fields.modified_by}
|
user={executionEnvironment.summary_fields.modified_by}
|
||||||
|
dataCy="execution-environment-modified"
|
||||||
/>
|
/>
|
||||||
</DetailList>
|
</DetailList>
|
||||||
<CardActionsRow>
|
<CardActionsRow>
|
||||||
@@ -78,6 +85,7 @@ function ExecutionEnvironmentDetails({ executionEnvironment, i18n }) {
|
|||||||
aria-label={i18n._(t`edit`)}
|
aria-label={i18n._(t`edit`)}
|
||||||
component={Link}
|
component={Link}
|
||||||
to={`/execution_environments/${id}/edit`}
|
to={`/execution_environments/${id}/edit`}
|
||||||
|
ouiaId="edit-button"
|
||||||
>
|
>
|
||||||
{i18n._(t`Edit`)}
|
{i18n._(t`Edit`)}
|
||||||
</Button>
|
</Button>
|
||||||
@@ -86,6 +94,7 @@ function ExecutionEnvironmentDetails({ executionEnvironment, i18n }) {
|
|||||||
modalTitle={i18n._(t`Delete Execution Environment`)}
|
modalTitle={i18n._(t`Delete Execution Environment`)}
|
||||||
onConfirm={deleteExecutionEnvironment}
|
onConfirm={deleteExecutionEnvironment}
|
||||||
isDisabled={isLoading}
|
isDisabled={isLoading}
|
||||||
|
ouiaId="delete-button"
|
||||||
>
|
>
|
||||||
{i18n._(t`Delete`)}
|
{i18n._(t`Delete`)}
|
||||||
</DeleteButton>
|
</DeleteButton>
|
||||||
|
|||||||
Reference in New Issue
Block a user