From 8301254f57359e413951496cb644809bc465975e Mon Sep 17 00:00:00 2001 From: Daniel Sami Date: Tue, 3 Mar 2020 16:03:16 -0500 Subject: [PATCH] further tags --- awx/ui_next/src/components/DetailList/UserDateDetail.jsx | 3 ++- awx/ui_next/src/screens/Host/HostDetail/HostDetail.jsx | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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" />