-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(tests): firefox doesn't fire focus/blur events in tests #2903
Comments
This seems to be an issue on Chrome 56 as well (at least locally). |
devversion
added a commit
to devversion/material2
that referenced
this issue
Feb 4, 2017
On Saucelabs, browsers will run simultaneously and therefore can't focus all browser windows at the same time. This is problematic when testing focus states. Chrome and Firefoxonly fire FocusEvents when the window is focused. This issue also appears locally. Fixes angular#2903.
devversion
added a commit
to devversion/material2
that referenced
this issue
Feb 4, 2017
On Saucelabs, browsers will run simultaneously and therefore can't focus all browser windows at the same time. This is problematic when testing focus states. Chrome and Firefoxonly fire FocusEvents when the window is focused. This issue also appears locally. Fixes angular#2903.
devversion
added a commit
to devversion/material2
that referenced
this issue
Feb 4, 2017
On Saucelabs, browsers will run simultaneously and therefore can't focus all browser windows at the same time. This is problematic when testing focus states. Chrome and Firefoxonly fire FocusEvents when the window is focused. This issue also appears locally. Fixes angular#2903.
tinayuangao
pushed a commit
that referenced
this issue
Feb 8, 2017
* chore(focus-classes): fix failing tests when browser is blurred On Saucelabs, browsers will run simultaneously and therefore can't focus all browser windows at the same time. This is problematic when testing focus states. Chrome and Firefoxonly fire FocusEvents when the window is focused. This issue also appears locally. Fixes #2903. * Extract patch logic into extra function
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Had to exempt firefox from tests added in ##2646 due to this issue. It seems to be a result of firefox not firing the events when it isn't the active window. I was able to reproduce by doing the following:
The internet has some mentions of setting a firefox pref, focusmanager.testmode = true as a potential solution for this.
The text was updated successfully, but these errors were encountered: