diff --git a/x-pack/plugins/security_solution/public/alerts/components/rules/description_step/__snapshots__/index.test.tsx.snap b/x-pack/plugins/security_solution/public/alerts/components/rules/description_step/__snapshots__/index.test.tsx.snap
deleted file mode 100644
index 31abea53462fa..0000000000000
--- a/x-pack/plugins/security_solution/public/alerts/components/rules/description_step/__snapshots__/index.test.tsx.snap
+++ /dev/null
@@ -1,441 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`description_step StepRuleDescriptionComponent renders correctly against snapshot when columns is "multi" 1`] = `
-
-
- ,
- "title": "Severity",
- },
- Object {
- "description": 21,
- "title": "Risk score",
- },
- Object {
- "description":
-
- ,
- "title": "Reference URLs",
- },
- ]
- }
- />
-
-
-
-
- ,
- "title": "False positive examples",
- },
- Object {
- "description":
-
-
-
-
-
-
-
-
-
-
-
-
-
- ,
- "title": "MITRE ATT&CK™",
- },
- Object {
- "description":
-
-
- tag1
-
-
-
-
- tag2
-
-
- ,
- "title": "Tags",
- },
- Object {
- "description":
-
- # this is some markdown documentation
-
- ,
- "title": "Investigation guide",
- },
- ]
- }
- />
-
-
-`;
-
-exports[`description_step StepRuleDescriptionComponent renders correctly against snapshot when columns is "single" 1`] = `
-
-
- ,
- "title": "Severity",
- },
- Object {
- "description": 21,
- "title": "Risk score",
- },
- Object {
- "description":
-
- ,
- "title": "Reference URLs",
- },
- Object {
- "description":
-
- ,
- "title": "False positive examples",
- },
- Object {
- "description":
-
-
-
-
-
-
-
-
-
-
-
-
-
- ,
- "title": "MITRE ATT&CK™",
- },
- Object {
- "description":
-
-
- tag1
-
-
-
-
- tag2
-
-
- ,
- "title": "Tags",
- },
- Object {
- "description":
-
- # this is some markdown documentation
-
- ,
- "title": "Investigation guide",
- },
- ]
- }
- />
-
-
-`;
-
-exports[`description_step StepRuleDescriptionComponent renders correctly against snapshot when columns is "singleSplit 1`] = `
-
-
- ,
- "title": "Severity",
- },
- Object {
- "description": 21,
- "title": "Risk score",
- },
- Object {
- "description":
-
- ,
- "title": "Reference URLs",
- },
- Object {
- "description":
-
- ,
- "title": "False positive examples",
- },
- Object {
- "description":
-
-
-
-
-
-
-
-
-
-
-
-
-
- ,
- "title": "MITRE ATT&CK™",
- },
- Object {
- "description":
-
-
- tag1
-
-
-
-
- tag2
-
-
- ,
- "title": "Tags",
- },
- Object {
- "description":
-
- # this is some markdown documentation
-
- ,
- "title": "Investigation guide",
- },
- ]
- }
- type="column"
- />
-
-
-`;
diff --git a/x-pack/plugins/security_solution/public/alerts/components/rules/description_step/helpers.tsx b/x-pack/plugins/security_solution/public/alerts/components/rules/description_step/helpers.tsx
index 091065eedfc22..a0d43c3abf5c1 100644
--- a/x-pack/plugins/security_solution/public/alerts/components/rules/description_step/helpers.tsx
+++ b/x-pack/plugins/security_solution/public/alerts/components/rules/description_step/helpers.tsx
@@ -225,6 +225,10 @@ export const buildSeverityDescription = (label: string, value: string): ListItem
},
];
+const MyRefUrlLink = styled(EuiLink)`
+ word-break: break-word;
+`;
+
export const buildUrlsDescription = (label: string, values: string[]): ListItems[] => {
if (isNotEmptyArray(values)) {
return [
@@ -237,9 +241,9 @@ export const buildUrlsDescription = (label: string, values: string[]): ListItems
.filter((v) => !isEmpty(v))
.map((val, index) => (
-
+
{val}
-
+
))}
diff --git a/x-pack/plugins/security_solution/public/alerts/components/rules/description_step/index.test.tsx b/x-pack/plugins/security_solution/public/alerts/components/rules/description_step/index.test.tsx
index b8f81f6d7e5f7..2bd90f17daf0c 100644
--- a/x-pack/plugins/security_solution/public/alerts/components/rules/description_step/index.test.tsx
+++ b/x-pack/plugins/security_solution/public/alerts/components/rules/description_step/index.test.tsx
@@ -54,27 +54,24 @@ describe('description_step', () => {
});
describe('StepRuleDescriptionComponent', () => {
- test('renders correctly against snapshot when columns is "multi"', () => {
+ test('renders tow columns when "columns" is "multi"', () => {
const wrapper = shallow(
);
- expect(wrapper).toMatchSnapshot();
expect(wrapper.find('[data-test-subj="listItemColumnStepRuleDescription"]')).toHaveLength(2);
});
- test('renders correctly against snapshot when columns is "single"', () => {
+ test('renders single column when "columns" is "single"', () => {
const wrapper = shallow(
);
- expect(wrapper).toMatchSnapshot();
expect(wrapper.find('[data-test-subj="listItemColumnStepRuleDescription"]')).toHaveLength(1);
});
- test('renders correctly against snapshot when columns is "singleSplit', () => {
+ test('renders one column with title and description split when "columns" is "singleSplit', () => {
const wrapper = shallow(
);
- expect(wrapper).toMatchSnapshot();
expect(wrapper.find('[data-test-subj="listItemColumnStepRuleDescription"]')).toHaveLength(1);
expect(
wrapper.find('[data-test-subj="singleSplitStepRuleDescriptionList"]').at(0).prop('type')