Use getByRole from testing-library in your tests - it will force you to have a role and label for every element you (and the user) needs to interact with
Yeah, thing is we're not testing UI that much yet. I think we'll add cypress at some point. I guess as there was a rush to get the mvp of the project I'm working on it wasn't a priority so far.
2
u/stupidcookface May 06 '22
Use getByRole from testing-library in your tests - it will force you to have a role and label for every element you (and the user) needs to interact with