- }
- body={
- <>
-
-
- {i18n.translate('xpack.enterpriseSearch.notFound.title', {
- defaultMessage: '404 error',
- })}
-
-
-
- {i18n.translate('xpack.enterpriseSearch.notFound.description', {
- defaultMessage: 'The page you’re looking for was not found.',
- })}
-
- >
- }
- actions={
-
-
-
- {i18n.translate('xpack.enterpriseSearch.notFound.action1', {
- defaultMessage: 'Back to your dashboard',
- })}
-
-
-
-
- {i18n.translate('xpack.enterpriseSearch.notFound.action2', {
- defaultMessage: 'Contact support',
- })}
-
-
-
- }
- />
-
- >
- );
-};
diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/not_found/not_found_prompt.test.tsx b/x-pack/plugins/enterprise_search/public/applications/shared/not_found/not_found_prompt.test.tsx
new file mode 100644
index 0000000000000..c21aeff2780b6
--- /dev/null
+++ b/x-pack/plugins/enterprise_search/public/applications/shared/not_found/not_found_prompt.test.tsx
@@ -0,0 +1,51 @@
+/*
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
+ * or more contributor license agreements. Licensed under the Elastic License
+ * 2.0; you may not use this file except in compliance with the Elastic License
+ * 2.0.
+ */
+
+import { setMockValues } from '../../__mocks__/kea_logic';
+
+import React from 'react';
+
+import { shallow } from 'enzyme';
+
+import { EuiEmptyPrompt, EuiButton } from '@elastic/eui';
+
+import { EuiButtonTo } from '../react_router_helpers';
+
+import { NotFoundPrompt } from './';
+
+describe('NotFoundPrompt', () => {
+ const subject = (props?: object) =>
+ shallow(