diff --git a/src/legacy/core_plugins/kibana/public/dashboard/listing/__snapshots__/dashboard_listing.test.js.snap b/src/legacy/core_plugins/kibana/public/dashboard/listing/__snapshots__/dashboard_listing.test.js.snap index e350b43c4028..efdc9de5c3b3 100644 --- a/src/legacy/core_plugins/kibana/public/dashboard/listing/__snapshots__/dashboard_listing.test.js.snap +++ b/src/legacy/core_plugins/kibana/public/dashboard/listing/__snapshots__/dashboard_listing.test.js.snap @@ -548,7 +548,11 @@ exports[`after fetch renders warning when listingLimit is exceeded 1`] = ` /> , "listingLimitText": - listingLimit + , "listingLimitValue": 1, "totalDashboards": 2, diff --git a/src/legacy/core_plugins/kibana/public/dashboard/listing/dashboard_listing.js b/src/legacy/core_plugins/kibana/public/dashboard/listing/dashboard_listing.js index b7af6a616ba2..1d7a68968015 100644 --- a/src/legacy/core_plugins/kibana/public/dashboard/listing/dashboard_listing.js +++ b/src/legacy/core_plugins/kibana/public/dashboard/listing/dashboard_listing.js @@ -257,7 +257,10 @@ class DashboardListingUi extends React.Component { listingLimitValue: this.props.listingLimit, listingLimitText: ( - listingLimit + ), advancedSettingsLink: ( diff --git a/src/legacy/core_plugins/kibana/public/home/components/tutorial/__snapshots__/tutorial.test.js.snap b/src/legacy/core_plugins/kibana/public/home/components/tutorial/__snapshots__/tutorial.test.js.snap index 96a7ae1a4079..673fe4bcfcb9 100644 --- a/src/legacy/core_plugins/kibana/public/home/components/tutorial/__snapshots__/tutorial.test.js.snap +++ b/src/legacy/core_plugins/kibana/public/home/components/tutorial/__snapshots__/tutorial.test.js.snap @@ -35,9 +35,8 @@ exports[`isCloudEnabled is false should not render instruction toggle when ON_PR />
-
-
-
- ); @@ -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 b90a02027522..ba7e5febc50f 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(