We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
getByRole("group")
address
@testing-library/dom
I have React component that contains address tag :
// component.jsx const Component = () => { return ( <address> <span>street Name</span> <span>postal code and city</span> <span>country</span> </address> ) }
All i wanted is to test that component in spec file :
// component.test.jsx within(screen.getByRole("group")).getByText("street Name");
I was unable to match that address with role group
group
Following W3C address tag has role group, still I was unable to match it.
The text was updated successfully, but these errors were encountered:
To find the elements we make use of aria-query. The current version that we use (5.1.3) doesn't include the address field.
Upgrading aria-query to v5.3.0 solves this problem. This is included in our v10.0.0-alpha release.
Sorry, something went wrong.
No branches or pull requests
@testing-library/dom
version: 9.3.3What you did:
I have React component that contains
address
tag :All i wanted is to test that component in spec file :
What happened:
I was unable to match that
address
with rolegroup
Problem description:
Following W3C
address
tag has rolegroup
, still I was unable to match it.The text was updated successfully, but these errors were encountered: