Skip to content

fix aria-labelledby with not found id #711

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

Conversation

delca85
Copy link
Member

@delca85 delca85 commented Jul 21, 2020

What:

This should fix #710.

Why:

#681 introduces a bug that makes code fails if an element's aria-labelledby attribute has a value not existing in dom as element id .

How:

Checklist:

  • Documentation added to the
    docs site
  • Tests
  • Typescript definitions updated
  • Ready to be merged

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 38fc55c:

Sandbox Source
kentcdodds/react-testing-library-examples Configuration

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.

Sweet. Thanks!

@kentcdodds kentcdodds merged commit f854cde into testing-library:master Jul 21, 2020
@kentcdodds
Copy link
Member

🎉 This PR is included in version 7.21.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

getByLabelText fails with unclear error if aria-labelledby has an invalid target
2 participants