test(users): add lifecycle E2E suite and harden admin contracts

This commit is contained in:
neon
2026-04-02 04:05:00 -06:00
parent 6115656153
commit 00ecdc34cd
15 changed files with 1321 additions and 33 deletions
+7 -1
View File
@@ -154,12 +154,18 @@ function onSaved(newResetUrl?: string) {
<TooltipTrigger as-child>
<button
@click="handleResetPassword(user.id)"
:disabled="user.provisioningMethod === 'oidc'"
class="p-1.5 rounded text-muted-foreground hover:text-foreground hover:bg-muted transition-colors"
:class="
user.provisioningMethod === 'oidc' ? 'cursor-not-allowed opacity-50 hover:text-muted-foreground hover:bg-transparent' : ''
"
>
<KeyRound :size="14" />
</button>
</TooltipTrigger>
<TooltipContent>Reset password</TooltipContent>
<TooltipContent>
{{ user.provisioningMethod === 'oidc' ? 'OIDC users reset passwords in their identity provider' : 'Reset password' }}
</TooltipContent>
</Tooltip>
<Tooltip>
<TooltipTrigger as-child>