Thank you for this guide. One noteworthy thing: it's best to use the screen.getByRole selector instead of getByText whenever possible. Otherwise, you may let semantic issues (e.g. a button as a link) pass.
screen.getByRole
getByText
Thank you Alex, I appreciate the feedback as I continue to build on my skill set!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thank you for this guide. One noteworthy thing: it's best to use the
screen.getByRoleselector instead ofgetByTextwhenever possible. Otherwise, you may let semantic issues (e.g. a button as a link) pass.Thank you Alex, I appreciate the feedback as I continue to build on my skill set!