diff --git a/x-pack/plugins/index_lifecycle_management/__jest__/client_integration/app/app.helpers.tsx b/x-pack/plugins/index_lifecycle_management/__jest__/client_integration/app/app.helpers.tsx
index 46548096cef01..de7242a6c5ddf 100644
--- a/x-pack/plugins/index_lifecycle_management/__jest__/client_integration/app/app.helpers.tsx
+++ b/x-pack/plugins/index_lifecycle_management/__jest__/client_integration/app/app.helpers.tsx
@@ -4,10 +4,23 @@
* you may not use this file except in compliance with the Elastic License.
*/
+import React from 'react';
import { act } from 'react-dom/test-utils';
import { registerTestBed, TestBed, TestBedConfig } from '../../../../../test_utils';
import { App } from '../../../public/application/app';
import { TestSubjects } from '../helpers';
+import { createBreadcrumbsMock } from '../../../public/application/services/breadcrumbs.mock';
+import { KibanaContextProvider } from '../../../../../../src/plugins/kibana_react/public/context';
+
+const breadcrumbService = createBreadcrumbsMock();
+
+const AppWithContext = (props: any) => {
+ return (
+
+
+
+ );
+};
const getTestBedConfig = (initialEntries: string[]): TestBedConfig => ({
memoryRouter: {
@@ -20,7 +33,7 @@ const getTestBedConfig = (initialEntries: string[]): TestBedConfig => ({
});
const initTestBed = (initialEntries: string[]) =>
- registerTestBed(App, getTestBedConfig(initialEntries))();
+ registerTestBed(AppWithContext, getTestBedConfig(initialEntries))();
export interface AppTestBed extends TestBed {
actions: {
diff --git a/x-pack/plugins/index_lifecycle_management/__jest__/client_integration/edit_policy/constants.ts b/x-pack/plugins/index_lifecycle_management/__jest__/client_integration/edit_policy/constants.ts
index f675ef2349e34..00c7d705c1f44 100644
--- a/x-pack/plugins/index_lifecycle_management/__jest__/client_integration/edit_policy/constants.ts
+++ b/x-pack/plugins/index_lifecycle_management/__jest__/client_integration/edit_policy/constants.ts
@@ -128,9 +128,12 @@ export const getDefaultHotPhasePolicy = (policyName: string): PolicyFromES => ({
name: policyName,
phases: {
hot: {
- min_age: '123ms',
+ min_age: '0ms',
actions: {
- rollover: {},
+ rollover: {
+ max_age: '30d',
+ max_size: '50gb',
+ },
},
},
},
diff --git a/x-pack/plugins/index_lifecycle_management/__jest__/client_integration/edit_policy/edit_policy.test.ts b/x-pack/plugins/index_lifecycle_management/__jest__/client_integration/edit_policy/edit_policy.test.ts
index 1b11c2e8f0166..c91ee3e2a1c06 100644
--- a/x-pack/plugins/index_lifecycle_management/__jest__/client_integration/edit_policy/edit_policy.test.ts
+++ b/x-pack/plugins/index_lifecycle_management/__jest__/client_integration/edit_policy/edit_policy.test.ts
@@ -34,7 +34,7 @@ describe('', () => {
describe('hot phase', () => {
describe('serialization', () => {
beforeEach(async () => {
- httpRequestsMockHelpers.setLoadPolicies([getDefaultHotPhasePolicy('test')]);
+ httpRequestsMockHelpers.setLoadPolicies([getDefaultHotPhasePolicy('my_policy')]);
httpRequestsMockHelpers.setLoadSnapshotPolicies([]);
await act(async () => {
diff --git a/x-pack/plugins/index_lifecycle_management/public/application/app.tsx b/x-pack/plugins/index_lifecycle_management/public/application/app.tsx
index e3ec212f0afa0..20185b02064bc 100644
--- a/x-pack/plugins/index_lifecycle_management/public/application/app.tsx
+++ b/x-pack/plugins/index_lifecycle_management/public/application/app.tsx
@@ -40,16 +40,16 @@ export const App = ({
return (
-
- }
- />
- }
- />
-
+
+ }
+ />
+ }
+ />
+
);
};
diff --git a/x-pack/plugins/index_lifecycle_management/public/application/index.tsx b/x-pack/plugins/index_lifecycle_management/public/application/index.tsx
index e3b877973684d..bb1a4810ba2d2 100644
--- a/x-pack/plugins/index_lifecycle_management/public/application/index.tsx
+++ b/x-pack/plugins/index_lifecycle_management/public/application/index.tsx
@@ -28,7 +28,11 @@ export const renderApp = (
render(
-
+
,
element
diff --git a/x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/edit_policy.container.tsx b/x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/edit_policy.container.tsx
index e52ad58746a20..4c0cc2c8957e1 100644
--- a/x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/edit_policy.container.tsx
+++ b/x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/edit_policy.container.tsx
@@ -90,7 +90,7 @@ export const EditPolicy: React.FunctionComponent {
history.push(`/${Section.DataStreams}`);