mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 07:13:22 +00:00
acceptance tests
This commit is contained in:
@@ -5,4 +5,5 @@ export type SignInWithIdentityProviderProps = DetailedHTMLProps<
|
||||
HTMLButtonElement
|
||||
> & {
|
||||
name?: string;
|
||||
e2e?: string;
|
||||
};
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import { SignInWithGoogle } from './SignInWithGoogle';
|
||||
import { render, screen } from "@testing-library/react";
|
||||
import { SignInWithGitlab } from "./SignInWithGitlab";
|
||||
|
||||
describe('<SignInWithGoogle />', () => {
|
||||
it('renders without crashing', () => {
|
||||
const { container } = render(<SignInWithGoogle />);
|
||||
expect(container.firstChild).toBeDefined();
|
||||
});
|
||||
describe("<SignInWithGitlab />", () => {
|
||||
it("renders without crashing", () => {
|
||||
const { container } = render(<SignInWithGitlab />);
|
||||
expect(container.firstChild).toBeDefined();
|
||||
});
|
||||
|
||||
it('displays the correct text', () => {
|
||||
render(<SignInWithGoogle />);
|
||||
const signInText = screen.getByText(/Sign in with Google/i);
|
||||
expect(signInText).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
it("displays the correct text", () => {
|
||||
render(<SignInWithGitlab />);
|
||||
const signInText = screen.getByText(/Sign in with Gitlab/i);
|
||||
expect(signInText).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user