Skip to content

(tests): firefox doesn't fire focus/blur events in tests #2903

Closed

Description

@mmalerba

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:

  1. patch Add directive to determine how elements were focused. #2646
  2. remove firefox exemption from tests
  3. switch local karma tests to use firefox
  4. start tests and click the firefox window to make sure its active as soon as it pops up
  5. tests pass
  6. start tests again, click away from the firefox window as soon as it pops up to make sure its inactive
  7. tests fail

The internet has some mentions of setting a firefox pref, focusmanager.testmode = true as a potential solution for this.

Activity

  1. crisbeto commented on Feb 4, 2017

    @crisbeto
    Member

    This seems to be an issue on Chrome 56 as well (at least locally).

  2. added 3 commits that reference this issue on Feb 4, 2017
    09d14cf
    6deb9db
    c9f45cf
  3. added a commit that references this issue on Feb 8, 2017
    478a2e4
  4. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  5. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions