mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Merge pull request #5706 from appuk/apurva-new-ids
Add data-cy attributes for Inventory and Inventory Hosts
Reviewed-by: Jake McDermott <yo@jakemcdermott.me>
https://github.com/jakemcdermott
This commit is contained in:
commit
c2fe3fcf13
@ -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