Need a way to wait until all react callbacks have been processed for a react component
I am working on an interaction test for a react component. When I setup or update my app, the react component goes through a rendering cycle. So before I dispatch interaction events, I need wait for all the callbacks to be successfully processed and the component be settled. Is there is a good way to do such waiting in the test