From 04bdeff92f6008f699e9ffba1ab39dbe973f6f88 Mon Sep 17 00:00:00 2001 From: salman Date: Thu, 30 Nov 2023 09:37:12 +0530 Subject: [PATCH] fix: cypress test fix for glossary_navifation --- .../EntityDropdown/MoveGlossaryEntityModal.tsx | 3 +++ .../shared/EntityDropdown/NodeParentSelect.tsx | 2 ++ .../cypress/e2e/glossary/glossary_navigation.js | 14 ++++++++++++++ 3 files changed, 19 insertions(+) diff --git a/datahub-web-react/src/app/entity/shared/EntityDropdown/MoveGlossaryEntityModal.tsx b/datahub-web-react/src/app/entity/shared/EntityDropdown/MoveGlossaryEntityModal.tsx index 37a625f58100b..eb49bb8b07e40 100644 --- a/datahub-web-react/src/app/entity/shared/EntityDropdown/MoveGlossaryEntityModal.tsx +++ b/datahub-web-react/src/app/entity/shared/EntityDropdown/MoveGlossaryEntityModal.tsx @@ -7,6 +7,7 @@ import { useUpdateParentNodeMutation } from '../../../../graphql/glossary.genera import NodeParentSelect from './NodeParentSelect'; import { useGlossaryEntityData } from '../GlossaryEntityContext'; import { getGlossaryRootToUpdate, getParentNodeToUpdate, updateGlossarySidebar } from '../../../glossary/utils'; +import { getModalDomContainer } from '../../../../utils/focus'; const StyledItem = styled(Form.Item)` margin-bottom: 0; @@ -68,6 +69,7 @@ function MoveGlossaryEntityModal(props: Props) { title="Move" visible onCancel={onClose} + getContainer={getModalDomContainer} footer={ <>