Addition of GetByTestId method to bUnit #1359
thatstatsguy
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
It sounds useful. That said, I've never needed them myself as component testing is usually only focused on one component at the time and there is less conflicts with other selectors. We also generally don't add additional APIs to the project when the user is able to do so themselves with an extension method and get the same result. More stuff to maintain for us. It has to be pretty core functionality that many users can leverage to make sense. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there
Just a shower thought - does anyone think there would be appetite for adding in a
GetByTestId
method?Having worked in Playwright for some time I've found that it is quite a useful to be able to locate specific items by test id.
https://playwright.dev/dotnet/docs/locators#locate-by-test-id
Obviously, it's possible to do this in bUnit with
but not having to type this all out would be quite nice.
Beta Was this translation helpful? Give feedback.
All reactions