diff --git a/awx/ui_next/src/components/DetailList/UserDateDetail.jsx b/awx/ui_next/src/components/DetailList/UserDateDetail.jsx index bb4471d703..589c9b64f6 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 4f9f5b3348..84e85130b2 100644 --- a/awx/ui_next/src/screens/Host/HostDetail/HostDetail.jsx +++ b/awx/ui_next/src/screens/Host/HostDetail/HostDetail.jsx @@ -104,11 +104,13 @@ function HostDetail({ host, i18n, onUpdateHost }) { date={created} label={i18n._(t`Created`)} user={created_by} + dataCy="host-created-by" />