-
Notifications
You must be signed in to change notification settings - Fork 260
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
convert cucumber to capybara #457
Conversation
I'm having trouble figuring out why adding poltergeist is causing these timeout, since the same tests worked with cucumber. I imagine it's some default cucumber setting being applied that is not with capybara. If someone else could take a look, that would be a huge help. maybe @stardust66 or @DeeDeeG . |
I didn't realize that this is also failing in |
Oddly enough, this: #448 is the one PR related to docker that is at about the right spot in the commit history. Maybe try removing the |
By the way, I'm getting a lot of useful info to track down this problem by viewing the history of all PRs, including closed ones. That shows about when this started happening (where red xes start showing up.) https://github.com/RefugeRestrooms/refugerestrooms/pulls?utf8=✓&q=is%3Apr |
@DeeDeeG it times out with or without that file. also, the most recent develop merged would have failed if that had something to do with it. I'm thinking it's a) something new unrelated to a change (external api calls or something) or b) something flaky that's only happening some time that was introduced recently I'm leaning towards a, since I've yet to get the tests to pass and they seem to be failing consistently in the same spot |
I'd like to set up a PR or two exclusively for some Travis debugging. Will do soon. |
Would folks be interested in setting up Travis not to use Docker, just to keep the Travis setup simpler, more low-level, hopefully less moving parts and less breakable? |
After trying some things, I have to agree with this. I do not think this is a problem we caused ourselves in this repo. It looks more like one of our dependencies has a bug. All my recent PRs tested various small changes we could make. All of said PRs still had the timeouts. So that seems to rule out a lot of the possible causes within our repo. |
I cannot figure out what might be wrong here. I tried a few more things:
Still having no luck tracking this down. It's so bizarre that a change in our code didn't trigger this |
For what it's worth (not a lot in this case?) They seem to be baffled
by some similar things upstream.
teampoltergeist/poltergeist#904
teampoltergeist/poltergeist#375
We can possibly fix this by moving to a new headless browser. See this
for a guide: https://engineering.upgrad.com/turn-your-website-testing-painless-with-chrome-and-firefox-headless-92b6f023d375
(Steps 4 and 5 are a very concise couple-of-sentences-worth how-to,
the rest of the article gives good context.)
P.S.
- Extra guide for headless Firefox: https://stackoverflow.com/questions/46576124/not-able-to-run-selenium-with-firefox-capybara-and-docker-in-headless-mode
- Extra guide for headless Chrome: https://robots.thoughtbot.com/headless-feature-specs-with-chrome
|
I'm going to deploy this, since the current issue with the maps API is causing browsers to crash :( |
…cumber convert cucumber to capybara
…cumber convert cucumber to capybara
Context