mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Fleet] Re-enable flaky test manage agent policies (#189271)
## Summary Closes https://github.com/elastic/kibana/issues/189004
This commit is contained in:
parent
b693df92ff
commit
19010a0747
1 changed files with 7 additions and 3 deletions
|
@ -39,7 +39,12 @@ jest.mock('../hooks', () => ({
|
|||
},
|
||||
},
|
||||
}),
|
||||
useGetAgentPolicies: jest.fn(),
|
||||
useGetAgentPolicies: jest.fn().mockReturnValue({
|
||||
data: {
|
||||
items: [] as AgentPolicy[],
|
||||
},
|
||||
isLoading: false,
|
||||
}),
|
||||
useGetPackagePolicies: jest.fn().mockReturnValue({
|
||||
data: {
|
||||
items: [{ name: 'Integration 1', revision: 2, id: 'integration1', policy_ids: ['policy1'] }],
|
||||
|
@ -59,8 +64,7 @@ jest.mock('../hooks', () => ({
|
|||
}),
|
||||
}));
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/189004
|
||||
describe.skip('ManageAgentPoliciesModal', () => {
|
||||
describe('ManageAgentPoliciesModal', () => {
|
||||
let testRenderer: TestRenderer;
|
||||
const mockOnClose = jest.fn();
|
||||
const mockPolicies = [{ name: 'Test policy', revision: 2, id: 'policy1' }] as AgentPolicy[];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue