How to make Capybara check for visibility after some JS has run? How to make Capybara check for visibility after some JS has run? ruby ruby