Add Facebook social login
This commit is contained in:
@@ -39,15 +39,17 @@ vi.mock('react-hot-toast', () => ({
|
||||
import LoginForm from '../LoginForm';
|
||||
|
||||
describe('LoginForm', () => {
|
||||
it('renders Google login option when packageId is provided', () => {
|
||||
it('renders OAuth login options when packageId is provided', () => {
|
||||
render(<LoginForm packageId={12} />);
|
||||
|
||||
expect(screen.getByText('login.google_cta')).toBeInTheDocument();
|
||||
expect(screen.getByText('login.facebook_cta')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('does not render Google login option without packageId', () => {
|
||||
it('does not render OAuth login options without packageId', () => {
|
||||
render(<LoginForm />);
|
||||
|
||||
expect(screen.queryByText('login.google_cta')).not.toBeInTheDocument();
|
||||
expect(screen.queryByText('login.facebook_cta')).not.toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user