Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuring Capybara's default_max_wait_time #790

Merged
merged 2 commits into from
Feb 16, 2016

Conversation

jhawthorn
Copy link
Contributor

I had been trying to avoid this commit, which increases this timeout on CI, because we shouldn't have to. No interaction in our admin should take more than 2 seconds to occur.

Though they don't ever take that long under normal circumstances, it certainly seems like they do sometimes on CircleCI. See
any
of
these
failures
which timeout, but have the expected content by the time capybara-screenshot saves a screenshot.

This also allows reducing the default_max_wait_time to try and debug issues (all tests pass for me with 0.5 seconds locally).

@Senjai
Copy link
Contributor

Senjai commented Feb 2, 2016

I can swing it. 👍

@cbrunsdon
Copy link
Contributor

I'm 👍 for this mostly because it ALSO allows us to jam it down as well. Which is nifty.

jhawthorn and others added 2 commits February 15, 2016 15:24
Allows configuring Capybara.default_max_wait_time via ENV variable.
Locally, these tests always pass for me with capybara's default of 2.
But in a CI environment, it sometimes fails, only to show the expected
HTML from capybara-screenshot.

This also allows reducing the default_max_wait_time to try and debug
issues (tests pass for me with 0.5 seconds locally).
jhawthorn added a commit that referenced this pull request Feb 16, 2016
Allow configuring Capybara's default_max_wait_time
@jhawthorn jhawthorn merged commit 339cc85 into solidusio:master Feb 16, 2016
@jhawthorn jhawthorn deleted the default_max_wait_time branch February 16, 2016 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants