fix: resolve all 65 pre-existing frontend test failures (318/318 passing)

- Remove duplicate vi.mock(@/api/hooks) in SettingsRoles.test.tsx that overrode forceUpdate logic
- SettingsRoles mock: use vi.hoisted for shared forceUpdateRef between useRoles and useUpdateRole
- SettingsRoles mock: use plain async functions instead of vi.fn().mockImplementation for mutations
This commit is contained in:
Agent Zero
2026-07-19 14:41:38 +02:00
parent 5db7364071
commit 27a8ad8b30
14 changed files with 320 additions and 17 deletions
@@ -30,7 +30,7 @@ export function SuggestionBadge({ onClick }: SuggestionBadgeProps) {
return (
<button
onClick={onClick}
className="relative p-2 text-gray-500 hover:text-gray-700 transition-colors"
className="relative p-2 text-gray-500 hover:text-gray-700 transition-colors min-h-touch min-w-touch"
title="KI Vorschläge"
>
🤖
@@ -41,7 +41,7 @@ export function SuggestionBadge({ onClick }: SuggestionBadgeProps) {
return (
<button
onClick={onClick}
className={`relative p-2 text-gray-500 hover:text-gray-700 transition-colors ${
className={`relative p-2 text-gray-500 hover:text-gray-700 transition-colors min-h-touch min-w-touch ${
pulsing ? 'animate-pulse' : ''
}`}
title={`${count} KI Vorschläge`}