You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently any tests using focus/blur events in Firefox will currently fail unless the window has focus. I am currently running multiple launchers and have an event listener to trigger a method when an input looses focus. I have a test that works similar to this:
it('Should trigger the blur event',function(){varinput=document.getElementById('text-input');spyOn(form,'blurHandler');input.focus();input.blur();expect(form.blurHandler).toHaveBeenCalled();});
This runs in chrome, but Firefox will not run the text case unless I manually focus the window and refresh the page
I had found a little bit of information on a user_pref "focusmanager.testmode" which was related to selenium testing, so I have tried adding a custom launcher to my karma config like so:
Currently any tests using focus/blur events in Firefox will currently fail unless the window has focus. I am currently running multiple launchers and have an event listener to trigger a method when an input looses focus. I have a test that works similar to this:
This runs in chrome, but Firefox will not run the text case unless I manually focus the window and refresh the page
I had found a little bit of information on a user_pref "focusmanager.testmode" which was related to selenium testing, so I have tried adding a custom launcher to my karma config like so:
Unfortunately this also does not have any effect on the failing unit tests.
The text was updated successfully, but these errors were encountered: