Skip to content

Instantly share code, notes, and snippets.

@ChristianPeters
Created June 27, 2014 14:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChristianPeters/e39bed18299afd278f2a to your computer and use it in GitHub Desktop.
Save ChristianPeters/e39bed18299afd278f2a to your computer and use it in GitHub Desktop.
Wait longer in Capybara
around { |example| with_wait_time(6) { example.run } }
def with_wait_time(wait_time = Capybara.default_wait_time)
previous_wait_time = Capybara.default_wait_time
Capybara.default_wait_time = wait_time
yield
ensure
Capybara.default_wait_time = previous_wait_time
end
@skorth
Copy link

skorth commented Jun 30, 2014

Did you wrap your workaround into the helper method?

@gabeodess
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment