Merge pull request #12134 from ansible/add-deleted-inventory-locator-for-JT-detail

add new locator for deleted inventory in JT detail screen
This commit is contained in:
Sarah Akus 2022-04-29 16:18:45 -04:00 committed by GitHub
commit b6362a63cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -11,8 +11,8 @@ const Detail = styled(_Detail)`
}
`;
function DeletedDetail({ label }) {
return <Detail label={label} value={t`Deleted`} />;
function DeletedDetail({ label, dataCy }) {
return <Detail label={label} dataCy={dataCy} value={t`Deleted`} />;
}
DeletedDetail.propTypes = {

View File

@ -218,7 +218,9 @@ function JobTemplateDetail({ template }) {
)}
/>
) : (
!ask_inventory_on_launch && <DeletedDetail label={t`Inventory`} />
!ask_inventory_on_launch && (
<DeletedDetail label={t`Inventory`} dataCy="jt-detail-inventory" />
)
)}
{summary_fields.project ? (
<Detail