mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
fix(frontend): delay and de-duplicate desktop sidebar tooltips
This commit is contained in:
1 parent
095d3a6b37
commit
d154d56645
4 files changed
+11
-8
No files matched your search
@@ -240,7 +240,7 @@ describe('SidebarItem', () => {
|
||||
expect(screen.getByRole('button')).toHaveClass('bg-accent')
|
||||
})
|
||||
|
||||
it('uses title attribute when collapsed', () => {
|
||||
it('keeps the label as the accessible name without a native title when collapsed', () => {
|
||||
render(
|
||||
<TooltipProvider>
|
||||
<SidebarItem
|
||||
@@ -251,7 +251,9 @@ describe('SidebarItem', () => {
|
||||
</TooltipProvider>
|
||||
)
|
||||
|
||||
expect(screen.getByRole('button')).toHaveAttribute('title', 'Test Item')
|
||||
const button = screen.getByRole('button')
|
||||
expect(button).not.toHaveAttribute('title')
|
||||
expect(button).toHaveAccessibleName('Test Item')
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user