|
@@ -31,6 +31,7 @@ type CommonProps = {
|
|
|
pageInfo?: IPageInfoAll,
|
|
pageInfo?: IPageInfoAll,
|
|
|
isEnableActions?: boolean,
|
|
isEnableActions?: boolean,
|
|
|
forceHideMenuItems?: ForceHideMenuItems,
|
|
forceHideMenuItems?: ForceHideMenuItems,
|
|
|
|
|
+ dataTestId?: string
|
|
|
|
|
|
|
|
onClickBookmarkMenuItem?: (pageId: string, newValue?: boolean) => Promise<void>,
|
|
onClickBookmarkMenuItem?: (pageId: string, newValue?: boolean) => Promise<void>,
|
|
|
onClickDuplicateMenuItem?: (pageId: string) => Promise<void> | void,
|
|
onClickDuplicateMenuItem?: (pageId: string) => Promise<void> | void,
|
|
@@ -50,6 +51,7 @@ const PageItemControlDropdownMenu = React.memo((props: DropdownMenuProps): JSX.E
|
|
|
const { t } = useTranslation('');
|
|
const { t } = useTranslation('');
|
|
|
|
|
|
|
|
const {
|
|
const {
|
|
|
|
|
+ dataTestId,
|
|
|
pageId, isLoading,
|
|
pageId, isLoading,
|
|
|
pageInfo, isEnableActions, forceHideMenuItems,
|
|
pageInfo, isEnableActions, forceHideMenuItems,
|
|
|
onClickBookmarkMenuItem, onClickDuplicateMenuItem, onClickRenameMenuItem, onClickDeleteMenuItem,
|
|
onClickBookmarkMenuItem, onClickDuplicateMenuItem, onClickRenameMenuItem, onClickDeleteMenuItem,
|
|
@@ -168,7 +170,11 @@ const PageItemControlDropdownMenu = React.memo((props: DropdownMenuProps): JSX.E
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
- <DropdownMenu positionFixed modifiers={{ preventOverflow: { boundariesElement: undefined } }}>
|
|
|
|
|
|
|
+ <DropdownMenu
|
|
|
|
|
+ data-testid={dataTestId || ''}
|
|
|
|
|
+ positionFixed
|
|
|
|
|
+ modifiers={{ preventOverflow: { boundariesElement: undefined } }}
|
|
|
|
|
+ >
|
|
|
{contents}
|
|
{contents}
|
|
|
</DropdownMenu>
|
|
</DropdownMenu>
|
|
|
);
|
|
);
|