[Security Solution] Improves host isolation exceptions test reliability (#117327)

This commit is contained in:
Esteban Beltran 2021-11-03 22:44:11 +01:00 committed by GitHub
parent ea7ff2932d
commit c6db4986ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,9 +168,8 @@ describe('When on the host isolation exceptions page', () => {
it('should show the create flyout when the add button is pressed', async () => {
render();
await dataReceived();
act(() => {
userEvent.click(renderResult.getByTestId('hostIsolationExceptionsListAddButton'));
});
userEvent.click(renderResult.getByTestId('hostIsolationExceptionsListAddButton'));
await dataReceived();
expect(renderResult.getByTestId('hostIsolationExceptionsCreateEditFlyout')).toBeTruthy();
});