From b3fdc8026a919e1cb4d53043a8d0ea2d94f5614f Mon Sep 17 00:00:00 2001 From: FrankHassanabad Date: Mon, 20 Jul 2020 14:10:51 -0600 Subject: [PATCH] Increase timeout of the test and of the waitFor for the test to pass --- .../open_timeline_modal/index.test.tsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/x-pack/plugins/security_solution/public/timelines/components/open_timeline/open_timeline_modal/index.test.tsx b/x-pack/plugins/security_solution/public/timelines/components/open_timeline/open_timeline_modal/index.test.tsx index a4844c61ac59f..3017f553d59d5 100644 --- a/x-pack/plugins/security_solution/public/timelines/components/open_timeline/open_timeline_modal/index.test.tsx +++ b/x-pack/plugins/security_solution/public/timelines/components/open_timeline/open_timeline_modal/index.test.tsx @@ -65,10 +65,15 @@ describe('OpenTimelineModal', () => { ); - await waitFor(() => { - wrapper.update(); + await waitFor( + () => { + wrapper.update(); - expect(wrapper.find('div[data-test-subj="open-timeline-modal"].euiModal').length).toEqual(1); - }); - }); + expect(wrapper.find('div[data-test-subj="open-timeline-modal"].euiModal').length).toEqual( + 1 + ); + }, + { timeout: 10000 } + ); + }, 20000); });