-
-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Labels
Description
Seems like overkill to use regex for recommended queries. Is that really what we want to propagate as the recommended pattern?
So for example the playground recommends:
screen.getByRole('button', { name: /signup/i })
But why not this simpler option?
screen.getByRole('button', { name: 'signup' })
Additionally maybe it's just me but I think:
screen.getByLabelText('Username')
is written more from a "user perspective" than:
screen.getByRole('textbox', { name: /username/i })
We just have to be careful, because folks are going to take your recommendations as gospel.
tkrotoff