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
index a3e7d2c..291b2da 100644
--- a/src/components/Tooltip/WTooltip.spec.ts
+++ b/src/components/Tooltip/WTooltip.spec.ts
@@ -6,11 +6,11 @@ describe('WTooltip', () => {
it('renders properly', () => {
const wrapper = mount(WTooltip, {
props: {
- bgColor: '16px',
- textColor: '',
+ bgColor: '#000',
},
slots: {
- default: `Text
`
+ main: `Text
`,
+ tooltip: `Text info
`
}
})
diff --git a/src/components/Tooltip/WTooltip.stories.ts b/src/components/Tooltip/WTooltip.stories.ts
index c66f2b5..02c25a3 100644
--- a/src/components/Tooltip/WTooltip.stories.ts
+++ b/src/components/Tooltip/WTooltip.stories.ts
@@ -8,7 +8,7 @@ const meta: any = {
argTypes: {},
args: {
bgColor: '#000',
- }
+ },
} satisfies Meta
export default meta
@@ -20,7 +20,7 @@ export const Default: Story = {
setup() {
return { args }
},
- template: `Text lddsadmsandewf
+ template: `Lorem ipsum dolor sit amet, consectetur adipiscing elit.
ⓘ
`,
args: {
diff --git a/src/components/Tooltip/WTooltip.vue b/src/components/Tooltip/WTooltip.vue
index c6860d0..7b5c6d2 100644
--- a/src/components/Tooltip/WTooltip.vue
+++ b/src/components/Tooltip/WTooltip.vue
@@ -2,7 +2,7 @@
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`] = `
+
+`;