You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue:
When conducting unit tests using with vitest, testing-library and vue-tippy, I've encountered an unexpected behavior related to the tooltip's appearance.
Description:
We're utilizing vue-tippy in our project, where we pass the tooltip content using the <slot name="content">. In our unit tests, which employ the testing-library, we observed that the tooltip does not display. I've tracked the issue to this specific line of code.
Temporary Fix:
As a workaround in our unit tests, overwriting the onShow prop as shown below makes the tooltip appear:
setDefaultProps({// Overriding the default `onShow` makes the tooltip appear// Reference: https://github.com/KABBOUCHI/vue-tippy/blob/b1f4f447b5da60f391b8550c52cd5f959f21551d/src/composables/useTippy.ts#L23onShow: ()=>{},});
Could you provide some insights into this behavior? Is there something I might be overlooking or is this a potential issue with the library?
Thank you in advance!
The text was updated successfully, but these errors were encountered:
Issue:
When conducting unit tests using with
vitest
,testing-library
andvue-tippy
, I've encountered an unexpected behavior related to the tooltip's appearance.Description:
We're utilizing
vue-tippy
in our project, where we pass the tooltip content using the<slot name="content">
. In our unit tests, which employ the testing-library, we observed that the tooltip does not display. I've tracked the issue to this specific line of code.Our Code:
Temporary Fix:
As a workaround in our unit tests, overwriting the
onShow
prop as shown below makes the tooltip appear:Could you provide some insights into this behavior? Is there something I might be overlooking or is this a potential issue with the library?
Thank you in advance!
The text was updated successfully, but these errors were encountered: