ember-test-helpers icon indicating copy to clipboard operation
ember-test-helpers copied to clipboard

triggerEvent issue IE 11

Open santanapaulo opened this issue 5 years ago • 4 comments

Hi there. I have been testing my application on IE 11, and maybe I found an interesting "bug". When I wrote a test that triggers an event blur, it worked very fine on Google Chrome, but it does not on IE 11. The test executes the triggerEvent function, but the action is not really executed.

This is how the test is implemented: capturar4

This step gets an "ok", but the field is still focused. Which means that the action that is supposed to be fired, it's not.

santanapaulo avatar Aug 10 '18 17:08 santanapaulo

FWIW, We have a custom blur() helper that we have implemented, and its tests do pass on IE11.

rwjblue avatar Aug 10 '18 17:08 rwjblue

@rwjblue is there any documentation where I can read about it?

santanapaulo avatar Aug 10 '18 18:08 santanapaulo

Yep! The API docs are linked to from the README.

https://github.com/emberjs/ember-test-helpers/blob/master/API.md#blur

rwjblue avatar Aug 10 '18 18:08 rwjblue

I am still getting an error. I had tried triggerEvent('element', blur|focusout|) and the blur function, and still not works. The IE 11 seems not fire the event during tests.

santanapaulo avatar Aug 10 '18 19:08 santanapaulo