test: add comprehensive test coverage structure

- 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
This commit is contained in:
William Valentin
2025-10-16 13:16:12 -07:00
parent 6a6b48cbc5
commit 7f5cf7a9e5
4 changed files with 170 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
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();
});
});