Skip to content

Commit

Permalink
add more timeout, unskip ManageAgentPoliciesModal test
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaElastic committed Oct 18, 2024
1 parent e72461f commit c554c5a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ describe('GlobalDataTagsTable', () => {
{ name: 'newTag2', value: '123 123' },
],
});
});
}, 10000);

it('should edit an existing tag', async () => {
renderComponent(globalDataTags);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ describe('When on the package policy create page', () => {
test('should use custom "cancel" URL', () => {
expect(cancelLink.href).toBe(expectedRouteState.onCancelUrl);
expect(cancelButton.href).toBe(expectedRouteState.onCancelUrl);
});
}, 10000);
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,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[];
Expand Down Expand Up @@ -115,7 +114,7 @@ describe.skip('ManageAgentPoliciesModal', () => {
expect(usePackagePolicyWithRelatedData('', {}).savePackagePolicy).toHaveBeenCalledWith({
policy_ids: ['policy1', 'policy2'],
});
});
}, 10000);

it('should keep managed policy when policies are changed', async () => {
(useGetAgentPolicies as jest.Mock).mockReturnValue({
Expand Down

0 comments on commit c554c5a

Please sign in to comment.