Gebruikerslijst volgt de rolhierarchie, nieuwe uitnodigingslink maken, foutkaart zonder nep-aanvraagknop
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -32,6 +32,9 @@ describe('InviteCompletePage', () => {
|
||||
// card must not talk about "system setup".
|
||||
expect(screen.getByText('Link invalid or expired')).toBeInTheDocument();
|
||||
expect(screen.queryByText(/setup required/i)).not.toBeInTheDocument();
|
||||
// No button that pretends to request a new link (there is no mail): it only leads to sign-in.
|
||||
expect(screen.queryByText(/request a new invitation link/i)).not.toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: 'Go to sign in' })).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('shows an error state for a used token', async () => {
|
||||
|
||||
@@ -119,9 +119,9 @@ export function InviteCompletePage() {
|
||||
<Button
|
||||
variant="outline"
|
||||
className="w-full"
|
||||
onClick={() => navigate({ to: '/' })}
|
||||
onClick={() => navigate({ to: '/login' })}
|
||||
>
|
||||
{t('inviteComplete.requestNewInvitationLink')}
|
||||
{t('inviteComplete.toLogin')}
|
||||
</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
Reference in New Issue
Block a user