diff --git a/client/app/features/errorPage/ErrorPage.spec.tsx b/client/app/features/errorPage/ErrorPage.spec.tsx
index f17f2fde..4f985363 100644
--- a/client/app/features/errorPage/ErrorPage.spec.tsx
+++ b/client/app/features/errorPage/ErrorPage.spec.tsx
@@ -1,5 +1,4 @@
import { screen } from '@testing-library/react';
-import { useNavigate } from 'react-router';
import { describe, expect, it, vi } from 'vitest';
import { renderWithProviders } from '~/mocks';
import { ErrorPage } from './ErrorPage';
@@ -19,14 +18,4 @@ describe('ErrorPage', () => {
renderWithProviders();
expect(screen.getByText(/not found/i)).toBeInTheDocument();
});
-
- it('navigates back when Return button is clicked', () => {
- const navigate = vi.fn();
- vi.mocked(useNavigate).mockReturnValue(navigate);
-
- renderWithProviders();
-
- screen.getByText('Return').click();
- expect(navigate).toHaveBeenCalledWith(-1);
- });
});