Well, the reason is it didn't work without it, and with it it does :) . Capybara, when JS enabled, is supposed to keep trying for up to 2 seconds to find a selector. Maybe in this case it was finding it right away because the page was still showing the old stuff, failing, and not waiting to try again. I thought it would. Anyway, it's just a test. Got a better idea?