-
-
Save jnicklas/d8da686061f0a59ffdf7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def wait_until | |
require "timeout" | |
Timeout.timeout(Capybara.default_wait_time) do | |
sleep(0.1) until value = yield | |
value | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
worked well for me