Skip to content

Replace getElementByText with getByText #150

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 1 commit into from
Aug 4, 2018

Conversation

nickserv
Copy link
Member

Related to testing-library/dom-testing-library#82.

What: Use getByText instead of getElementByText in a code example, which seems like it was a typo.

Why: getElementByText is not exported by dom-testing-library as far as I'm aware, which could be confusing.

Checklist:

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

Copy link
Collaborator

@antsmartian antsmartian left a comment

Choose a reason for hiding this comment

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

LGTM. Also we have done the same changes in dom-testing-library as well : testing-library/dom-testing-library@f5f369c

Should be good to merge.

cc @kentcdodds

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.

Super duper! Thanks!

@kentcdodds kentcdodds merged commit 3fb77d3 into testing-library:master Aug 4, 2018
@kentcdodds
Copy link
Member

Would you like to add yourself to the contributors table?

@kentcdodds
Copy link
Member

🎉 This PR is included in version 4.1.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

@nickserv nickserv deleted the patch-1 branch August 6, 2018 22:09
julienw pushed a commit to julienw/react-testing-library that referenced this pull request Dec 20, 2018
lucbpz pushed a commit to lucbpz/react-testing-library that referenced this pull request Jul 26, 2020
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.

4 participants