We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1144a8 commit eeb74c3Copy full SHA for eeb74c3
tests/isVisible.spec.ts
@@ -30,6 +30,15 @@ describe('isVisible', () => {
30
expect(wrapper.find('span').isVisible()).toBe(true)
31
})
32
33
+ it('returns false when element parent is invisible via v-show', () => {
34
+ const Comp = {
35
+ template: `<div v-show="false"><span /></div>`
36
+ }
37
+ const wrapper = mount(Comp)
38
+
39
+ expect(wrapper.find('span').isVisible()).toBe(false)
40
+ })
41
42
it('element becomes hidden reactively', async () => {
43
const Comp = {
44
template: `<button @click="show = false" /><span v-show="show" />`,
0 commit comments