diff --git a/src/core_plugins/kibana/public/home/components/tutorial/__snapshots__/instruction_set.test.js.snap b/src/core_plugins/kibana/public/home/components/tutorial/__snapshots__/instruction_set.test.js.snap
index 9cbd029e594ff..e574f575a5517 100644
--- a/src/core_plugins/kibana/public/home/components/tutorial/__snapshots__/instruction_set.test.js.snap
+++ b/src/core_plugins/kibana/public/home/components/tutorial/__snapshots__/instruction_set.test.js.snap
@@ -80,7 +80,7 @@ exports[`render 1`] = `
`;
-exports[`status check checking status 1`] = `
+exports[`statusCheckState checking status 1`] = `
@@ -207,7 +207,7 @@ exports[`status check checking status 1`] = `
`;
-exports[`status check failed status check 1`] = `
+exports[`statusCheckState failed status check - error 1`] = `
@@ -330,7 +330,7 @@ exports[`status check failed status check 1`] = `
/>
,
"key": "checkStatusStep",
- "status": "incomplete",
+ "status": "complete",
"title": "custom title",
},
]
@@ -339,7 +339,7 @@ exports[`status check failed status check 1`] = `
`;
-exports[`status check initial state - no check has been attempted 1`] = `
+exports[`statusCheckState failed status check - no data 1`] = `
@@ -455,6 +455,138 @@ exports[`status check initial state - no check has been attempted 1`] = `
+
+ ,
+ "key": "checkStatusStep",
+ "status": "complete",
+ "title": "custom title",
+ },
+ ]
+ }
+ />
+
+`;
+
+exports[`statusCheckState initial state - no check has been attempted 1`] = `
+
+
+
+
+ title1
+
+
+
+
+
+
+ OSX
+
+
+ Windows
+
+
+
+
,
+ "key": 0,
+ "title": "step 1",
+ },
+ Object {
+ "children":
,
+ "key": 1,
+ "title": "step 2",
+ },
+ Object {
+ "children":
+
+
+
+
+ custom status check description
+
+
+
+
+
+ custom btn label
+
+
+
+
,
"key": "checkStatusStep",
"status": "incomplete",
@@ -466,7 +598,7 @@ exports[`status check initial state - no check has been attempted 1`] = `
`;
-exports[`status check successful status check 1`] = `
+exports[`statusCheckState successful status check 1`] = `
diff --git a/src/core_plugins/kibana/public/home/components/tutorial/instruction_set.test.js b/src/core_plugins/kibana/public/home/components/tutorial/instruction_set.test.js
index 4311c8593e36e..12769dc6f2c6d 100644
--- a/src/core_plugins/kibana/public/home/components/tutorial/instruction_set.test.js
+++ b/src/core_plugins/kibana/public/home/components/tutorial/instruction_set.test.js
@@ -4,6 +4,7 @@ import { shallow } from 'enzyme';
import {
InstructionSet,
} from './instruction_set';
+import * as StatusCheckStates from './status_check_states';
const instructions = [
{
@@ -43,7 +44,7 @@ test('render', () => {
expect(component).toMatchSnapshot(); // eslint-disable-line
});
-describe('status check', () => {
+describe('statusCheckState', () => {
const statusCheckConfig = {
success: 'custom success msg',
error: 'custom error msg',
@@ -61,9 +62,7 @@ describe('status check', () => {
paramValues={{}}
statusCheckConfig={statusCheckConfig}
replaceTemplateStrings={() => {}}
- statusCheckState="incomplete"
- hasStatusCheckFailed={false}
- isCheckingStatus={false}
+ statusCheckState={StatusCheckStates.FETCHING}
/>);
expect(component).toMatchSnapshot(); // eslint-disable-line
});
@@ -77,14 +76,12 @@ describe('status check', () => {
paramValues={{}}
statusCheckConfig={statusCheckConfig}
replaceTemplateStrings={() => {}}
- statusCheckState="incomplete"
- hasStatusCheckFailed={false}
- isCheckingStatus={true}
+ statusCheckState={StatusCheckStates.FETCHING}
/>);
expect(component).toMatchSnapshot(); // eslint-disable-line
});
- test('failed status check', () => {
+ test('failed status check - error', () => {
const component = shallow( {
paramValues={{}}
statusCheckConfig={statusCheckConfig}
replaceTemplateStrings={() => {}}
- statusCheckState="incomplete"
- hasStatusCheckFailed={true}
- isCheckingStatus={false}
+ statusCheckState={StatusCheckStates.ERROR}
+ />);
+ expect(component).toMatchSnapshot(); // eslint-disable-line
+ });
+
+ test('failed status check - no data', () => {
+ const component = shallow( {}}
+ offset={1}
+ paramValues={{}}
+ statusCheckConfig={statusCheckConfig}
+ replaceTemplateStrings={() => {}}
+ statusCheckState={StatusCheckStates.NO_DATA}
/>);
expect(component).toMatchSnapshot(); // eslint-disable-line
});
@@ -109,9 +118,7 @@ describe('status check', () => {
paramValues={{}}
statusCheckConfig={statusCheckConfig}
replaceTemplateStrings={() => {}}
- statusCheckState="complete"
- hasStatusCheckFailed={false}
- isCheckingStatus={false}
+ statusCheckState={StatusCheckStates.HAS_DATA}
/>);
expect(component).toMatchSnapshot(); // eslint-disable-line
});