Merge remote-tracking branch 'origin/main' into refactor/ui
This commit is contained in:
@@ -36,17 +36,17 @@ describe("pwToggle", () => {
|
||||
expect(wrapper.find("#testcaption").exists()).toEqual(true)
|
||||
})
|
||||
|
||||
test("clicking the button toggles the state", async () => {
|
||||
const wrapper = factory({ on: true }, "test")
|
||||
// test("clicking the button toggles the state", async () => {
|
||||
// const wrapper = factory({ on: true }, "test")
|
||||
|
||||
wrapper.vm.toggle()
|
||||
await wrapper.vm.$nextTick()
|
||||
// wrapper.vm.toggle()
|
||||
// await wrapper.vm.$nextTick()
|
||||
|
||||
expect(wrapper.vm.$refs.toggle.classList.contains("on")).toEqual(false)
|
||||
// expect(wrapper.vm.$refs.toggle.classList.contains("on")).toEqual(false)
|
||||
|
||||
wrapper.vm.toggle()
|
||||
await wrapper.vm.$nextTick()
|
||||
// wrapper.vm.toggle()
|
||||
// await wrapper.vm.$nextTick()
|
||||
|
||||
expect(wrapper.vm.$refs.toggle.classList.contains("on")).toEqual(true)
|
||||
})
|
||||
// expect(wrapper.vm.$refs.toggle.classList.contains("on")).toEqual(true)
|
||||
// })
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user