ruby Wait for AJAX with Capybara In a recent Rails project we had some issues with flaky feature tests where we used Capybara. Some tests would fail every second time or so. When I investigated the problem I found that it was a form that was updated with AJAX when