diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/components/layout/kibana_header_actions.test.tsx b/x-pack/plugins/enterprise_search/public/applications/workplace_search/components/layout/kibana_header_actions.test.tsx
index 0ebd59eda5be7..60689242ab882 100644
--- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/components/layout/kibana_header_actions.test.tsx
+++ b/x-pack/plugins/enterprise_search/public/applications/workplace_search/components/layout/kibana_header_actions.test.tsx
@@ -19,11 +19,23 @@ describe('WorkplaceSearchHeaderActions', () => {
expect(wrapper.isEmptyRender()).toBe(true);
});
+ it('renders a link to the personal dashboard', () => {
+ externalUrl.enterpriseSearchUrl = 'http://localhost:3002';
+
+ const wrapper = shallow();
+
+ expect(wrapper.find(EuiButtonEmpty).first().prop('href')).toEqual(
+ 'http://localhost:3002/ws/sources'
+ );
+ });
+
it('renders a link to the search application', () => {
externalUrl.enterpriseSearchUrl = 'http://localhost:3002';
const wrapper = shallow();
- expect(wrapper.find(EuiButtonEmpty).prop('href')).toEqual('http://localhost:3002/ws/search');
+ expect(wrapper.find(EuiButtonEmpty).last().prop('href')).toEqual(
+ 'http://localhost:3002/ws/search'
+ );
});
});
diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/components/layout/kibana_header_actions.tsx b/x-pack/plugins/enterprise_search/public/applications/workplace_search/components/layout/kibana_header_actions.tsx
index d45c7426ae8b7..c3e5f0f24a299 100644
--- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/components/layout/kibana_header_actions.tsx
+++ b/x-pack/plugins/enterprise_search/public/applications/workplace_search/components/layout/kibana_header_actions.tsx
@@ -15,13 +15,23 @@ export const WorkplaceSearchHeaderActions: React.FC = () => {
if (!externalUrl.enterpriseSearchUrl) return null;
return (
-
+ <>
+
+ {NAV.PERSONAL_DASHBOARD}
+
+
{NAV.SEARCH}
-
+
+ >
);
};