diff --git a/awx/ui_next/src/components/DetailList/UserDateDetail.jsx b/awx/ui_next/src/components/DetailList/UserDateDetail.jsx index bb4471d703..b16e03c147 100644 --- a/awx/ui_next/src/components/DetailList/UserDateDetail.jsx +++ b/awx/ui_next/src/components/DetailList/UserDateDetail.jsx @@ -6,12 +6,13 @@ import { formatDateString } from '@util/dates'; import Detail from './Detail'; import { SummaryFieldUser } from '../../types'; -function UserDateDetail({ label, date, user }) { +function UserDateDetail({ label, date, user, dataCy = null }) { const dateStr = formatDateString(date); const username = user ? user.username : ''; return ( diff --git a/awx/ui_next/src/screens/Host/HostDetail/HostDetail.jsx b/awx/ui_next/src/screens/Host/HostDetail/HostDetail.jsx index 2cedbaa6e0..41a2dec2a8 100644 --- a/awx/ui_next/src/screens/Host/HostDetail/HostDetail.jsx +++ b/awx/ui_next/src/screens/Host/HostDetail/HostDetail.jsx @@ -66,7 +66,7 @@ function HostDetail({ i18n, host }) { - + } @@ -74,6 +74,7 @@ function HostDetail({ i18n, host }) { {inventory.name} @@ -84,11 +85,13 @@ function HostDetail({ i18n, host }) { date={created} label={i18n._(t`Created`)} user={created_by} + dataCy="host-created-by" />