Open vassilvk opened 2 years ago
Hey, I haven't tried any testing library with Splitter. Personally, I don't have experience with the testing-library
so I cannot really answer your question well.
The behavior you are seeing might be caused by the fact the Splitter won't render its children unless it's able to get the size of Splitter's parent element.
I'd have to look into the specifics of testing-library
to fix this. I can't really promise you how soon I'll have free time to do that.
Thanks for the quick response!
Is it possible to run
testing-library
tests against components which use the splitter?For example, consider the following test:
When the above test is executed, it fails as the render function generates the following HTML, which is missing the two tile divs: