diff --git a/x-pack/plugins/security_solution/public/flyout/document_details/right/components/correlations_overview.test.tsx b/x-pack/plugins/security_solution/public/flyout/document_details/right/components/correlations_overview.test.tsx
index c187631f7abb2..71292b73a68e0 100644
--- a/x-pack/plugins/security_solution/public/flyout/document_details/right/components/correlations_overview.test.tsx
+++ b/x-pack/plugins/security_solution/public/flyout/document_details/right/components/correlations_overview.test.tsx
@@ -22,8 +22,8 @@ import {
CORRELATIONS_RELATED_CASES_TEST_ID,
CORRELATIONS_SUPPRESSED_ALERTS_TEST_ID,
CORRELATIONS_TEST_ID,
+ SUMMARY_ROW_BUTTON_TEST_ID,
SUMMARY_ROW_TEXT_TEST_ID,
- SUMMARY_ROW_VALUE_TEST_ID,
} from './test_ids';
import { useShowRelatedAlertsByAncestry } from '../../shared/hooks/use_show_related_alerts_by_ancestry';
import { useShowRelatedAlertsBySameSourceEvent } from '../../shared/hooks/use_show_related_alerts_by_same_source_event';
@@ -59,32 +59,32 @@ const TITLE_LINK_TEST_ID = EXPANDABLE_PANEL_HEADER_TITLE_LINK_TEST_ID(CORRELATIO
const TITLE_ICON_TEST_ID = EXPANDABLE_PANEL_HEADER_TITLE_ICON_TEST_ID(CORRELATIONS_TEST_ID);
const TITLE_TEXT_TEST_ID = EXPANDABLE_PANEL_HEADER_TITLE_TEXT_TEST_ID(CORRELATIONS_TEST_ID);
-const SUPPRESSED_ALERTS_TEXT_TEST_ID = SUMMARY_ROW_VALUE_TEST_ID(
+const SUPPRESSED_ALERTS_TEXT_TEST_ID = SUMMARY_ROW_TEXT_TEST_ID(
CORRELATIONS_SUPPRESSED_ALERTS_TEST_ID
);
-const SUPPRESSED_ALERTS_VALUE_TEST_ID = SUMMARY_ROW_TEXT_TEST_ID(
+const SUPPRESSED_ALERTS_VALUE_TEST_ID = SUMMARY_ROW_BUTTON_TEST_ID(
CORRELATIONS_SUPPRESSED_ALERTS_TEST_ID
);
const RELATED_ALERTS_BY_ANCESTRY_TEXT_TEST_ID = SUMMARY_ROW_TEXT_TEST_ID(
CORRELATIONS_RELATED_ALERTS_BY_ANCESTRY_TEST_ID
);
-const RELATED_ALERTS_BY_ANCESTRY_VALUE_TEST_ID = SUMMARY_ROW_VALUE_TEST_ID(
+const RELATED_ALERTS_BY_ANCESTRY_VALUE_TEST_ID = SUMMARY_ROW_BUTTON_TEST_ID(
CORRELATIONS_RELATED_ALERTS_BY_ANCESTRY_TEST_ID
);
const RELATED_ALERTS_BY_SAME_SOURCE_EVENT_TEXT_TEST_ID = SUMMARY_ROW_TEXT_TEST_ID(
CORRELATIONS_RELATED_ALERTS_BY_SAME_SOURCE_EVENT_TEST_ID
);
-const RELATED_ALERTS_BY_SAME_SOURCE_EVENT_VALUE_TEST_ID = SUMMARY_ROW_VALUE_TEST_ID(
+const RELATED_ALERTS_BY_SAME_SOURCE_EVENT_VALUE_TEST_ID = SUMMARY_ROW_BUTTON_TEST_ID(
CORRELATIONS_RELATED_ALERTS_BY_SAME_SOURCE_EVENT_TEST_ID
);
const RELATED_ALERTS_BY_SESSION_TEXT_TEST_ID = SUMMARY_ROW_TEXT_TEST_ID(
CORRELATIONS_RELATED_ALERTS_BY_SESSION_TEST_ID
);
-const RELATED_ALERTS_BY_SESSION_VALUE_TEST_ID = SUMMARY_ROW_VALUE_TEST_ID(
+const RELATED_ALERTS_BY_SESSION_VALUE_TEST_ID = SUMMARY_ROW_BUTTON_TEST_ID(
CORRELATIONS_RELATED_ALERTS_BY_SESSION_TEST_ID
);
const RELATED_CASES_TEXT_TEST_ID = SUMMARY_ROW_TEXT_TEST_ID(CORRELATIONS_RELATED_CASES_TEST_ID);
-const RELATED_CASES_VALUE_TEST_ID = SUMMARY_ROW_VALUE_TEST_ID(CORRELATIONS_RELATED_CASES_TEST_ID);
+const RELATED_CASES_VALUE_TEST_ID = SUMMARY_ROW_BUTTON_TEST_ID(CORRELATIONS_RELATED_CASES_TEST_ID);
const panelContextValue = {
eventId: 'event id',
diff --git a/x-pack/plugins/security_solution/public/flyout/document_details/right/components/insights_summary_row.test.tsx b/x-pack/plugins/security_solution/public/flyout/document_details/right/components/insights_summary_row.test.tsx
index ac3a6cb0f958d..2a721e317781e 100644
--- a/x-pack/plugins/security_solution/public/flyout/document_details/right/components/insights_summary_row.test.tsx
+++ b/x-pack/plugins/security_solution/public/flyout/document_details/right/components/insights_summary_row.test.tsx
@@ -9,30 +9,39 @@ import React from 'react';
import { render } from '@testing-library/react';
import { __IntlProvider as IntlProvider } from '@kbn/i18n-react';
import { InsightsSummaryRow } from './insights_summary_row';
+import { useDocumentDetailsContext } from '../../shared/context';
+import { useExpandableFlyoutApi } from '@kbn/expandable-flyout';
+import { DocumentDetailsLeftPanelKey } from '../../shared/constants/panel_keys';
+import { LeftPanelInsightsTab } from '../../left';
+
+jest.mock('@kbn/expandable-flyout');
+jest.mock('../../shared/context');
+
+const mockOpenLeftPanel = jest.fn();
+const scopeId = 'scopeId';
+const eventId = 'eventId';
+const indexName = 'indexName';
const testId = 'test';
const textTestId = `${testId}Text`;
+const buttonTestId = `${testId}Button`;
const valueTestId = `${testId}Value`;
const loadingTestId = `${testId}Loading`;
describe('', () => {
- it('should render by default', () => {
- const { getByTestId } = render(
-
- {'value for this'}}
- color={'rgb(189,39,30)'}
- data-test-subj={testId}
- />
-
- );
+ beforeEach(() => {
+ jest.clearAllMocks();
- expect(getByTestId(textTestId)).toHaveTextContent('this is a test for red');
- expect(getByTestId(valueTestId)).toHaveTextContent('value for this');
+ (useDocumentDetailsContext as jest.Mock).mockReturnValue({
+ eventId,
+ indexName,
+ scopeId,
+ isPreviewMode: false,
+ });
+ (useExpandableFlyoutApi as jest.Mock).mockReturnValue({ openLeftPanel: mockOpenLeftPanel });
});
- it('should render loading skeletton if loading is true', () => {
+ it('should render loading skeleton if loading is true', () => {
const { getByTestId } = render(
', () => {
expect(container).toBeEmptyDOMElement();
});
+
+ it('should render the value component', () => {
+ const { getByTestId, queryByTestId } = render(
+
+ {'value for this'}}
+ data-test-subj={testId}
+ />
+
+ );
+
+ expect(getByTestId(textTestId)).toHaveTextContent('this is a test for red');
+ expect(getByTestId(valueTestId)).toHaveTextContent('value for this');
+ expect(queryByTestId(buttonTestId)).not.toBeInTheDocument();
+ });
+
+ it('should render the value as EuiBadge and EuiButtonEmpty', () => {
+ const { getByTestId, queryByTestId } = render(
+
+
+
+ );
+
+ expect(getByTestId(textTestId)).toHaveTextContent('this is a test for red');
+ expect(getByTestId(buttonTestId)).toHaveTextContent('2');
+ expect(queryByTestId(valueTestId)).not.toBeInTheDocument();
+ });
+
+ it('should render big numbers formatted correctly', () => {
+ const { getByTestId } = render(
+
+
+
+ );
+
+ expect(getByTestId(buttonTestId)).toHaveTextContent('2k');
+ });
+
+ it('should open the expanded section to the correct tab when the number is clicked', () => {
+ const { getByTestId } = render(
+
+
+
+ );
+ getByTestId(buttonTestId).click();
+
+ expect(mockOpenLeftPanel).toHaveBeenCalledWith({
+ id: DocumentDetailsLeftPanelKey,
+ path: {
+ tab: LeftPanelInsightsTab,
+ subTab: 'subTab',
+ },
+ params: {
+ id: eventId,
+ indexName,
+ scopeId,
+ },
+ });
+ });
+
+ it('should disabled the click when in preview mode', () => {
+ (useDocumentDetailsContext as jest.Mock).mockReturnValue({
+ eventId,
+ indexName,
+ scopeId,
+ isPreviewMode: true,
+ });
+
+ const { getByTestId } = render(
+
+
+
+ );
+ const button = getByTestId(buttonTestId);
+
+ expect(button).toHaveAttribute('disabled');
+
+ button.click();
+ expect(mockOpenLeftPanel).not.toHaveBeenCalled();
+ });
});
diff --git a/x-pack/plugins/security_solution/public/flyout/document_details/right/components/insights_summary_row.tsx b/x-pack/plugins/security_solution/public/flyout/document_details/right/components/insights_summary_row.tsx
index a889ebca16e90..56a19d2eca965 100644
--- a/x-pack/plugins/security_solution/public/flyout/document_details/right/components/insights_summary_row.tsx
+++ b/x-pack/plugins/security_solution/public/flyout/document_details/right/components/insights_summary_row.tsx
@@ -6,13 +6,10 @@
*/
import type { ReactElement, VFC } from 'react';
-import { useCallback } from 'react';
-import { useMemo } from 'react';
-import React from 'react';
+import React, { useMemo, useCallback } from 'react';
import { css } from '@emotion/react';
import { i18n } from '@kbn/i18n';
-import { EuiButtonEmpty } from '@elastic/eui';
-import { EuiBadge, EuiFlexGroup, EuiFlexItem, EuiSkeletonText } from '@elastic/eui';
+import { EuiBadge, EuiButtonEmpty, EuiFlexGroup, EuiFlexItem, EuiSkeletonText } from '@elastic/eui';
import { useExpandableFlyoutApi } from '@kbn/expandable-flyout';
import { useDocumentDetailsContext } from '../../shared/context';
import { DocumentDetailsLeftPanelKey } from '../../shared/constants/panel_keys';
@@ -87,9 +84,14 @@ export const InsightsSummaryRow: VFC = ({
});
}, [eventId, expandedSubTab, indexName, openLeftPanel, scopeId]);
- const buttonDataTestSubj = useMemo(() => `${dataTestSubj}Button`, [dataTestSubj]);
- const button = useMemo(
- () => (
+ const textDataTestSubj = useMemo(() => `${dataTestSubj}Text`, [dataTestSubj]);
+ const loadingDataTestSubj = useMemo(() => `${dataTestSubj}Loading`, [dataTestSubj]);
+
+ const button = useMemo(() => {
+ const buttonDataTestSubj = `${dataTestSubj}Button`;
+ const valueDataTestSubj = `${dataTestSubj}Value`;
+
+ return (
<>
{typeof value === 'number' ? (
@@ -105,14 +107,12 @@ export const InsightsSummaryRow: VFC = ({
) : (
- value
+ {value}
)}
>
- ),
- [buttonDataTestSubj, isPreviewMode, onClick, value]
- );
+ );
+ }, [dataTestSubj, isPreviewMode, onClick, value]);
- const loadingDataTestSubj = useMemo(() => `${dataTestSubj}Loading`, [dataTestSubj]);
if (loading) {
return (
= ({
return null;
}
- const textDataTestSubj = `${dataTestSubj}Text`;
- const valueDataTestSubj = `${dataTestSubj}Value`;
-
return (
= ({
>
{text}
-
- {button}
-
+ {button}
);
};
diff --git a/x-pack/plugins/security_solution/public/flyout/document_details/right/components/related_alerts_by_ancestry.test.tsx b/x-pack/plugins/security_solution/public/flyout/document_details/right/components/related_alerts_by_ancestry.test.tsx
index 57b8ab2ad27db..38efe27b16ea9 100644
--- a/x-pack/plugins/security_solution/public/flyout/document_details/right/components/related_alerts_by_ancestry.test.tsx
+++ b/x-pack/plugins/security_solution/public/flyout/document_details/right/components/related_alerts_by_ancestry.test.tsx
@@ -10,10 +10,9 @@ import { __IntlProvider as IntlProvider } from '@kbn/i18n-react';
import { render } from '@testing-library/react';
import {
SUMMARY_ROW_TEXT_TEST_ID,
- SUMMARY_ROW_VALUE_TEST_ID,
SUMMARY_ROW_LOADING_TEST_ID,
CORRELATIONS_RELATED_ALERTS_BY_ANCESTRY_TEST_ID,
- CORRELATIONS_RELATED_ALERTS_BY_ANCESTRY_BUTTON_TEST_ID,
+ SUMMARY_ROW_BUTTON_TEST_ID,
} from './test_ids';
import { RelatedAlertsByAncestry } from './related_alerts_by_ancestry';
import { useFetchRelatedAlertsByAncestry } from '../../shared/hooks/use_fetch_related_alerts_by_ancestry';
@@ -35,7 +34,7 @@ const eventId = 'eventId';
const indexName = 'indexName';
const TEXT_TEST_ID = SUMMARY_ROW_TEXT_TEST_ID(CORRELATIONS_RELATED_ALERTS_BY_ANCESTRY_TEST_ID);
-const VALUE_TEST_ID = SUMMARY_ROW_VALUE_TEST_ID(CORRELATIONS_RELATED_ALERTS_BY_ANCESTRY_TEST_ID);
+const BUTTON_TEST_ID = SUMMARY_ROW_BUTTON_TEST_ID(CORRELATIONS_RELATED_ALERTS_BY_ANCESTRY_TEST_ID);
const LOADING_TEST_ID = SUMMARY_ROW_LOADING_TEST_ID(
CORRELATIONS_RELATED_ALERTS_BY_ANCESTRY_TEST_ID
);
@@ -54,6 +53,7 @@ describe('', () => {
(useDocumentDetailsContext as jest.Mock).mockReturnValue({
eventId,
indexName,
+ scopeId,
isPreviewMode: false,
});
(useExpandableFlyoutApi as jest.Mock).mockReturnValue({ openLeftPanel: mockOpenLeftPanel });
@@ -68,7 +68,7 @@ describe('', () => {
const { getByTestId } = renderRelatedAlertsByAncestry();
expect(getByTestId(TEXT_TEST_ID)).toHaveTextContent('Alert related by ancestry');
- expect(getByTestId(VALUE_TEST_ID)).toHaveTextContent('1');
+ expect(getByTestId(BUTTON_TEST_ID)).toHaveTextContent('1');
});
it('should render multiple related alerts correctly', () => {
@@ -80,19 +80,7 @@ describe('', () => {
const { getByTestId } = renderRelatedAlertsByAncestry();
expect(getByTestId(TEXT_TEST_ID)).toHaveTextContent('Alerts related by ancestry');
- expect(getByTestId(VALUE_TEST_ID)).toHaveTextContent('2');
- });
-
- it('should render big number of related alerts correctly', () => {
- (useFetchRelatedAlertsByAncestry as jest.Mock).mockReturnValue({
- loading: false,
- error: false,
- dataCount: 2000,
- });
-
- const { getByTestId } = renderRelatedAlertsByAncestry();
- expect(getByTestId(TEXT_TEST_ID)).toHaveTextContent('Alerts related by ancestry');
- expect(getByTestId(VALUE_TEST_ID)).toHaveTextContent('2k');
+ expect(getByTestId(BUTTON_TEST_ID)).toHaveTextContent('2');
});
it('should render loading skeleton', () => {
@@ -122,7 +110,7 @@ describe('', () => {
});
const { getByTestId } = renderRelatedAlertsByAncestry();
- getByTestId(CORRELATIONS_RELATED_ALERTS_BY_ANCESTRY_BUTTON_TEST_ID).click();
+ getByTestId(BUTTON_TEST_ID).click();
expect(mockOpenLeftPanel).toHaveBeenCalledWith({
id: DocumentDetailsLeftPanelKey,
@@ -137,25 +125,4 @@ describe('', () => {
},
});
});
-
- it('should disabled the click when in preview mode', () => {
- (useDocumentDetailsContext as jest.Mock).mockReturnValue({
- eventId,
- indexName,
- isPreviewMode: true,
- });
- (useFetchRelatedAlertsByAncestry as jest.Mock).mockReturnValue({
- loading: false,
- error: false,
- dataCount: 1,
- });
-
- const { getByTestId } = renderRelatedAlertsByAncestry();
- const button = getByTestId(CORRELATIONS_RELATED_ALERTS_BY_ANCESTRY_BUTTON_TEST_ID);
-
- expect(button).toHaveAttribute('disabled');
-
- button.click();
- expect(mockOpenLeftPanel).not.toHaveBeenCalled();
- });
});
diff --git a/x-pack/plugins/security_solution/public/flyout/document_details/right/components/related_alerts_by_same_source_event.test.tsx b/x-pack/plugins/security_solution/public/flyout/document_details/right/components/related_alerts_by_same_source_event.test.tsx
index 194809e040cad..80e7c99a60917 100644
--- a/x-pack/plugins/security_solution/public/flyout/document_details/right/components/related_alerts_by_same_source_event.test.tsx
+++ b/x-pack/plugins/security_solution/public/flyout/document_details/right/components/related_alerts_by_same_source_event.test.tsx
@@ -10,10 +10,9 @@ import { __IntlProvider as IntlProvider } from '@kbn/i18n-react';
import { render } from '@testing-library/react';
import {
SUMMARY_ROW_TEXT_TEST_ID,
- SUMMARY_ROW_VALUE_TEST_ID,
SUMMARY_ROW_LOADING_TEST_ID,
CORRELATIONS_RELATED_ALERTS_BY_SAME_SOURCE_EVENT_TEST_ID,
- CORRELATIONS_RELATED_ALERTS_BY_SAME_SOURCE_EVENT_BUTTON_TEST_ID,
+ SUMMARY_ROW_BUTTON_TEST_ID,
} from './test_ids';
import { useFetchRelatedAlertsBySameSourceEvent } from '../../shared/hooks/use_fetch_related_alerts_by_same_source_event';
import { RelatedAlertsBySameSourceEvent } from './related_alerts_by_same_source_event';
@@ -36,7 +35,7 @@ const indexName = 'indexName';
const TEXT_TEST_ID = SUMMARY_ROW_TEXT_TEST_ID(
CORRELATIONS_RELATED_ALERTS_BY_SAME_SOURCE_EVENT_TEST_ID
);
-const VALUE_TEST_ID = SUMMARY_ROW_VALUE_TEST_ID(
+const BUTTON_TEST_ID = SUMMARY_ROW_BUTTON_TEST_ID(
CORRELATIONS_RELATED_ALERTS_BY_SAME_SOURCE_EVENT_TEST_ID
);
const LOADING_TEST_ID = SUMMARY_ROW_LOADING_TEST_ID(
@@ -57,6 +56,7 @@ describe('', () => {
(useDocumentDetailsContext as jest.Mock).mockReturnValue({
eventId,
indexName,
+ scopeId,
isPreviewMode: false,
});
(useExpandableFlyoutApi as jest.Mock).mockReturnValue({ openLeftPanel: mockOpenLeftPanel });
@@ -71,7 +71,7 @@ describe('', () => {
const { getByTestId } = renderRelatedAlertsBySameSourceEvent();
expect(getByTestId(TEXT_TEST_ID)).toHaveTextContent('Alert related by source event');
- expect(getByTestId(VALUE_TEST_ID)).toHaveTextContent('1');
+ expect(getByTestId(BUTTON_TEST_ID)).toHaveTextContent('1');
});
it('should render multiple related alerts correctly', () => {
@@ -83,19 +83,7 @@ describe('', () => {
const { getByTestId } = renderRelatedAlertsBySameSourceEvent();
expect(getByTestId(TEXT_TEST_ID)).toHaveTextContent('Alerts related by source event');
- expect(getByTestId(VALUE_TEST_ID)).toHaveTextContent('2');
- });
-
- it('should render big number of related alerts correctly', () => {
- (useFetchRelatedAlertsBySameSourceEvent as jest.Mock).mockReturnValue({
- loading: false,
- error: false,
- dataCount: 2000,
- });
-
- const { getByTestId } = renderRelatedAlertsBySameSourceEvent();
- expect(getByTestId(TEXT_TEST_ID)).toHaveTextContent('Alerts related by source event');
- expect(getByTestId(VALUE_TEST_ID)).toHaveTextContent('2k');
+ expect(getByTestId(BUTTON_TEST_ID)).toHaveTextContent('2');
});
it('should render loading skeleton', () => {
@@ -116,7 +104,7 @@ describe('', () => {
const { getByTestId } = renderRelatedAlertsBySameSourceEvent();
expect(getByTestId(TEXT_TEST_ID)).toHaveTextContent('Alerts related by source event');
- expect(getByTestId(VALUE_TEST_ID)).toHaveTextContent('0');
+ expect(getByTestId(BUTTON_TEST_ID)).toHaveTextContent('0');
});
it('should open the expanded section to the correct tab when the number is clicked', () => {
@@ -127,7 +115,7 @@ describe('', () => {
});
const { getByTestId } = renderRelatedAlertsBySameSourceEvent();
- getByTestId(CORRELATIONS_RELATED_ALERTS_BY_SAME_SOURCE_EVENT_BUTTON_TEST_ID).click();
+ getByTestId(BUTTON_TEST_ID).click();
expect(mockOpenLeftPanel).toHaveBeenCalledWith({
id: DocumentDetailsLeftPanelKey,
@@ -142,25 +130,4 @@ describe('', () => {
},
});
});
-
- it('should disabled the click when in preview mode', () => {
- (useDocumentDetailsContext as jest.Mock).mockReturnValue({
- eventId,
- indexName,
- isPreviewMode: true,
- });
- (useFetchRelatedAlertsBySameSourceEvent as jest.Mock).mockReturnValue({
- loading: false,
- error: true,
- dataCount: 1,
- });
-
- const { getByTestId } = renderRelatedAlertsBySameSourceEvent();
- const button = getByTestId(CORRELATIONS_RELATED_ALERTS_BY_SAME_SOURCE_EVENT_BUTTON_TEST_ID);
-
- expect(button).toHaveAttribute('disabled');
-
- button.click();
- expect(mockOpenLeftPanel).not.toHaveBeenCalled();
- });
});
diff --git a/x-pack/plugins/security_solution/public/flyout/document_details/right/components/related_alerts_by_session.test.tsx b/x-pack/plugins/security_solution/public/flyout/document_details/right/components/related_alerts_by_session.test.tsx
index 7ab039f92e0fb..4aeeef1feb8b1 100644
--- a/x-pack/plugins/security_solution/public/flyout/document_details/right/components/related_alerts_by_session.test.tsx
+++ b/x-pack/plugins/security_solution/public/flyout/document_details/right/components/related_alerts_by_session.test.tsx
@@ -10,10 +10,9 @@ import { __IntlProvider as IntlProvider } from '@kbn/i18n-react';
import { render } from '@testing-library/react';
import {
SUMMARY_ROW_TEXT_TEST_ID,
- SUMMARY_ROW_VALUE_TEST_ID,
SUMMARY_ROW_LOADING_TEST_ID,
CORRELATIONS_RELATED_ALERTS_BY_SESSION_TEST_ID,
- CORRELATIONS_RELATED_ALERTS_BY_SESSION_BUTTON_TEST_ID,
+ SUMMARY_ROW_BUTTON_TEST_ID,
} from './test_ids';
import { RelatedAlertsBySession } from './related_alerts_by_session';
import { useFetchRelatedAlertsBySession } from '../../shared/hooks/use_fetch_related_alerts_by_session';
@@ -34,7 +33,7 @@ const entityId = 'entityId';
const scopeId = 'scopeId';
const TEXT_TEST_ID = SUMMARY_ROW_TEXT_TEST_ID(CORRELATIONS_RELATED_ALERTS_BY_SESSION_TEST_ID);
-const VALUE_TEST_ID = SUMMARY_ROW_VALUE_TEST_ID(CORRELATIONS_RELATED_ALERTS_BY_SESSION_TEST_ID);
+const BUTTON_TEST_ID = SUMMARY_ROW_BUTTON_TEST_ID(CORRELATIONS_RELATED_ALERTS_BY_SESSION_TEST_ID);
const LOADING_TEST_ID = SUMMARY_ROW_LOADING_TEST_ID(CORRELATIONS_RELATED_ALERTS_BY_SESSION_TEST_ID);
const renderRelatedAlertsBySession = () =>
@@ -51,6 +50,7 @@ describe('', () => {
(useDocumentDetailsContext as jest.Mock).mockReturnValue({
eventId,
indexName,
+ scopeId,
isPreviewMode: false,
});
(useExpandableFlyoutApi as jest.Mock).mockReturnValue({ openLeftPanel: mockOpenLeftPanel });
@@ -65,7 +65,7 @@ describe('', () => {
const { getByTestId } = renderRelatedAlertsBySession();
expect(getByTestId(TEXT_TEST_ID)).toHaveTextContent('Alert related by session');
- expect(getByTestId(VALUE_TEST_ID)).toHaveTextContent('1');
+ expect(getByTestId(BUTTON_TEST_ID)).toHaveTextContent('1');
});
it('should render multiple related alerts correctly', () => {
@@ -77,19 +77,7 @@ describe('', () => {
const { getByTestId } = renderRelatedAlertsBySession();
expect(getByTestId(TEXT_TEST_ID)).toHaveTextContent('Alerts related by session');
- expect(getByTestId(VALUE_TEST_ID)).toHaveTextContent('2');
- });
-
- it('should render big number of related alerts correctly', () => {
- (useFetchRelatedAlertsBySession as jest.Mock).mockReturnValue({
- loading: false,
- error: false,
- dataCount: 2000,
- });
-
- const { getByTestId } = renderRelatedAlertsBySession();
- expect(getByTestId(TEXT_TEST_ID)).toHaveTextContent('Alerts related by session');
- expect(getByTestId(VALUE_TEST_ID)).toHaveTextContent('2k');
+ expect(getByTestId(BUTTON_TEST_ID)).toHaveTextContent('2');
});
it('should render loading skeleton', () => {
@@ -119,7 +107,7 @@ describe('', () => {
});
const { getByTestId } = renderRelatedAlertsBySession();
- getByTestId(CORRELATIONS_RELATED_ALERTS_BY_SESSION_BUTTON_TEST_ID).click();
+ getByTestId(BUTTON_TEST_ID).click();
expect(mockOpenLeftPanel).toHaveBeenCalledWith({
id: DocumentDetailsLeftPanelKey,
@@ -134,25 +122,4 @@ describe('', () => {
},
});
});
-
- it('should disabled the click when in preview mode', () => {
- (useDocumentDetailsContext as jest.Mock).mockReturnValue({
- eventId,
- indexName,
- isPreviewMode: true,
- });
- (useFetchRelatedAlertsBySession as jest.Mock).mockReturnValue({
- loading: false,
- error: false,
- dataCount: 1,
- });
-
- const { getByTestId } = renderRelatedAlertsBySession();
- const button = getByTestId(CORRELATIONS_RELATED_ALERTS_BY_SESSION_BUTTON_TEST_ID);
-
- expect(button).toHaveAttribute('disabled');
-
- button.click();
- expect(mockOpenLeftPanel).not.toHaveBeenCalled();
- });
});
diff --git a/x-pack/plugins/security_solution/public/flyout/document_details/right/components/related_cases.test.tsx b/x-pack/plugins/security_solution/public/flyout/document_details/right/components/related_cases.test.tsx
index 75a70fbbbb399..e55d0e109d1d7 100644
--- a/x-pack/plugins/security_solution/public/flyout/document_details/right/components/related_cases.test.tsx
+++ b/x-pack/plugins/security_solution/public/flyout/document_details/right/components/related_cases.test.tsx
@@ -12,8 +12,7 @@ import {
CORRELATIONS_RELATED_CASES_TEST_ID,
SUMMARY_ROW_TEXT_TEST_ID,
SUMMARY_ROW_LOADING_TEST_ID,
- SUMMARY_ROW_VALUE_TEST_ID,
- CORRELATIONS_RELATED_CASES_BUTTON_TEST_ID,
+ SUMMARY_ROW_BUTTON_TEST_ID,
} from './test_ids';
import { RelatedCases } from './related_cases';
import { useFetchRelatedCases } from '../../shared/hooks/use_fetch_related_cases';
@@ -33,7 +32,7 @@ const indexName = 'indexName';
const scopeId = 'scopeId';
const TEXT_TEST_ID = SUMMARY_ROW_TEXT_TEST_ID(CORRELATIONS_RELATED_CASES_TEST_ID);
-const VALUE_TEST_ID = SUMMARY_ROW_VALUE_TEST_ID(CORRELATIONS_RELATED_CASES_TEST_ID);
+const BUTTON_TEST_ID = SUMMARY_ROW_BUTTON_TEST_ID(CORRELATIONS_RELATED_CASES_TEST_ID);
const LOADING_TEST_ID = SUMMARY_ROW_LOADING_TEST_ID(CORRELATIONS_RELATED_CASES_TEST_ID);
const renderRelatedCases = () =>
@@ -48,6 +47,7 @@ describe('', () => {
jest.clearAllMocks();
(useDocumentDetailsContext as jest.Mock).mockReturnValue({
+ eventId,
indexName,
scopeId,
isPreviewMode: false,
@@ -64,7 +64,7 @@ describe('', () => {
const { getByTestId } = renderRelatedCases();
expect(getByTestId(TEXT_TEST_ID)).toHaveTextContent('Related case');
- expect(getByTestId(VALUE_TEST_ID)).toHaveTextContent('1');
+ expect(getByTestId(BUTTON_TEST_ID)).toHaveTextContent('1');
});
it('should render multiple related cases correctly', () => {
@@ -76,19 +76,7 @@ describe('', () => {
const { getByTestId } = renderRelatedCases();
expect(getByTestId(TEXT_TEST_ID)).toHaveTextContent('Related cases');
- expect(getByTestId(VALUE_TEST_ID)).toHaveTextContent('2');
- });
-
- it('should render big number of related cases correctly', () => {
- (useFetchRelatedCases as jest.Mock).mockReturnValue({
- loading: false,
- error: false,
- dataCount: 2000,
- });
-
- const { getByTestId } = renderRelatedCases();
- expect(getByTestId(TEXT_TEST_ID)).toHaveTextContent('Related cases');
- expect(getByTestId(VALUE_TEST_ID)).toHaveTextContent('2k');
+ expect(getByTestId(BUTTON_TEST_ID)).toHaveTextContent('2');
});
it('should render loading skeleton', () => {
@@ -118,7 +106,7 @@ describe('', () => {
});
const { getByTestId } = renderRelatedCases();
- getByTestId(CORRELATIONS_RELATED_CASES_BUTTON_TEST_ID).click();
+ getByTestId(BUTTON_TEST_ID).click();
expect(mockOpenLeftPanel).toHaveBeenCalledWith({
id: DocumentDetailsLeftPanelKey,
@@ -133,25 +121,4 @@ describe('', () => {
},
});
});
-
- it('should disabled the click when in preview mode', () => {
- (useDocumentDetailsContext as jest.Mock).mockReturnValue({
- indexName,
- scopeId,
- isPreviewMode: true,
- });
- (useFetchRelatedCases as jest.Mock).mockReturnValue({
- loading: false,
- error: false,
- dataCount: 1,
- });
-
- const { getByTestId } = renderRelatedCases();
- const button = getByTestId(CORRELATIONS_RELATED_CASES_BUTTON_TEST_ID);
-
- expect(button).toHaveAttribute('disabled');
-
- button.click();
- expect(mockOpenLeftPanel).not.toHaveBeenCalled();
- });
});
diff --git a/x-pack/plugins/security_solution/public/flyout/document_details/right/components/suppressed_alerts.test.tsx b/x-pack/plugins/security_solution/public/flyout/document_details/right/components/suppressed_alerts.test.tsx
index 18ce6d871bf21..331283e194ed0 100644
--- a/x-pack/plugins/security_solution/public/flyout/document_details/right/components/suppressed_alerts.test.tsx
+++ b/x-pack/plugins/security_solution/public/flyout/document_details/right/components/suppressed_alerts.test.tsx
@@ -10,10 +10,9 @@ import { __IntlProvider as IntlProvider } from '@kbn/i18n-react';
import { render } from '@testing-library/react';
import {
SUMMARY_ROW_TEXT_TEST_ID,
- SUMMARY_ROW_VALUE_TEST_ID,
CORRELATIONS_SUPPRESSED_ALERTS_TEST_ID,
CORRELATIONS_SUPPRESSED_ALERTS_TECHNICAL_PREVIEW_TEST_ID,
- CORRELATIONS_SUPPRESSED_ALERTS_BUTTON_TEST_ID,
+ SUMMARY_ROW_BUTTON_TEST_ID,
} from './test_ids';
import { SuppressedAlerts } from './suppressed_alerts';
import { isSuppressionRuleInGA } from '../../../../../common/detection_engine/utils';
@@ -30,7 +29,7 @@ jest.mock('../../../../../common/detection_engine/utils', () => ({
}));
const TEXT_TEST_ID = SUMMARY_ROW_TEXT_TEST_ID(CORRELATIONS_SUPPRESSED_ALERTS_TEST_ID);
-const VALUE_TEST_ID = SUMMARY_ROW_VALUE_TEST_ID(CORRELATIONS_SUPPRESSED_ALERTS_TEST_ID);
+const BUTTON_TEST_ID = SUMMARY_ROW_BUTTON_TEST_ID(CORRELATIONS_SUPPRESSED_ALERTS_TEST_ID);
const renderSuppressedAlerts = (alertSuppressionCount: number) =>
render(
@@ -62,7 +61,7 @@ describe('', () => {
const { getByTestId } = renderSuppressedAlerts(1);
expect(getByTestId(TEXT_TEST_ID)).toHaveTextContent('Suppressed alert');
- expect(getByTestId(VALUE_TEST_ID)).toHaveTextContent('1');
+ expect(getByTestId(BUTTON_TEST_ID)).toHaveTextContent('1');
expect(
getByTestId(CORRELATIONS_SUPPRESSED_ALERTS_TECHNICAL_PREVIEW_TEST_ID)
).toBeInTheDocument();
@@ -72,14 +71,7 @@ describe('', () => {
const { getByTestId } = renderSuppressedAlerts(2);
expect(getByTestId(TEXT_TEST_ID)).toHaveTextContent('Suppressed alerts');
- expect(getByTestId(VALUE_TEST_ID)).toHaveTextContent('2');
- });
-
- it('should render big number of suppressed alerts row correctly', () => {
- const { getByTestId } = renderSuppressedAlerts(2000);
-
- expect(getByTestId(TEXT_TEST_ID)).toHaveTextContent('Suppressed alerts');
- expect(getByTestId(VALUE_TEST_ID)).toHaveTextContent('2k');
+ expect(getByTestId(BUTTON_TEST_ID)).toHaveTextContent('2');
});
it('should not render Technical Preview badge if rule type is in GA', () => {
@@ -93,7 +85,7 @@ describe('', () => {
it('should open the expanded section to the correct tab when the number is clicked', () => {
const { getByTestId } = renderSuppressedAlerts(1);
- getByTestId(CORRELATIONS_SUPPRESSED_ALERTS_BUTTON_TEST_ID).click();
+ getByTestId(BUTTON_TEST_ID).click();
expect(mockOpenLeftPanel).toHaveBeenCalledWith({
id: DocumentDetailsLeftPanelKey,
@@ -108,21 +100,4 @@ describe('', () => {
},
});
});
-
- it('should disabled the click when in preview mode', () => {
- (useDocumentDetailsContext as jest.Mock).mockReturnValue({
- eventId,
- indexName,
- scopeId,
- isPreviewMode: true,
- });
-
- const { getByTestId } = renderSuppressedAlerts(1);
- const button = getByTestId(CORRELATIONS_SUPPRESSED_ALERTS_BUTTON_TEST_ID);
-
- expect(button).toHaveAttribute('disabled');
-
- button.click();
- expect(mockOpenLeftPanel).not.toHaveBeenCalled();
- });
});
diff --git a/x-pack/plugins/security_solution/public/flyout/document_details/right/components/test_ids.ts b/x-pack/plugins/security_solution/public/flyout/document_details/right/components/test_ids.ts
index ce4660f12db27..959f8f106bb08 100644
--- a/x-pack/plugins/security_solution/public/flyout/document_details/right/components/test_ids.ts
+++ b/x-pack/plugins/security_solution/public/flyout/document_details/right/components/test_ids.ts
@@ -106,6 +106,7 @@ export const INSIGHTS_CONTENT_TEST_ID = INSIGHTS_TEST_ID + CONTENT_TEST_ID;
export const SUMMARY_ROW_LOADING_TEST_ID = (dataTestSubj: string) => `${dataTestSubj}Loading`;
export const SUMMARY_ROW_TEXT_TEST_ID = (dataTestSubj: string) => `${dataTestSubj}Text`;
export const SUMMARY_ROW_VALUE_TEST_ID = (dataTestSubj: string) => `${dataTestSubj}Value`;
+export const SUMMARY_ROW_BUTTON_TEST_ID = (dataTestSubj: string) => `${dataTestSubj}Button`;
/* Entities */
@@ -148,37 +149,23 @@ export const ENTITIES_HOST_OVERVIEW_VULNERABILITIES_TEST_ID =
export const INSIGHTS_THREAT_INTELLIGENCE_TEST_ID = `${PREFIX}InsightsThreatIntelligence` as const;
export const INSIGHTS_THREAT_INTELLIGENCE_THREAT_MATCHES_TEST_ID =
`${INSIGHTS_THREAT_INTELLIGENCE_TEST_ID}ThreatMatches` as const;
-export const INSIGHTS_THREAT_INTELLIGENCE_THREAT_MATCHES_BUTTON_TEST_ID =
- `${INSIGHTS_THREAT_INTELLIGENCE_THREAT_MATCHES_TEST_ID}Button` as const;
export const INSIGHTS_THREAT_INTELLIGENCE_ENRICHED_WITH_THREAT_INTELLIGENCE_TEST_ID =
`${INSIGHTS_THREAT_INTELLIGENCE_TEST_ID}EnrichedWithThreatIntelligence` as const;
-export const INSIGHTS_THREAT_INTELLIGENCE_ENRICHED_WITH_THREAT_INTELLIGENCE_BUTTON_TEST_ID =
- `${INSIGHTS_THREAT_INTELLIGENCE_ENRICHED_WITH_THREAT_INTELLIGENCE_TEST_ID}Button` as const;
/* Correlations */
export const CORRELATIONS_TEST_ID = `${PREFIX}Correlations` as const;
export const CORRELATIONS_SUPPRESSED_ALERTS_TEST_ID =
`${CORRELATIONS_TEST_ID}SuppressedAlerts` as const;
-export const CORRELATIONS_SUPPRESSED_ALERTS_BUTTON_TEST_ID =
- `${CORRELATIONS_SUPPRESSED_ALERTS_TEST_ID}Button` as const;
export const CORRELATIONS_SUPPRESSED_ALERTS_TECHNICAL_PREVIEW_TEST_ID =
`${CORRELATIONS_SUPPRESSED_ALERTS_TEST_ID}TechnicalPreview` as const;
export const CORRELATIONS_RELATED_CASES_TEST_ID = `${CORRELATIONS_TEST_ID}RelatedCases` as const;
-export const CORRELATIONS_RELATED_CASES_BUTTON_TEST_ID =
- `${CORRELATIONS_RELATED_CASES_TEST_ID}Button` as const;
export const CORRELATIONS_RELATED_ALERTS_BY_SESSION_TEST_ID =
`${CORRELATIONS_TEST_ID}RelatedAlertsBySession` as const;
-export const CORRELATIONS_RELATED_ALERTS_BY_SESSION_BUTTON_TEST_ID =
- `${CORRELATIONS_RELATED_ALERTS_BY_SESSION_TEST_ID}Button` as const;
export const CORRELATIONS_RELATED_ALERTS_BY_SAME_SOURCE_EVENT_TEST_ID =
`${CORRELATIONS_TEST_ID}RelatedAlertsBySameSourceEvent` as const;
-export const CORRELATIONS_RELATED_ALERTS_BY_SAME_SOURCE_EVENT_BUTTON_TEST_ID =
- `${CORRELATIONS_RELATED_ALERTS_BY_SAME_SOURCE_EVENT_TEST_ID}Button` as const;
export const CORRELATIONS_RELATED_ALERTS_BY_ANCESTRY_TEST_ID =
`${CORRELATIONS_TEST_ID}RelatedAlertsByAncestry` as const;
-export const CORRELATIONS_RELATED_ALERTS_BY_ANCESTRY_BUTTON_TEST_ID =
- `${CORRELATIONS_RELATED_ALERTS_BY_ANCESTRY_TEST_ID}Button` as const;
/* Insights Prevalence */
diff --git a/x-pack/plugins/security_solution/public/flyout/document_details/right/components/threat_intelligence_overview.test.tsx b/x-pack/plugins/security_solution/public/flyout/document_details/right/components/threat_intelligence_overview.test.tsx
index 2a465607a386d..f451862e0990e 100644
--- a/x-pack/plugins/security_solution/public/flyout/document_details/right/components/threat_intelligence_overview.test.tsx
+++ b/x-pack/plugins/security_solution/public/flyout/document_details/right/components/threat_intelligence_overview.test.tsx
@@ -16,13 +16,11 @@ import { LeftPanelInsightsTab } from '../../left';
import { useFetchThreatIntelligence } from '../hooks/use_fetch_threat_intelligence';
import { THREAT_INTELLIGENCE_TAB_ID } from '../../left/components/threat_intelligence_details';
import {
- INSIGHTS_THREAT_INTELLIGENCE_ENRICHED_WITH_THREAT_INTELLIGENCE_BUTTON_TEST_ID,
INSIGHTS_THREAT_INTELLIGENCE_ENRICHED_WITH_THREAT_INTELLIGENCE_TEST_ID,
INSIGHTS_THREAT_INTELLIGENCE_TEST_ID,
- INSIGHTS_THREAT_INTELLIGENCE_THREAT_MATCHES_BUTTON_TEST_ID,
INSIGHTS_THREAT_INTELLIGENCE_THREAT_MATCHES_TEST_ID,
+ SUMMARY_ROW_BUTTON_TEST_ID,
SUMMARY_ROW_TEXT_TEST_ID,
- SUMMARY_ROW_VALUE_TEST_ID,
} from './test_ids';
import {
EXPANDABLE_PANEL_HEADER_TITLE_ICON_TEST_ID,
@@ -52,13 +50,13 @@ const LOADING_TEST_ID = EXPANDABLE_PANEL_LOADING_TEST_ID(INSIGHTS_THREAT_INTELLI
const THREAT_MATCHES_TEXT_TEST_ID = SUMMARY_ROW_TEXT_TEST_ID(
INSIGHTS_THREAT_INTELLIGENCE_THREAT_MATCHES_TEST_ID
);
-const THREAT_MATCHES_VALUE_TEST_ID = SUMMARY_ROW_VALUE_TEST_ID(
+const THREAT_MATCHES_BUTTON_TEST_ID = SUMMARY_ROW_BUTTON_TEST_ID(
INSIGHTS_THREAT_INTELLIGENCE_THREAT_MATCHES_TEST_ID
);
const ENRICHED_WITH_THREAT_INTELLIGENCE_TEXT_TEST_ID = SUMMARY_ROW_TEXT_TEST_ID(
INSIGHTS_THREAT_INTELLIGENCE_ENRICHED_WITH_THREAT_INTELLIGENCE_TEST_ID
);
-const ENRICHED_WITH_THREAT_INTELLIGENCE_VALUE_TEST_ID = SUMMARY_ROW_VALUE_TEST_ID(
+const ENRICHED_WITH_THREAT_INTELLIGENCE_BUTTON_TEST_ID = SUMMARY_ROW_BUTTON_TEST_ID(
INSIGHTS_THREAT_INTELLIGENCE_ENRICHED_WITH_THREAT_INTELLIGENCE_TEST_ID
);
@@ -133,11 +131,11 @@ describe('', () => {
expect(getByTestId(TITLE_LINK_TEST_ID)).toHaveTextContent('Threat intelligence');
expect(getByTestId(THREAT_MATCHES_TEXT_TEST_ID)).toHaveTextContent('Threat match detected');
- expect(getByTestId(THREAT_MATCHES_VALUE_TEST_ID)).toHaveTextContent('1');
+ expect(getByTestId(THREAT_MATCHES_BUTTON_TEST_ID)).toHaveTextContent('1');
expect(getByTestId(ENRICHED_WITH_THREAT_INTELLIGENCE_TEXT_TEST_ID)).toHaveTextContent(
'Field enriched with threat intelligence'
);
- expect(getByTestId(ENRICHED_WITH_THREAT_INTELLIGENCE_VALUE_TEST_ID)).toHaveTextContent('1');
+ expect(getByTestId(ENRICHED_WITH_THREAT_INTELLIGENCE_BUTTON_TEST_ID)).toHaveTextContent('1');
});
it('should render 2 matches detected and 2 fields enriched', () => {
@@ -151,11 +149,11 @@ describe('', () => {
expect(getByTestId(TITLE_LINK_TEST_ID)).toHaveTextContent('Threat intelligence');
expect(getByTestId(THREAT_MATCHES_TEXT_TEST_ID)).toHaveTextContent('Threat matches detected');
- expect(getByTestId(THREAT_MATCHES_VALUE_TEST_ID)).toHaveTextContent('2');
+ expect(getByTestId(THREAT_MATCHES_BUTTON_TEST_ID)).toHaveTextContent('2');
expect(getByTestId(ENRICHED_WITH_THREAT_INTELLIGENCE_TEXT_TEST_ID)).toHaveTextContent(
'Fields enriched with threat intelligence'
);
- expect(getByTestId(ENRICHED_WITH_THREAT_INTELLIGENCE_VALUE_TEST_ID)).toHaveTextContent('2');
+ expect(getByTestId(ENRICHED_WITH_THREAT_INTELLIGENCE_BUTTON_TEST_ID)).toHaveTextContent('2');
});
it('should render loading', () => {
@@ -199,7 +197,7 @@ describe('', () => {
});
const { getByTestId } = renderThreatIntelligenceOverview();
- getByTestId(INSIGHTS_THREAT_INTELLIGENCE_THREAT_MATCHES_BUTTON_TEST_ID).click();
+ getByTestId(THREAT_MATCHES_BUTTON_TEST_ID).click();
expect(mockOpenLeftPanel).toHaveBeenCalledWith({
id: DocumentDetailsLeftPanelKey,
@@ -214,9 +212,7 @@ describe('', () => {
},
});
- getByTestId(
- INSIGHTS_THREAT_INTELLIGENCE_ENRICHED_WITH_THREAT_INTELLIGENCE_BUTTON_TEST_ID
- ).click();
+ getByTestId(ENRICHED_WITH_THREAT_INTELLIGENCE_BUTTON_TEST_ID).click();
expect(mockOpenLeftPanel).toHaveBeenCalledWith({
id: DocumentDetailsLeftPanelKey,
@@ -231,36 +227,4 @@ describe('', () => {
},
});
});
-
- it('should disabled the click when in preview mode', () => {
- (useDocumentDetailsContext as jest.Mock).mockReturnValue({
- eventId,
- indexName,
- scopeId,
- dataFormattedForFieldBrowser,
- isPreviewMode: true,
- });
- (useFetchThreatIntelligence as jest.Mock).mockReturnValue({
- loading: false,
- threatMatchesCount: 1,
- threatEnrichmentsCount: 1,
- });
-
- const { getByTestId } = renderThreatIntelligenceOverview();
- const threatMatchesButton = getByTestId(
- INSIGHTS_THREAT_INTELLIGENCE_THREAT_MATCHES_BUTTON_TEST_ID
- );
- const enrichedWithThreatIntelligenceButton = getByTestId(
- INSIGHTS_THREAT_INTELLIGENCE_ENRICHED_WITH_THREAT_INTELLIGENCE_BUTTON_TEST_ID
- );
-
- expect(threatMatchesButton).toHaveAttribute('disabled');
- expect(enrichedWithThreatIntelligenceButton).toHaveAttribute('disabled');
-
- threatMatchesButton.click();
- expect(mockOpenLeftPanel).not.toHaveBeenCalled();
-
- enrichedWithThreatIntelligenceButton.click();
- expect(mockOpenLeftPanel).not.toHaveBeenCalled();
- });
});
diff --git a/x-pack/plugins/translations/translations/fr-FR.json b/x-pack/plugins/translations/translations/fr-FR.json
index 7f8596a3dcddf..c5889c61f56a4 100644
--- a/x-pack/plugins/translations/translations/fr-FR.json
+++ b/x-pack/plugins/translations/translations/fr-FR.json
@@ -38767,7 +38767,6 @@
"xpack.securitySolution.flyout.right.insights.prevalence.noDataDescription": "Aucune donnée de prévalence disponible.",
"xpack.securitySolution.flyout.right.insights.prevalence.prevalenceTitle": "Prévalence",
"xpack.securitySolution.flyout.right.insights.prevalence.prevalenceTooltip": "Afficher toutes les prévalences",
- "xpack.securitySolution.flyout.right.insights.prevalence.rowDescription": "{field}, {value} est inhabituel",
"xpack.securitySolution.flyout.right.insights.sectionTitle": "Informations exploitables",
"xpack.securitySolution.flyout.right.insights.threatIntelligence.threatEnrichmentDescription": "{count, plural, one {champ enrichi} other {champs enrichis}} avec Threat Intelligence",
"xpack.securitySolution.flyout.right.insights.threatIntelligence.threatIntelligenceTitle": "Threat Intelligence",
diff --git a/x-pack/plugins/translations/translations/ja-JP.json b/x-pack/plugins/translations/translations/ja-JP.json
index 4ff7491ed6b4c..9fb18fd43079c 100644
--- a/x-pack/plugins/translations/translations/ja-JP.json
+++ b/x-pack/plugins/translations/translations/ja-JP.json
@@ -38510,7 +38510,6 @@
"xpack.securitySolution.flyout.right.insights.prevalence.noDataDescription": "発生率データはありません。",
"xpack.securitySolution.flyout.right.insights.prevalence.prevalenceTitle": "発生率",
"xpack.securitySolution.flyout.right.insights.prevalence.prevalenceTooltip": "すべての発生率を表示",
- "xpack.securitySolution.flyout.right.insights.prevalence.rowDescription": "{field}、{value}は共通していません",
"xpack.securitySolution.flyout.right.insights.sectionTitle": "インサイト",
"xpack.securitySolution.flyout.right.insights.threatIntelligence.threatEnrichmentDescription": "{count, plural, other {フィールド}}はヒートインテリジェンスでエンリッチされています",
"xpack.securitySolution.flyout.right.insights.threatIntelligence.threatIntelligenceTitle": "脅威インテリジェンス",
diff --git a/x-pack/plugins/translations/translations/zh-CN.json b/x-pack/plugins/translations/translations/zh-CN.json
index 5fbaf48cef1cf..3da2131e48b7a 100644
--- a/x-pack/plugins/translations/translations/zh-CN.json
+++ b/x-pack/plugins/translations/translations/zh-CN.json
@@ -38555,7 +38555,6 @@
"xpack.securitySolution.flyout.right.insights.prevalence.noDataDescription": "无普及性数据可用。",
"xpack.securitySolution.flyout.right.insights.prevalence.prevalenceTitle": "普及率",
"xpack.securitySolution.flyout.right.insights.prevalence.prevalenceTooltip": "显示所有普及率",
- "xpack.securitySolution.flyout.right.insights.prevalence.rowDescription": "{field},{value} 不常见",
"xpack.securitySolution.flyout.right.insights.sectionTitle": "洞见",
"xpack.securitySolution.flyout.right.insights.threatIntelligence.threatEnrichmentDescription": "{count, plural, other {个字段}}已使用威胁情报扩充",
"xpack.securitySolution.flyout.right.insights.threatIntelligence.threatIntelligenceTitle": "威胁情报",
diff --git a/x-pack/test/security_solution_cypress/cypress/screens/expandable_flyout/alert_details_right_panel_overview_tab.ts b/x-pack/test/security_solution_cypress/cypress/screens/expandable_flyout/alert_details_right_panel_overview_tab.ts
index dc04e6ca3041c..2d267bee721dc 100644
--- a/x-pack/test/security_solution_cypress/cypress/screens/expandable_flyout/alert_details_right_panel_overview_tab.ts
+++ b/x-pack/test/security_solution_cypress/cypress/screens/expandable_flyout/alert_details_right_panel_overview_tab.ts
@@ -78,10 +78,10 @@ export const DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_USER_OVERVIEW_LINK = getDataTe
export const DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_INSIGHTS_THREAT_INTELLIGENCE_HEADER =
getDataTestSubjectSelector('securitySolutionFlyoutInsightsThreatIntelligenceTitleLink');
export const DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_INSIGHTS_THREAT_INTELLIGENCE_THREAT_MATCHES_VALUE =
- getDataTestSubjectSelector('securitySolutionFlyoutInsightsThreatIntelligenceThreatMatchesValue');
+ getDataTestSubjectSelector('securitySolutionFlyoutInsightsThreatIntelligenceThreatMatchesButton');
export const DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_INSIGHTS_THREAT_INTELLIGENCE_ENRICHED_WITH_THREAT_INTELLIGENCE_VALUE =
getDataTestSubjectSelector(
- 'securitySolutionFlyoutInsightsThreatIntelligenceEnrichedWithThreatIntelligenceValue'
+ 'securitySolutionFlyoutInsightsThreatIntelligenceEnrichedWithThreatIntelligenceButton'
);
/* Insights Correlations */
@@ -89,17 +89,17 @@ export const DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_INSIGHTS_THREAT_INTELLIGENCE_E
export const DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_INSIGHTS_CORRELATIONS_HEADER =
getDataTestSubjectSelector('securitySolutionFlyoutCorrelationsTitleLink');
export const DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_INSIGHTS_CORRELATIONS_VALUES_SUPPRESSED_ALERTS =
- getDataTestSubjectSelector('securitySolutionFlyoutCorrelationsSuppressedAlertsValue');
+ getDataTestSubjectSelector('securitySolutionFlyoutCorrelationsSuppressedAlertsButton');
export const DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_INSIGHTS_CORRELATIONS_VALUES_RELATED_ALERTS_BY_ANCESTRY =
- getDataTestSubjectSelector('securitySolutionFlyoutCorrelationsRelatedAlertsByAncestryValue');
+ getDataTestSubjectSelector('securitySolutionFlyoutCorrelationsRelatedAlertsByAncestryButton');
export const DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_INSIGHTS_CORRELATIONS_VALUES_RELATED_ALERTS_BY_SAME_SOURCE_EVENT =
getDataTestSubjectSelector(
- 'securitySolutionFlyoutCorrelationsRelatedAlertsBySameSourceEventValue'
+ 'securitySolutionFlyoutCorrelationsRelatedAlertsBySameSourceEventButton'
);
export const DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_INSIGHTS_CORRELATIONS_VALUES_RELATED_ALERTS_BY_SESSION =
- getDataTestSubjectSelector('securitySolutionFlyoutCorrelationsRelatedAlertsBySessionValue');
+ getDataTestSubjectSelector('securitySolutionFlyoutCorrelationsRelatedAlertsBySessionButton');
export const DOCUMENT_DETAILS_FLYOUT_OVERVIEW_TAB_INSIGHTS_CORRELATIONS_VALUES_RELATED_CASES =
- getDataTestSubjectSelector('securitySolutionFlyoutCorrelationsRelatedCasesValue');
+ getDataTestSubjectSelector('securitySolutionFlyoutCorrelationsRelatedCasesButton');
/* Insights Prevalence */