PDA

View Full Version : How to fire ENTER key press event using fireEvent?



venkat.sivaraj
7 Apr 2012, 7:18 AM
Hello,
I'm trying to fire a specialkey event on a text field to test one of my functionalities using jasmine. Couldn't figure out how to pass a relevant EventObject with the relevant key code. Anyone done this before? Any pointers on the same would be helpful.

Thanks.

-Venkat

mitchellsimoens
9 Apr 2012, 11:22 AM
Venkat,

Unit test !== integration tests meaning Jasmine can test your code if it is stable but not test if user interactions are stable.