-
Notifications
You must be signed in to change notification settings - Fork 665
Description
Version
1.0.0-beta.22
Reproduction link
https://github.com/benm-eras/VueDemo/tree/transition-tests
Steps to reproduce
I have used the latest version of Vue CLI to scaffold an app, and added a simple component to demonstrate my issue. Just clone my repo and switch to the transition-tests
branch. Then run yarn run serve
to see it working as intended, or yarn run test
to see the tests failing.
It is a minimal reproduction of a component that will form the basis for modal dialogs. Ultimately I am using Animate.css to add nice transitions, and I want different transitions for the backdrop (fade) and content (zoom). The only way I have found of making this work is to have one transition component inside the other, and use the javascript hooks to show/hide each other.
It works great in the browser, but the javascript hooks don't seem to run during unit tests, even when introducing delays before assertion.
What is expected?
The javascript hooks on the transition components should run just like they do in the browser.
What is actually happening?
The javascript hooks are not running during unit tests.
Having read through some previous issues, I understand that the transition and transition group components are automatically stubbed, so I wouldn't be surprised if I have missed some setup or configuration needed to make this work. If that is the case I would greatly appreciate any advice.