diff --git a/src/components/Select/WSelect.spec.ts b/src/components/Select/WSelect.spec.ts
index 2ca7ec1..75104af 100644
--- a/src/components/Select/WSelect.spec.ts
+++ b/src/components/Select/WSelect.spec.ts
@@ -1,12 +1,12 @@
import { describe, it, expect } from 'vitest'
-import { mount } from '@vue/test-utils'
+import { shallowMount } from '@vue/test-utils'
import WSelect from './WSelect.vue'
import { DropdownPosition } from './WSelect'
import Icon from '@/assets/svg/navigation-cursor.svg?component'
describe('WSelect', () => {
it('renders properly', () => {
- const wrapper = mount(WSelect, {
+ const wrapper = shallowMount(WSelect, {
emits: ['update:modelValue'],
props: {
dropdownPosition: DropdownPosition.bottom,
@@ -33,7 +33,7 @@ describe('WSelect', () => {
})
it('renders properly an icon when provided', () => {
- const wrapper = mount(WSelect, {
+ const wrapper = shallowMount(WSelect, {
emits: ['update:modelValue'],
props: {
dropdownPosition: DropdownPosition.bottom,
diff --git a/src/components/Select/__snapshots__/WSelect.spec.ts.snap b/src/components/Select/__snapshots__/WSelect.spec.ts.snap
index 81f9184..8611945 100644
--- a/src/components/Select/__snapshots__/WSelect.spec.ts.snap
+++ b/src/components/Select/__snapshots__/WSelect.spec.ts.snap
@@ -1,215 +1,85 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`WSelect > renders properly 1`] = `
-
-
-
-
-
-
-
-
-
- English
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Loading...
-
-
-
-
-
-
-
-
-
-
+ disabled="false"
+ dropdownshouldopen="[Function]"
+ filter="[Function]"
+ filterable="false"
+ filterby="[Function]"
+ getoptionkey="[Function]"
+ getoptionlabel="[Function]"
+ label="label"
+ mapkeydown="[Function]"
+ modelvalue="[object Object]"
+ multiple="false"
+ nodrop="false"
+ options="[object Object],[object Object]"
+ placeholder=""
+ pushtags="false"
+ reduce="[Function]"
+ resetonoptionschange="false"
+ searchable="false"
+ searchinputqueryselector="[type=search]"
+ selectable="[Function]"
+ selectonkeycodes="13"
+ selectontab="false"
+ taggable="false"
+ transition="dropdown"
+ uid="1"
+/>
`;
exports[`WSelect > renders properly an icon when provided 1`] = `
-
-
-
-
-
-
-
-
-
- English
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Loading...
-
-
-
-
-
-
-
-
-
-
+ disabled="false"
+ dropdownshouldopen="[Function]"
+ filter="[Function]"
+ filterable="false"
+ filterby="[Function]"
+ getoptionkey="[Function]"
+ getoptionlabel="[Function]"
+ label="label"
+ mapkeydown="[Function]"
+ modelvalue="[object Object]"
+ multiple="false"
+ nodrop="false"
+ options="[object Object],[object Object]"
+ placeholder=""
+ pushtags="false"
+ reduce="[Function]"
+ resetonoptionschange="false"
+ searchable="false"
+ searchinputqueryselector="[type=search]"
+ selectable="[Function]"
+ selectonkeycodes="13"
+ selectontab="false"
+ taggable="false"
+ transition="dropdown"
+ uid="2"
+/>
`;
diff --git a/src/components/Tooltip/WTooltip.spec.ts b/src/components/Tooltip/WTooltip.spec.ts
new file mode 100644
index 0000000..291b2da
--- /dev/null
+++ b/src/components/Tooltip/WTooltip.spec.ts
@@ -0,0 +1,19 @@
+import { describe, it, expect } from 'vitest'
+import { mount } from '@vue/test-utils'
+import WTooltip from './WTooltip.vue'
+
+describe('WTooltip', () => {
+ it('renders properly', () => {
+ const wrapper = mount(WTooltip, {
+ props: {
+ bgColor: '#000',
+ },
+ slots: {
+ main: `Text
`,
+ tooltip: `Text info
`
+ }
+ })
+
+ expect(wrapper.element).toMatchSnapshot()
+ })
+})
diff --git a/src/components/Tooltip/WTooltip.stories.ts b/src/components/Tooltip/WTooltip.stories.ts
new file mode 100644
index 0000000..02c25a3
--- /dev/null
+++ b/src/components/Tooltip/WTooltip.stories.ts
@@ -0,0 +1,30 @@
+import type { Meta, StoryObj } from '@storybook/vue3'
+import WTooltip from './WTooltip.vue'
+
+const meta: any = {
+ title: 'Example/WTooltip',
+ component: WTooltip,
+ tags: ['autodocs'],
+ argTypes: {},
+ args: {
+ bgColor: '#000',
+ },
+} satisfies Meta
+
+export default meta
+type Story = StoryObj
+
+export const Default: Story = {
+ render: (args: any) => ({
+ components: { WTooltip },
+ setup() {
+ return { args }
+ },
+ template: `Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+ ⓘ
+ `,
+ args: {
+ bgColor: 'black-950',
+ }
+ })
+}
diff --git a/src/components/Tooltip/WTooltip.vue b/src/components/Tooltip/WTooltip.vue
new file mode 100644
index 0000000..7b5c6d2
--- /dev/null
+++ b/src/components/Tooltip/WTooltip.vue
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
diff --git a/src/components/Tooltip/__snapshots__/WTooltip.spec.ts.snap b/src/components/Tooltip/__snapshots__/WTooltip.spec.ts.snap
new file mode 100644
index 0000000..acbf789
--- /dev/null
+++ b/src/components/Tooltip/__snapshots__/WTooltip.spec.ts.snap
@@ -0,0 +1,26 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`WTooltip > renders properly 1`] = `
+
+`;