INTO-CPS-Association/DTaaS

View on GitHub
client/test/integration/Routes/Signin.test.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import { screen } from '@testing-library/react';
import { setupIntegrationTest } from 'test/integration/integration.testUtil';
import { testPublicLayout } from './routes.testUtil';

const setup = () => setupIntegrationTest('/');

describe('Signin', () => {
  beforeEach(async () => {
    await setup();
  });

  it('renders the Sign in page with the Public Layout correctly', async () => {
    await testPublicLayout();
    expect(
      screen.getByRole('button', { name: /Sign In with GitLab/i }),
    ).toBeVisible();
    expect(screen.getByTestId(/LockOutlinedIcon/i)).toBeVisible();
  });
});