diff --git a/x-pack/plugins/enterprise_search/public/applications/app_search/components/analytics/components/analytics_section.test.tsx b/x-pack/plugins/enterprise_search/public/applications/app_search/components/analytics/components/analytics_section.test.tsx
index 56e30e606117..b561a5712044 100644
--- a/x-pack/plugins/enterprise_search/public/applications/app_search/components/analytics/components/analytics_section.test.tsx
+++ b/x-pack/plugins/enterprise_search/public/applications/app_search/components/analytics/components/analytics_section.test.tsx
@@ -9,6 +9,8 @@ import React from 'react';
import { shallow } from 'enzyme';
+import { EuiIcon } from '@elastic/eui';
+
import { AnalyticsSection } from './';
describe('AnalyticsSection', () => {
@@ -23,4 +25,12 @@ describe('AnalyticsSection', () => {
expect(wrapper.find('p').text()).toEqual('Dolor sit amet.');
expect(wrapper.find('[data-test-subj="HelloWorld"]')).toHaveLength(1);
});
+
+ it('renders an optional icon', () => {
+ const wrapper = shallow(
+
+ );
+
+ expect(wrapper.find(EuiIcon).prop('type')).toEqual('eye');
+ });
});
diff --git a/x-pack/plugins/enterprise_search/public/applications/app_search/components/analytics/components/analytics_section.tsx b/x-pack/plugins/enterprise_search/public/applications/app_search/components/analytics/components/analytics_section.tsx
index 829afcf238d2..065eecf76ad4 100644
--- a/x-pack/plugins/enterprise_search/public/applications/app_search/components/analytics/components/analytics_section.tsx
+++ b/x-pack/plugins/enterprise_search/public/applications/app_search/components/analytics/components/analytics_section.tsx
@@ -26,7 +26,12 @@ interface Props {
export const AnalyticsSection: React.FC = ({ title, subtitle, iconType, children }) => (