Wait for AJAX in Capybara