[SECURITY_SOLUTION] Host Details Tests need to wait for title component after loading (#75748)

This commit is contained in:
Kevin Logan 2020-08-24 11:16:18 -04:00 committed by GitHub
parent d5a698475c
commit 6f6566310a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,9 +81,11 @@ export const EndpointDetailsFlyout = memo(() => {
>
<EuiFlyoutHeader hasBorder>
<EuiTitle size="s">
<h2 data-test-subj="endpointDetailsFlyoutTitle">
{loading ? <EuiLoadingContent lines={1} /> : details?.host?.hostname}
</h2>
{loading ? (
<EuiLoadingContent lines={1} />
) : (
<h2 data-test-subj="endpointDetailsFlyoutTitle"> {details?.host?.hostname} </h2>
)}
</EuiTitle>
</EuiFlyoutHeader>
{details === undefined ? (