Skip to content

Commit 8033bfe

Browse files
test firsts screenshots components
1 parent 4be8923 commit 8033bfe

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { expect, test } from "vitest"
2+
import { render } from "vitest-browser-vue"
3+
4+
import ColorPicker from "@/components/Viewer/Options/ColorPicker"
5+
import { vuetify } from "../../../utils"
6+
7+
test("Graphic test for ColorPicker", async () => {
8+
const component = await render(ColorPicker, {
9+
global: {
10+
plugins: [vuetify],
11+
},
12+
})
13+
await expect(component.container).toMatchScreenshot()
14+
})
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
import { expect, test } from "vitest"
22
import { render } from "vitest-browser-vue"
33

4-
import VisibilitySwitch from "@/components/Viewer/Options/VisibilitySwitch.vue"
4+
import VisibilitySwitch from "@/components/Viewer/Options/VisibilitySwitch"
55
import { vuetify } from "../../../utils"
66

7-
console.log("VisibilitySwitch", VisibilitySwitch)
8-
97
test("Graphic test for VisibilitySwitch", async () => {
108
const component = await render(VisibilitySwitch, {
119
global: {
1210
plugins: [vuetify],
1311
},
1412
})
15-
console.log("component", component)
16-
await expect(component).toMatchScreenshot()
13+
await expect(component.container).toMatchScreenshot("VisibilitySwitch")
1714
})
17.6 KB
Loading
1.89 KB
Loading

0 commit comments

Comments
 (0)