mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 18:37:39 -02:30
Add data-cy attributes for Inventory and Inventory Hosts
This commit is contained in:
@@ -54,7 +54,11 @@ function InventoryDetail({ inventory, i18n }) {
|
|||||||
return (
|
return (
|
||||||
<CardBody>
|
<CardBody>
|
||||||
<DetailList>
|
<DetailList>
|
||||||
<Detail label={i18n._(t`Name`)} value={inventory.name} />
|
<Detail
|
||||||
|
label={i18n._(t`Name`)}
|
||||||
|
value={inventory.name}
|
||||||
|
dataCy="inventory-detail-name"
|
||||||
|
/>
|
||||||
<Detail label={i18n._(t`Activity`)} value="Coming soon" />
|
<Detail label={i18n._(t`Activity`)} value="Coming soon" />
|
||||||
<Detail label={i18n._(t`Description`)} value={inventory.description} />
|
<Detail label={i18n._(t`Description`)} value={inventory.description} />
|
||||||
<Detail label={i18n._(t`Type`)} value={i18n._(t`Inventory`)} />
|
<Detail label={i18n._(t`Type`)} value={i18n._(t`Inventory`)} />
|
||||||
|
|||||||
@@ -46,7 +46,11 @@ function InventoryGroupDetail({ i18n, inventoryGroup }) {
|
|||||||
return (
|
return (
|
||||||
<CardBody>
|
<CardBody>
|
||||||
<DetailList gutter="sm">
|
<DetailList gutter="sm">
|
||||||
<Detail label={i18n._(t`Name`)} value={name} />
|
<Detail
|
||||||
|
label={i18n._(t`Name`)}
|
||||||
|
value={name}
|
||||||
|
dataCy="inventory-group-detail-name"
|
||||||
|
/>
|
||||||
<Detail label={i18n._(t`Description`)} value={description} />
|
<Detail label={i18n._(t`Description`)} value={description} />
|
||||||
<VariablesDetail
|
<VariablesDetail
|
||||||
label={i18n._(t`Variables`)}
|
label={i18n._(t`Variables`)}
|
||||||
|
|||||||
Reference in New Issue
Block a user