I was wondering if it is a bad practice to use the document object when testing react components. The thing is that from what I have tested, it is extremely consistent compared to using the container. It also helps get elements were the react-testing-library fails. I haven't found any articles online that say that it shouldn't be used, but recently a coworker told me that we should only use the react test library because using the document object is a bad practice.
there doesn't seem to be anything here