-
Notifications
You must be signed in to change notification settings - Fork 15
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
Selector.oneOf #49
Comments
Rather than A downside of the |
Hm, should that matter? It seems to me that if the test author is relying on that ordering, this function is not the right tool for the job! |
To me, this is a point in favor of The way I see it, if we take the time to make nice error messages for |
@avh4 proposed:
The use case would be writing a reusable function to detect equivalent UI elements—e.g. a
fancyButton
function that queries for buttons with either the classsmallFancyButton
orlargeFancyButton
.He proposed two potential APIs. One was:
The other potential API he proposed was:
The
oneOf
API seems like a good choice to me.The text was updated successfully, but these errors were encountered: