Skip to content

Allow SVGElements in matchers #29

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

Merged
merged 2 commits into from
Jul 6, 2018
Merged

Conversation

jgoz
Copy link
Collaborator

@jgoz jgoz commented Jul 5, 2018

Fixes #28

What: Allows matchers to be used on SVGElement objects

Why: These matchers may be validly used on SVG elements

How: Added instanceof SVGElement check to checkHtmlElement

Checklist:

  • Documentation N/A
  • Tests
  • Ready to be merged
  • Added myself to contributors table

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kentcdodds kentcdodds merged commit dd6d4c6 into testing-library:master Jul 6, 2018
@kentcdodds
Copy link
Member

Thanks!

@gnapse
Copy link
Member

gnapse commented Jul 6, 2018

🎉 This PR is included in version 1.5.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gnapse
Copy link
Member

gnapse commented Jul 8, 2018

Thanks! Nice catch! And thank you @kentcdodds for filling in for me during my absence. I never thought I'd miss so much action on this repo in these two weeks. It's a nice surprise!

@jgoz jgoz deleted the allow-svg branch July 8, 2018 04:48
@gnapse gnapse mentioned this pull request Jul 11, 2018
4 tasks
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 this pull request may close these issues.

SVG elements fail on most matchers
3 participants