Skip to content

Commit

Permalink
Increase timeout of the test and of the waitFor for the test to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankHassanabad committed Jul 20, 2020
1 parent 0d1d9c4 commit b3fdc80
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,15 @@ describe('OpenTimelineModal', () => {
</ThemeProvider>
);

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);
});

0 comments on commit b3fdc80

Please sign in to comment.