diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/__tests__/__snapshots__/create_index_pattern_wizard.test.js.snap b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/__tests__/__snapshots__/create_index_pattern_wizard.test.js.snap
index 53c2056c3ca9..1b40c3cfd6a4 100644
--- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/__tests__/__snapshots__/create_index_pattern_wizard.test.js.snap
+++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/__tests__/__snapshots__/create_index_pattern_wizard.test.js.snap
@@ -59,3 +59,26 @@ exports[`CreateIndexPatternWizard renders time field step when step is set to 2
/>
`;
+
+exports[`CreateIndexPatternWizard shows system indices even if there are no other indices if the include system indices is toggled 1`] = `
+
+
+
+
+`;
diff --git a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/__tests__/create_index_pattern_wizard.test.js b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/__tests__/create_index_pattern_wizard.test.js
index 94b4612a19d9..3963f9826871 100644
--- a/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/__tests__/create_index_pattern_wizard.test.js
+++ b/src/core_plugins/kibana/public/management/sections/indices/create_index_pattern_wizard/__tests__/create_index_pattern_wizard.test.js
@@ -77,6 +77,25 @@ describe('CreateIndexPatternWizard', () => {
expect(component).toMatchSnapshot();
});
+ it('shows system indices even if there are no other indices if the include system indices is toggled', async () => {
+ const component = shallow(
+
+ );
+
+ component.setState({
+ isInitiallyLoadingIndices: false,
+ isIncludingSystemIndices: true,
+ allIndices: [{ name: '.kibana ' }]
+ });
+
+ await component.update();
+ expect(component).toMatchSnapshot();
+ });
+
it('renders index pattern step when there are indices', async () => {
const component = shallow(
!name.startsWith('.'));
- if (!hasDataIndices) {
+ if (!hasDataIndices && !isIncludingSystemIndices) {
return ;
}