Files
fast-next-template/frontend/tests/app/(authenticated)/settings/preferences/page.test.tsx
Felipe Cardoso da021d0640 Update tests and e2e files to support locale-based routing
- Replaced static paths with dynamic locale subpaths (`/[locale]/*`) in imports, URLs, and assertions across tests.
- Updated `next-intl` mocks for improved compatibility with `locale`-aware components.
- Standardized `page.goto` and navigation tests with `/en` as the base locale for consistency.
2025-11-18 23:26:10 +01:00

28 lines
716 B
TypeScript

/**
* Tests for Preferences Page
* Verifies rendering of preferences placeholder
*/
import { render, screen } from '@testing-library/react';
import PreferencesPage from '@/app/[locale]/(authenticated)/settings/preferences/page';
describe('PreferencesPage', () => {
it('renders page title', () => {
render(<PreferencesPage />);
expect(screen.getByText('Preferences')).toBeInTheDocument();
});
it('renders placeholder message', () => {
render(<PreferencesPage />);
expect(screen.getByText(/Configure your preferences/)).toBeInTheDocument();
});
it('mentions Task 3.5', () => {
render(<PreferencesPage />);
expect(screen.getByText(/Task 3.5/)).toBeInTheDocument();
});
});