- Add accessibility tests for ResetPasswordPage component - Add performance tests for schedule generation - Add visual regression tests with snapshot baselines - Establish testing patterns for UI accessibility compliance - Include performance benchmarks for core utilities
15 lines
512 B
TypeScript
15 lines
512 B
TypeScript
import React from 'react';
|
|
import { render } from '@testing-library/react';
|
|
import ResetPasswordPage from '../../components/auth/ResetPasswordPage';
|
|
|
|
describe('Visual Baseline: ResetPasswordPage', () => {
|
|
beforeEach(() => {
|
|
window.history.replaceState({}, 'Test', '/reset-password?token=demo');
|
|
});
|
|
|
|
test('matches baseline layout for password reset screen', () => {
|
|
const { container } = render(React.createElement(ResetPasswordPage));
|
|
expect(container.firstChild).toMatchSnapshot();
|
|
});
|
|
});
|