[Cases] Fix configure cases flaky test (#116575)

This commit is contained in:
Christos Nasikas 2021-10-28 14:47:36 +03:00 committed by GitHub
parent f598c43435
commit 5338e1965f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,6 +47,7 @@ describe('ConfigureCases', () => {
iconClass: 'logoSecurity',
});
});
beforeEach(() => {
useActionTypesMock.mockImplementation(() => useActionTypesResponse);
});
@ -451,10 +452,8 @@ describe('ConfigureCases', () => {
).toBe('Update My Connector 2');
});
});
});
// Failing: See https://github.com/elastic/kibana/issues/115366
describe.skip('closure options', () => {
describe('closure options', () => {
let wrapper: ReactWrapper;
let persistCaseConfigure: jest.Mock;
@ -504,9 +503,9 @@ describe.skip('closure options', () => {
closureType: 'close-by-pushing',
});
});
});
});
describe('user interactions', () => {
describe('user interactions', () => {
beforeEach(() => {
useCaseConfigureMock.mockImplementation(() => ({
...useCaseConfigureResponse,
@ -597,4 +596,5 @@ describe('user interactions', () => {
wrapper.find('[data-test-subj="case-configure-action-bottom-bar"]').exists()
).toBeFalsy();
});
});
});