Gebruikerslijst: verlopen uitnodiging tonen, Beheerder mag uitnodiging intrekken, neutrale tekst bij ongeldige link

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-08 15:49:33 +01:00
co-authored by Claude Sonnet 5.5
parent ed7a172f44
commit 0932ee36b3
9 changed files with 136 additions and 8 deletions
@@ -28,6 +28,10 @@ describe('InviteCompletePage', () => {
expect(await screen.findByTestId('invite-error')).toBeInTheDocument();
expect(screen.queryByTestId('invite-name-input')).not.toBeInTheDocument();
// Neutral wording: expired, withdrawn and unknown links look the same to the visitor, and the
// card must not talk about "system setup".
expect(screen.getByText('Link invalid or expired')).toBeInTheDocument();
expect(screen.queryByText(/setup required/i)).not.toBeInTheDocument();
});
it('shows an error state for a used token', async () => {
@@ -110,7 +110,7 @@ export function InviteCompletePage() {
<div className="flex min-h-svh items-center justify-center bg-secondary/40 p-4" data-testid="invite-error">
<Card className="w-full max-w-sm">
<CardHeader>
<CardTitle className="text-destructive">{t('errors.setupRequired')}</CardTitle>
<CardTitle className="text-destructive">{t('inviteComplete.invalidTitle')}</CardTitle>
</CardHeader>
<CardContent className="space-y-4">
<p className="text-sm text-muted-foreground">