Skip to content

Commit

Permalink
[Security Solution] bring back event renderer in document details fly…
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeOberti authored Apr 5, 2024
1 parent 2005cef commit c96b967
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
EVENT_CATEGORY_DESCRIPTION_TEST_ID,
REASON_TITLE_TEST_ID,
MITRE_ATTACK_TITLE_TEST_ID,
EVENT_RENDERER_TEST_ID,
} from './test_ids';
import { TestProviders } from '../../../../common/mock';
import { AboutSection } from './about_section';
Expand Down Expand Up @@ -111,6 +112,8 @@ describe('<AboutSection />', () => {
expect(
queryByTestId(`${EVENT_CATEGORY_DESCRIPTION_TEST_ID}-behavior`)
).not.toBeInTheDocument();

expect(getByTestId(EVENT_RENDERER_TEST_ID)).toBeInTheDocument();
});
});

Expand All @@ -136,6 +139,8 @@ describe('<AboutSection />', () => {
expect(queryByTestId(EVENT_KIND_DESCRIPTION_TEST_ID)).not.toBeInTheDocument();

expect(getByTestId(`${EVENT_CATEGORY_DESCRIPTION_TEST_ID}-behavior`)).toBeInTheDocument();

expect(getByTestId(EVENT_RENDERER_TEST_ID)).toBeInTheDocument();
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { useRightPanelContext } from '../context';
import { isEcsAllowedValue } from '../utils/event_utils';
import { EventCategoryDescription } from './event_category_description';
import { EventKindDescription } from './event_kind_description';
import { EventRenderer } from './event_renderer';

const KEY = 'about';

Expand Down Expand Up @@ -53,6 +54,7 @@ export const AboutSection: FC = memo(() => {
// if event kind is not event, show a higher level description on event kind
<EventKindDescription eventKind={eventKind} />
))}
<EventRenderer />
</>
);

Expand Down

0 comments on commit c96b967

Please sign in to comment.