mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-02 05:08:03 +01:00
chore(Tooltip): update
This commit is contained in:
@@ -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>
|
||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user