Created by: RyanBerliner
Resolves #32372 (closed), resolves #31646 (closed)
This points out that components that transition may have a blind spot in testing. Since transition duration & delay is computed using getTransitionDurationFromElement(element), which gets transitions from css, its always going to be returning 0 in the unit tests unless otherwise mocked or styled inline. That means that any components that use this transition method will have tests that mostly ignore them... which may not actually matter (likely true), but at least in this case it does matter.
Ideal in testing you'd mock the actual getTransitionDurationFromElement(element)
imo, and just return the duration, however I was having some trouble getting jasmine spys to properly do this. I went for the next best thing in this case, which is mocking computed styles to get a non-zero return from that function. Happy to change it if anyones got ideas.
Preview: https://deploy-preview-33289--twbs-bootstrap.netlify.app/docs/5.0/components/tooltips/