mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-02 14:04:50 +00:00
feat(search): render results in responsive card grid with sprite preview and new-tab navigation (#479)
* feat(search): render results in responsive card grid with sprite preview and new-tab navigation * fix(search): align semantic matched duration badge style with standard duration badge * fix(webui): use pointer cursor instead of crosshair cursor for sprite scrubber on hover
This commit is contained in:
@@ -96,4 +96,19 @@ describe('FolderCard', () => {
|
||||
renderComponent({ item: folderItem, isRecentlyDeleted: true })
|
||||
expect(screen.queryByTestId('folder-card-days-left')).toBeNull()
|
||||
})
|
||||
|
||||
it('does not render selection checkbox when hideCheckbox is true', () => {
|
||||
renderComponent({ item: folderItem, hideCheckbox: true })
|
||||
expect(screen.queryByRole('checkbox')).toBeNull()
|
||||
})
|
||||
|
||||
it('renders selection checkbox by default when hideCheckbox is false or omitted', () => {
|
||||
renderComponent({ item: folderItem })
|
||||
expect(screen.getByRole('checkbox')).toBeTruthy()
|
||||
})
|
||||
|
||||
it('does not render 3-dot dropdown menu when hideActions is true', () => {
|
||||
renderComponent({ item: folderItem, hideActions: true })
|
||||
expect(screen.queryByRole('button')).toBeNull()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user