mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 11:20:39 -03:30
Add data-cy attributes for Inventory and Inventory Hosts
This commit is contained in:
parent
03cfb7bf9a
commit
8fa38d1a2e
@ -54,7 +54,11 @@ function InventoryDetail({ inventory, i18n }) {
|
||||
return (
|
||||
<CardBody>
|
||||
<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`Description`)} value={inventory.description} />
|
||||
<Detail label={i18n._(t`Type`)} value={i18n._(t`Inventory`)} />
|
||||
|
||||
@ -46,7 +46,11 @@ function InventoryGroupDetail({ i18n, inventoryGroup }) {
|
||||
return (
|
||||
<CardBody>
|
||||
<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} />
|
||||
<VariablesDetail
|
||||
label={i18n._(t`Variables`)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user