I'm having issues testing the following behavior with an integration test:
When a checkbox is focused, and I press the space bar, the checkbox gets checked.
If I override the keyDown event in my component I can catch the event, but it doesn't seem to fall down to the normal behavior and doesn't check the checkbox. However, when I manually test it, it works like a charm.
For the event, I'm using this:
this.$(':checkbox:eq(0)').trigger(jQuery.Event( 'keydown', { keyCode: 32 } ))
Thank you very much for your help!
Aucun commentaire:
Enregistrer un commentaire