Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I use the .not.toHaveFocus() assertion, the console message seems incorrect #520

Closed
gerardo-rodriguez opened this issue Jun 28, 2022 · 1 comment 路 Fixed by #557
Closed

Comments

@gerardo-rodriguez
Copy link
Member

It seems the Execptect element with focus messaging is incorrect. Or at least it's confusing. 馃

I would expect that to read something like Expected element to not have focus

the-same

@calebeby
Copy link
Member

@gerardo-rodriguez Thanks!

Looks like this is a jest-dom bug: testing-library/jest-dom#447.

Once I update that dependency should be fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants