Replies: 1 comment
-
With the previous version the user could not express moving from one element to another. Finding the closest common ancestor when moving from one element to another, and dispatching An issue collecting information about this and discussing the constraints of this or any other implementation would be welcome. |
Beta Was this translation helpful? Give feedback.
-
Hi there,
we've recently upgraded to v14 from v13.5 and experienced a breaking test that seems to be an undocumented breaking change. I'm starting this discussion to make sure if it was intended or not. I don't have a reproduction repo (yet), so please bear with me.
The environment is Nextjs / next-jest / jsdom. We have a Tippy (tooltip on hover) on a container element like this:
=> hovering on "Nested Content" or any of its parents triggers a tooltip "Tooltip Content" to be shown.
We tested it like this in v13.5:
In v14 it should be like this:
But this actually fails to trigger the tooltip.
If we use
.parentElement
, the test passes again:I noticed that
hover
used to iterate over the target's parent elements in v13.5 but doesn't seem to do that in v14. I don't see any mention of this in the docs, so was that intended behavior that broke with the new version or was it never intended to behave that way?Beta Was this translation helpful? Give feedback.
All reactions