Skip to content

Commit

Permalink
[SECURITY_SOLUTION] Host Details Tests need to wait for title compone…
Browse files Browse the repository at this point in the history
…nt after loading (#75748)
  • Loading branch information
kevinlog committed Aug 24, 2020
1 parent d5a6984 commit 6f65663
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? (
Expand Down

0 comments on commit 6f65663

Please sign in to comment.