-
-
);
@@ -75,7 +78,12 @@ export function Introduction({ description, previewUrl, title, exportedFieldsUrl
let betaBadge;
if (isBeta) {
betaBadge = (
-
+
);
}
return (
@@ -109,7 +117,7 @@ export function Introduction({ description, previewUrl, title, exportedFieldsUrl
);
}
-Introduction.propTypes = {
+IntroductionUI.propTypes = {
description: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
previewUrl: PropTypes.string,
@@ -118,6 +126,8 @@ Introduction.propTypes = {
isBeta: PropTypes.bool,
};
-Introduction.defaultProps = {
+IntroductionUI.defaultProps = {
isBeta: false
};
+
+export const Introduction = injectI18n(IntroductionUI);
diff --git a/src/legacy/core_plugins/kibana/public/home/components/tutorial/introduction.test.js b/src/legacy/core_plugins/kibana/public/home/components/tutorial/introduction.test.js
index b90a020275225..ba7e5febc50f8 100644
--- a/src/legacy/core_plugins/kibana/public/home/components/tutorial/introduction.test.js
+++ b/src/legacy/core_plugins/kibana/public/home/components/tutorial/introduction.test.js
@@ -18,12 +18,12 @@
*/
import React from 'react';
-import { shallow } from 'enzyme';
+import { shallowWithIntl } from 'test_utils/enzyme_helpers';
import { Introduction } from './introduction';
test('render', () => {
- const component = shallow();
@@ -32,7 +32,7 @@ test('render', () => {
describe('props', () => {
test('iconType', () => {
- const component = shallow( {
});
test('exportedFieldsUrl', () => {
- const component = shallow( {
});
test('previewUrl', () => {
- const component = shallow( {
});
test('isBeta', () => {
- const component = shallow(