-
Notifications
You must be signed in to change notification settings - Fork 663
Description
Version
1.0.0-beta.15
Reproduction link
https://codesandbox.io/s/8yypln8828
Steps to reproduce
File Editor > src > components > HelloWorld.spec.js
The spec includes:
- Test on a single Vuetify checkbox (passes).
- Test on a dynamic checkbox (passes).
- Test on a dynamic Vuetify checkbox (fails).
What is expected?
When a click event is triggered on the Vuetify checkbox, the related model should change from undefined to true. Then when the second click event is triggered on the same Vuetify checkbox, the related model should change from true to false.
What is actually happening?
When a click event is triggered on the Vuetify checkbox, the related model changes from undefined to true. However, when the second click event is triggered on the same Vuetify checkbox, the related model doesn't change from true to false like you'd expect.
I ran into this issue when upgrading from 1.0.0-beta.12 (where it worked as expected) to 1.0.0-beta.15. So my assumption is that this is at least in someway related to vue-test-utils, and maybe not a Vuetify specific issue. Or maybe there's a preferred way to accomplish this, and my method just so happened to work in 1.0.0-beta.12, but not anymore.
Here's the actual component:
https://github.com/vuetifyjs/vuetify/tree/dev/src/components/VCheckbox