Admin-teksten en merklogo: Weergavenaam, Wachtwoord wijzigen, Eerste account aanmaken, logo per thema

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-08 14:36:10 +01:00
co-authored by Claude Sonnet 5.5
parent cd81723bf5
commit 55dcab121b
20 changed files with 350 additions and 25 deletions
@@ -6,6 +6,7 @@ import { renderApp, mockAuthenticated, mockGuest } from '@/test/utils';
import { server } from '@/mocks/server';
import { API_BASE } from '@/features/auth/mocks/fixtures';
import { _resetSetupStatusCache } from '@/router';
import i18n from '@/i18n/config';
beforeEach(() => {
_resetSetupStatusCache();
@@ -22,6 +23,23 @@ describe('ProfilePage', () => {
expect(screen.getByTestId('profile-role-badge')).toBeInTheDocument();
});
it('titles the password card with what it does, not "Security"', async () => {
mockAuthenticated();
renderApp('/profile');
const title = await screen.findByTestId('profile-security-title', {}, { timeout: 10000 });
expect(title).toHaveTextContent(i18n.t('profile.securityTitle'));
expect(title).not.toHaveTextContent('Security');
expect(i18n.t('profile.securityTitle', { lng: 'nl' })).toBe('Wachtwoord wijzigen');
});
it('labels the name field "Weergavenaam" in Dutch', () => {
expect(i18n.t('profile.name', { lng: 'nl' })).toBe('Weergavenaam');
expect(i18n.t('inviteComplete.nameLabel', { lng: 'nl' })).toBe('Weergavenaam');
expect(i18n.t('setup.nameLabel', { lng: 'nl' })).toBe('Weergavenaam');
expect(i18n.t('setup.title', { lng: 'nl' })).toBe('Eerste account aanmaken');
});
it('pre-fills name and email from authenticated user', async () => {
mockAuthenticated();
renderApp('/profile');
@@ -265,7 +265,9 @@ export function ProfilePage() {
{/* Security card */}
<Card>
<CardHeader>
<CardTitle className="text-base">Security</CardTitle>
<CardTitle className="text-base" data-testid="profile-security-title">
{t('profile.securityTitle')}
</CardTitle>
</CardHeader>
<CardContent>
<Button