Closed
Description
Describe the Feature
In short, I want type the role as Role
instead of string | Regexp
When using byRole
queries, the role is typed as string | Regexp
. What's the most problematic imo is to not have any autocompletion. It takes more time but mostly it can result in tests failing because of a misspell. This could be solved by using the same trick we use for fireEvent
and we could keep the same type. However I don't think any string should be allowed but only valid roles. Also I don't see valid use cases for using regexp with role queries so I don't think it should be allowed. I don't know why it's supported though so I may be missing valid use cases.
What are your thoughts on this @mdjastrzebski @MattAgn ?
Possible Implementations
Related Issues
Metadata
Metadata
Assignees
Labels
No labels