diff --git a/frontend/app/components/auth/auth.spec.tsx b/frontend/app/components/auth/auth.spec.tsx index aa06a512..68cd36ee 100644 --- a/frontend/app/components/auth/auth.spec.tsx +++ b/frontend/app/components/auth/auth.spec.tsx @@ -11,10 +11,6 @@ import * as utils from './auth.utils'; import * as api from './auth.api'; import { getProviderData } from './components/oauth.utils'; -jest.mock('react-redux', () => ({ - useDispatch: () => jest.fn(), -})); - jest.mock('hooks/useTheme', () => ({ useTheme: () => 'light', })); @@ -243,6 +239,7 @@ describe('', () => { StaticStore.config.auth_providers = ['email']; const { getByText, getByPlaceholderText } = render(); + fireEvent.click(getByText('Sign In')); const input = getByPlaceholderText('Username'); diff --git a/frontend/app/components/auth/components/oauth.spec.tsx b/frontend/app/components/auth/components/oauth.spec.tsx index 1622c3a1..bdea992d 100644 --- a/frontend/app/components/auth/components/oauth.spec.tsx +++ b/frontend/app/components/auth/components/oauth.spec.tsx @@ -9,10 +9,6 @@ import { BASE_URL } from 'common/constants.config'; import { OAuth } from './oauth'; import * as api from './oauth.api'; -jest.mock('react-redux', () => ({ - useDispatch: () => jest.fn(), -})); - jest.mock('hooks/useTheme', () => ({ useTheme: () => 'light', }));