Open s3dse opened 2 years ago
I had a typo in the wapper-div approach. It now looks like this:
const transitionStub = () => ({
render: function(h) {
return h('div', {}, this.$options._renderChildren)
}
})
Now I get rid of the error 'Multiple root nodes returned...' but I still do not get the popover content via wrapper. The output of wrapper.html()
:
<span id="datepick"><input id="datepick-input" class="bg-white border px-2 py-1 rounded"><div data-v-39b30300="" class="vc-popover-content-wrapper"><div data-v-39b30300=""></div></div></span>
I would highly appreciate some hint on how to access the content of the popover.
I cannot get the popover to open using vue-test-utils with jest. I picked up the
transitionStub
workaround from the vue-test-utils guide: https://v1.test-utils.vuejs.org/guides/#common-tips. However, I just receive the warning that multiple root nodes are not allowed.I picked up the
transitionStub
from the vue-test-utils guide. However, I just receive the warning that multiple root nodes are not allowed.Also wrapping the nodes into a div did not work. Did someone manage to get the popover to display in JSDOM?