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
byRole
The byRole selector doesn't provide autocomplete for roles.
Provide better typings to autocomplete roles.
import { ByRoleOptions, MatcherFunction } from '@testing-library/dom'; import { ARIARole } from 'aria-query'; export const byRole = (role: ARIARole | MatcherFunction | Omit<string, ARIARole>, options?: ByRoleOptions): DOMSelector => new DOMSelector(el => DOMQueries.queryAllByRole(el, role, options));
No alternative considerations.
Yes
The text was updated successfully, but these errors were encountered:
HafizAhmedMoon
No branches or pull requests
Description
The
byRole
selector doesn't provide autocomplete for roles.Proposed solution
Provide better typings to autocomplete roles.
Alternatives considered
No alternative considerations.
Do you want to create a pull request?
Yes
The text was updated successfully, but these errors were encountered: