Skip to content
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

Interest in more react-testing-library style queries? #993

Closed
scottsauberv opened this issue Feb 23, 2023 · 1 comment
Closed

Interest in more react-testing-library style queries? #993

scottsauberv opened this issue Feb 23, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@scottsauberv
Copy link

Is the feature request related to a problem? Please elaborate.

I'm a big fan of React Testing Library style queries where you can do things like getByLabelText("First Name") to ensure that an input is wired up to a label for a11y reasons. Right now I don't see easy equivalents with bUnit without getting into CSS selectors which can get a little gnarly (and might not take into account both labels and aria-labels for instance).

The suggested solution

I was curious if there was an appetite for adding some of these helper queries to bUnit and if so, if you'd be willing to take some PRs after some discussion.

@linkdotnet
Copy link
Collaborator

Hey @scottsauberv - we are already tracking this request here: #938

If you wish, you can contribute to the discussion and of course a PR is always welcome.

@linkdotnet linkdotnet added the duplicate This issue or pull request already exists label Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants