mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
feat(DropdownMenu): new component (#37)
This commit is contained in:
@@ -15,9 +15,9 @@ const TooltipWrapper = defineComponent({
|
||||
|
||||
describe('Tooltip', () => {
|
||||
it.each([
|
||||
['with text', { props: { text: 'Tooltip', open: true } }],
|
||||
['with arrow', { props: { text: 'Tooltip', arrow: true, open: true } }],
|
||||
['with shortcuts', { props: { text: 'Tooltip', shortcuts: ['⌘', 'K'], open: true } }]
|
||||
['with text', { props: { text: 'Tooltip', open: true, portal: false } }],
|
||||
['with arrow', { props: { text: 'Tooltip', arrow: true, open: true, portal: false } }],
|
||||
['with shortcuts', { props: { text: 'Tooltip', shortcuts: ['⌘', 'K'], open: true, portal: false } }]
|
||||
])('renders %s correctly', async (nameOrHtml: string, options: { props?: TooltipProps, slots?: any }) => {
|
||||
const html = await ComponentRender(nameOrHtml, options, TooltipWrapper)
|
||||
expect(html).toMatchSnapshot()
|
||||
|
||||
Reference in New Issue
Block a user