diff --git a/openmetadata-ui/src/main/resources/ui/src/components/BlockEditor/hooks/useCustomEditor.ts b/openmetadata-ui/src/main/resources/ui/src/components/BlockEditor/hooks/useCustomEditor.ts index 165ab451e75..b06e676ea68 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/BlockEditor/hooks/useCustomEditor.ts +++ b/openmetadata-ui/src/main/resources/ui/src/components/BlockEditor/hooks/useCustomEditor.ts @@ -13,7 +13,6 @@ import { EditorOptions } from '@tiptap/core'; import { Editor } from '@tiptap/react'; import { DependencyList, useEffect, useRef, useState } from 'react'; -import { extensions } from '../Extensions'; function useForceUpdate() { const [, setValue] = useState(0); @@ -120,7 +119,6 @@ export const useCustomEditor = ( const instance = new Editor({ ...options, - extensions: [...extensions], }); setEditor(instance); diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Container/ContainerChildren/ContainerChildren.test.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Container/ContainerChildren/ContainerChildren.test.tsx index 10a3ebaa939..6ec33b0b488 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Container/ContainerChildren/ContainerChildren.test.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Container/ContainerChildren/ContainerChildren.test.tsx @@ -26,6 +26,9 @@ jest.mock('../../common/NextPrevious/NextPrevious', () => { )); }); +jest.mock('../../common/RichTextEditor/RichTextEditorPreviewerV1', () => + jest.fn().mockImplementation(({ markdown }) =>
{markdown}
) +); const mockChildrenList = [ { diff --git a/openmetadata-ui/src/main/resources/ui/src/components/MyData/Persona/PersonaDetailsCard/PersonaDetailsCard.test.tsx b/openmetadata-ui/src/main/resources/ui/src/components/MyData/Persona/PersonaDetailsCard/PersonaDetailsCard.test.tsx index d298dcaca2c..786d078539e 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/MyData/Persona/PersonaDetailsCard/PersonaDetailsCard.test.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/MyData/Persona/PersonaDetailsCard/PersonaDetailsCard.test.tsx @@ -41,6 +41,10 @@ jest.mock('react-router-dom', () => ({ })), })); +jest.mock('../../../common/RichTextEditor/RichTextEditorPreviewerV1', () => + jest.fn().mockImplementation(({ markdown }) =>
{markdown}
) +); + describe('PersonaDetailsCard Component', () => { it('should render persona details card', async () => { await act(async () => { diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/ApplicationCard/ApplicationCard.test.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/ApplicationCard/ApplicationCard.test.tsx index 198fcc8259a..478bfc87005 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/ApplicationCard/ApplicationCard.test.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Settings/Applications/ApplicationCard/ApplicationCard.test.tsx @@ -23,6 +23,10 @@ const props = { showDescription: true, }; +jest.mock('../../../common/RichTextEditor/RichTextEditorPreviewerV1', () => + jest.fn().mockImplementation(({ markdown }) =>
{markdown}
) +); + describe('ApplicationCard', () => { beforeEach(() => { jest.useFakeTimers(); diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Suggestions/SuggestionsAlert/SuggestionsAlert.test.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Suggestions/SuggestionsAlert/SuggestionsAlert.test.tsx index fa6de90c20f..5a8c9c01445 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Suggestions/SuggestionsAlert/SuggestionsAlert.test.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Suggestions/SuggestionsAlert/SuggestionsAlert.test.tsx @@ -40,6 +40,10 @@ jest.mock('../SuggestionsProvider/SuggestionsProvider', () => ({ default: 'SuggestionsProvider', })); +jest.mock('../../common/RichTextEditor/RichTextEditorPreviewerV1', () => + jest.fn().mockImplementation(({ markdown }) =>
{markdown}
) +); + describe('SuggestionsAlert', () => { beforeEach(() => { jest.useFakeTimers();