From a1adb23808df724b6021b259dad38cf5c8dfe6d0 Mon Sep 17 00:00:00 2001 From: Shailesh Parmar Date: Tue, 22 Mar 2022 10:23:50 +0530 Subject: [PATCH] Fix issue-3568: UI: DataQualityTable test is failing (#3569) --- .../DataQualityTest/Table/DataQualityTable.test.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/DataQualityTest/Table/DataQualityTable.test.tsx b/openmetadata-ui/src/main/resources/ui/src/components/DataQualityTest/Table/DataQualityTable.test.tsx index dc90fa3d847..630890a150f 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/DataQualityTest/Table/DataQualityTable.test.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/DataQualityTest/Table/DataQualityTable.test.tsx @@ -15,6 +15,12 @@ jest.mock('../../common/non-admin-action/NonAdminAction', () => { )); }); +jest.mock('../../common/rich-text-editor/RichTextEditorPreviewer', () => { + return jest + .fn() + .mockImplementation(() =>
RichTextEditorPreviewerComponent
); +}); + describe('Test DataQualityTable component', () => { it('DataQualityTable component should be render properly', async () => { const { container } = render(