fix(webui,core): center breadcrumb menu on chevron and fix proxy download filename (#417)

This commit is contained in:
Yiling-J
2026-09-18 23:14:54 +08:00
committed by GitHub
parent a91d8c4521
commit 145aa6bfb4
5 changed files with 125 additions and 14 deletions
@@ -144,4 +144,20 @@ describe('BreadcrumbNav component', () => {
expect(container.querySelector('.lucide-bot')).toBeNull()
})
it('renders file actions dropdown trigger button and opens on click', () => {
render(
<QueryClientProvider client={queryClient}>
<BreadcrumbNav
{...baseProps}
fileId="file-1"
currentAsset={{ id: 'file-1', name: 'sample.mov', type: 'file', version: 1 }}
allowDownload={true}
/>
</QueryClientProvider>,
)
const triggerButton = screen.getByRole('button', { name: 'sample.mov' })
expect(triggerButton).toBeDefined()
})
})