Skip to content

Commit

Permalink
chore: Fix user menu test
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCizmar committed Dec 3, 2024
1 parent fd8441a commit 1c8316a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions webapp/src/component/security/UserMenu/UserMenuItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const UserMenuItems: FC<{ onClose: () => void }> = ({ onClose }) => {
to={LINKS.USER_API_KEYS.build()}
selected={location.pathname === LINKS.USER_API_KEYS.build()}
onClick={props.onClose}
data-cy="user-menu-api-keys"
data-cy="user-menu-user-settings"
>
{t('user_menu_api_keys')}
</MenuItem>
Expand All @@ -64,7 +64,7 @@ export const UserMenuItems: FC<{ onClose: () => void }> = ({ onClose }) => {
to={LINKS.USER_PATS.build()}
selected={location.pathname === LINKS.USER_PATS.build()}
onClick={props.onClose}
data-cy="user-menu-pats"
data-cy="user-menu-user-settings"
>
{t('user_menu_pats')}
</MenuItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Link, LINKS } from 'tg.constants/links';

import { NavigationItem } from 'tg.component/navigation/Navigation';
import { BaseSettingsView } from 'tg.component/layout/BaseSettingsView/BaseSettingsView';
import { useConfig } from 'tg.globalContext/helpers';
import { createAdder } from 'tg.fixtures/pluginAdder';
import { getEe } from '../../../plugin/getEe';

Expand All @@ -18,7 +17,6 @@ export const BaseAdministrationView: React.FC<Props> = ({
...otherProps
}) => {
const { t } = useTranslate();
const config = useConfig();

const { useAddAdministrationMenuItems } = getEe();
const addItems = useAddAdministrationMenuItems();
Expand Down

0 comments on commit 1c8316a

Please sign in to comment.