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:
softwarefactory-project-zuul[bot] 2020-01-21 17:57:41 +00:00 committed by GitHub
commit c2fe3fcf13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -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`)} />

View File

@ -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`)}