chore(Tooltip): update

This commit is contained in:
Benjamin Canac
2024-03-12 15:38:31 +01:00
parent a026ae176e
commit 0e0c708883
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
<template> <template>
<UTooltip text="Tooltip" :shortcuts="['⌘', 'K']" arrow> <UTooltip text="Tooltip" :shortcuts="['⌘', 'K']" arrow>
<UButton icon="i-heroicons-rocket-launch" label="Button" disabled /> <UButton label="Hover me" color="white" />
</UTooltip> </UTooltip>
</template> </template>

View File

@@ -4,7 +4,7 @@ import ComponentRender from '../component-render'
describe.skip('Tooltip', () => { describe.skip('Tooltip', () => {
it.each([ it.each([
['with content', { props: { content: 'Tooltip content', defaultOpen: true }, slots: { default: () => 'Hover me' } }] ['with text', { props: { text: 'Tooltip', open: true }, slots: { default: () => 'Hover me' } }]
])('renders %s correctly', async (nameOrHtml: string, options: { props?: TooltipProps, slots?: any }) => { ])('renders %s correctly', async (nameOrHtml: string, options: { props?: TooltipProps, slots?: any }) => {
const html = await ComponentRender(nameOrHtml, options, Tooltip) const html = await ComponentRender(nameOrHtml, options, Tooltip)
expect(html).toMatchSnapshot() expect(html).toMatchSnapshot()