diff --git a/src/plugins/embeddable/public/lib/embeddables/error_embeddable.test.tsx b/src/plugins/embeddable/public/lib/embeddables/error_embeddable.test.tsx
index f598b6f11ca4f..816001ba42ff1 100644
--- a/src/plugins/embeddable/public/lib/embeddables/error_embeddable.test.tsx
+++ b/src/plugins/embeddable/public/lib/embeddables/error_embeddable.test.tsx
@@ -29,13 +29,13 @@ test('ErrorEmbeddable renders an embeddable', async () => {
expect(
component.getDOMNode().querySelectorAll('[data-test-subj="embeddableStackError"]').length
).toBe(1);
- expect(component.getDOMNode().querySelectorAll('[data-test-subj="errorMessageDiv"]').length).toBe(
- 1
- );
+ expect(
+ component.getDOMNode().querySelectorAll('[data-test-subj="errorMessageMarkdown"]').length
+ ).toBe(1);
expect(
component
.getDOMNode()
- .querySelectorAll('[data-test-subj="errorMessageDiv"]')[0]
+ .querySelectorAll('[data-test-subj="errorMessageMarkdown"]')[0]
.innerHTML.includes('some error occurred')
).toBe(true);
});
@@ -47,13 +47,15 @@ test('ErrorEmbeddable renders an embeddable with markdown message', async () =>
expect(
component.getDOMNode().querySelectorAll('[data-test-subj="embeddableStackError"]').length
).toBe(1);
- expect(component.getDOMNode().querySelectorAll('[data-test-subj="errorMessageDiv"]').length).toBe(
- 1
- );
+ expect(
+ component.getDOMNode().querySelectorAll('[data-test-subj="errorMessageMarkdown"]').length
+ ).toBe(1);
expect(
component
.getDOMNode()
- .querySelectorAll('[data-test-subj="errorMessageDiv"]')[0]
- .innerHTML.includes('some link')
+ .querySelectorAll('[data-test-subj="errorMessageMarkdown"]')[0]
+ .innerHTML.includes(
+ 'some link'
+ )
).toBe(true);
});
diff --git a/src/plugins/embeddable/public/lib/embeddables/error_embeddable.tsx b/src/plugins/embeddable/public/lib/embeddables/error_embeddable.tsx
index f1a01df404bd9..cdbe7af98a4f4 100644
--- a/src/plugins/embeddable/public/lib/embeddables/error_embeddable.tsx
+++ b/src/plugins/embeddable/public/lib/embeddables/error_embeddable.tsx
@@ -20,7 +20,7 @@
import { EuiText, EuiIcon, EuiSpacer } from '@elastic/eui';
import React from 'react';
import ReactDOM from 'react-dom';
-import { markdownFactory } from '../../../../kibana_react/public';
+import { Markdown } from '../../../../kibana_react/public';
import { Embeddable } from './embeddable';
import { EmbeddableInput, EmbeddableOutput, IEmbeddable } from './i_embeddable';
import { IContainer } from '../containers';
@@ -48,17 +48,16 @@ export class ErrorEmbeddable extends Embeddable
-
,
diff --git a/src/plugins/kibana_react/public/index.ts b/src/plugins/kibana_react/public/index.ts
index 9c8c155887369..e1689e38dbfe0 100644
--- a/src/plugins/kibana_react/public/index.ts
+++ b/src/plugins/kibana_react/public/index.ts
@@ -27,7 +27,7 @@ export * from './table_list_view';
export * from './split_panel';
export { ValidatedDualRange } from './validated_range';
export * from './notifications';
-export { Markdown, MarkdownSimple, markdownFactory } from './markdown';
+export { Markdown, MarkdownSimple } from './markdown';
export { reactToUiComponent, uiToReactComponent } from './adapters';
export { useUrlTracker } from './use_url_tracker';
export { toMountPoint } from './util';
diff --git a/src/plugins/kibana_react/public/markdown/index.tsx b/src/plugins/kibana_react/public/markdown/index.tsx
index 0ebacee29b545..cacf223cf33ed 100644
--- a/src/plugins/kibana_react/public/markdown/index.tsx
+++ b/src/plugins/kibana_react/public/markdown/index.tsx
@@ -19,4 +19,3 @@
export { MarkdownSimple } from './markdown_simple';
export { Markdown } from './markdown';
-export { markdownFactory } from './markdown';
diff --git a/src/plugins/kibana_utils/public/errors/errors.ts b/src/plugins/kibana_utils/public/errors/errors.ts
index f6fd53fa8fabb..5842457168d72 100644
--- a/src/plugins/kibana_utils/public/errors/errors.ts
+++ b/src/plugins/kibana_utils/public/errors/errors.ts
@@ -48,7 +48,6 @@ export class SavedObjectNotFound extends KbnError {
let message = `Could not locate that ${type}${idMsg}`;
if (link) {
- // message += `click here to re-create it`
message += `, [click here to re-create it](${link})`;
}