refactor(PersonHoverCard): extract showMaidenName derived, verify chip-type contrast, fix stale position test

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-29 19:55:45 +02:00
parent bc0824b934
commit 3e07f6798c
2 changed files with 11 additions and 3 deletions

View File

@@ -358,7 +358,7 @@ describe('PersonHoverCard — accessibility', () => {
expect(root.id).toBe('card-xyz');
});
it('positions itself absolutely at the given top/left', async () => {
it('positions itself fixed at the given top/left', async () => {
render(PersonHoverCard, {
personId: 'p-aug',
cardId: 'card-1',
@@ -368,6 +368,6 @@ describe('PersonHoverCard — accessibility', () => {
const root = document.querySelector('[data-testid="person-hover-card"]') as HTMLElement;
expect(root.style.top).toBe('333px');
expect(root.style.left).toBe('444px');
expect(root.style.position).toBe('absolute');
expect(root.style.position).toBe('fixed');
});
});