From 6173f6eb8eee45efc1598c633c0542082802f849 Mon Sep 17 00:00:00 2001 From: Christos Nasikas Date: Tue, 13 Oct 2020 18:15:59 +0300 Subject: [PATCH] Fix integration tests --- .../step_about_rule_details/index.test.tsx | 4 +- .../__snapshots__/index.test.tsx.snap | 7 --- .../__snapshots__/new_note.test.tsx.snap | 59 +++---------------- .../components/notes/add_note/index.test.tsx | 30 +--------- .../notes/add_note/new_note.test.tsx | 33 +---------- .../notes/note_cards/index.test.tsx | 2 +- 6 files changed, 19 insertions(+), 116 deletions(-) diff --git a/x-pack/plugins/security_solution/public/detections/components/rules/step_about_rule_details/index.test.tsx b/x-pack/plugins/security_solution/public/detections/components/rules/step_about_rule_details/index.test.tsx index 8e398e6236510a6..757319e7aa1ae91 100644 --- a/x-pack/plugins/security_solution/public/detections/components/rules/step_about_rule_details/index.test.tsx +++ b/x-pack/plugins/security_solution/public/detections/components/rules/step_about_rule_details/index.test.tsx @@ -154,7 +154,9 @@ describe('StepAboutRuleToggleDetails', () => { .simulate('change', { target: { value: 'notes' } }); expect(wrapper.find('EuiButtonGroup[idSelected="notes"]').exists()).toBeTruthy(); - expect(wrapper.find('Markdown h1').text()).toEqual('this is some markdown documentation'); + expect(wrapper.find('.euiMarkdownFormat').text()).toEqual( + 'this is some markdown documentation' + ); }); }); }); diff --git a/x-pack/plugins/security_solution/public/timelines/components/notes/add_note/__snapshots__/index.test.tsx.snap b/x-pack/plugins/security_solution/public/timelines/components/notes/add_note/__snapshots__/index.test.tsx.snap index 718e7ce1d27a5a3..53bc76bfeb8e862 100644 --- a/x-pack/plugins/security_solution/public/timelines/components/notes/add_note/__snapshots__/index.test.tsx.snap +++ b/x-pack/plugins/security_solution/public/timelines/components/notes/add_note/__snapshots__/index.test.tsx.snap @@ -11,13 +11,6 @@ exports[`AddNote renders correctly 1`] = ` noteInputHeight={200} updateNewNote={[MockFunction]} /> - - - diff --git a/x-pack/plugins/security_solution/public/timelines/components/notes/add_note/__snapshots__/new_note.test.tsx.snap b/x-pack/plugins/security_solution/public/timelines/components/notes/add_note/__snapshots__/new_note.test.tsx.snap index 9bf2b5c65e82944..69e06bc7e0d1bce 100644 --- a/x-pack/plugins/security_solution/public/timelines/components/notes/add_note/__snapshots__/new_note.test.tsx.snap +++ b/x-pack/plugins/security_solution/public/timelines/components/notes/add_note/__snapshots__/new_note.test.tsx.snap @@ -3,54 +3,13 @@ exports[`NewNote renders correctly 1`] = ` , - "id": "note", - "name": "Note", - } - } - tabs={ - Array [ - Object { - "content":