cucumberjs not java
I have an angular component that uses a directive to change focus when x characters are entered into the input. I would like to verify in my cucumber tests.
1) does webElement.sendKeys trigger key events? I have tried sendKeys(1,9,9,9) but don'tknow if the events are being triggered
2) how can I listen for DOM events like paste, copy, keyup, etc... in a cucumber test?
I can't find any complete examples for cucumberjs and not sure the java examples really translate.