/** * Tests for Password Reset Confirm Page * Verifies Suspense wrapper and fallback */ import { render, screen } from '@testing-library/react'; import PasswordResetConfirmPage from '@/app/[locale]/(auth)/password-reset/confirm/page'; // Mock the content component jest.mock('@/app/[locale]/(auth)/password-reset/confirm/PasswordResetConfirmContent', () => ({ __esModule: true, default: () =>
Content
, })); describe('PasswordResetConfirmPage', () => { it('renders without crashing', () => { render(); expect(screen.getByTestId('password-reset-confirm-content')).toBeInTheDocument(); }); it('wraps content in Suspense boundary', () => { render(); // Content should render successfully (not fallback) expect(screen.getByTestId('password-reset-confirm-content')).toBeInTheDocument(); }); });