Wait for Ajax call to finish for Capybara
<p>I am fetching data from a server(via ajax) using 3 select dropdowns. I want to write an integration test where I need to wait for the ajax request to finish then select a value from the next dropdown. </p>

<p>So far I am waiting for some seconds before doing the next select but that's not reliable and not a good solution.</p>