{"size": 774, "ext": "js", "max_stars_repo_path": "pages/reset-password.test.js", "max_stars_repo_name": "tyrro/react-survey", "max_stars_repo_stars_event_min_datetime": "2022-03-07T07:30:19.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-16T10:38:14.000Z", "max_issues_repo_path": "pages/reset-password.test.js", "max_issues_repo_name": "tyrro/react-survey", "max_issues_repo_issues_event_min_datetime": "2022-03-11T09:43:01.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-30T02:14:04.000Z", "max_forks_repo_path": "pages/reset-password.test.js", "max_forks_repo_name": "tyrro/react-survey", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 6, "max_issues_count": 46, "max_forks_count": null, "avg_line_length": 32.25, "max_line_length": 114, "alphanum_fraction": 0.7131782946}
import { render, screen } from '@testing-library/react';

import { passwordResetFormTestIds } from '@/components/forms/PasswordReset';
import PasswordReset, { passwordResetPageTestIds } from './reset-password.page';

describe('PasswordReset', () => {
  beforeEach(() => {
    render(<PasswordReset />);
  });

  it('renders a password reset headline', () => {
    const headlineText = screen.getByTestId(passwordResetPageTestIds.headlineText);

    expect(headlineText).toBeVisible();
    expect(headlineText).toHaveTextContent('Enter your email to receive instruction for resetting your password');
  });

  it('renders a password reset form', () => {
    const logInForm = screen.getByTestId(passwordResetFormTestIds.form);

    expect(logInForm).toBeVisible();
  });
});
