-
Notifications
You must be signed in to change notification settings - Fork 690
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
ByText API page incorrectly states that it uses textContent
#1228
Comments
Thanks for opening this one @agos. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The docs page for the byText API states that
this is not true and will lead to confusion, since it's easy to find situations where trying to use
getByText
with thetextContent
of a node and not getting any matchTo Reproduce
Here is a minimal codesandbox showing a case of
getByText
not matching the textContent of a nodeExpected behavior
Either
Additional context
See also this issue on the
dom-testing-library
repoThe text was updated successfully, but these errors were encountered: