Closed kieraneglin closed 7 years ago
We were using a custom domain that pointed back to localhost to test subdomains. Adding that domain and subdomains to our hosts file as 127.0.0.1 solved the issue!
Glad to hear you solved it - I was in the middle of answering this, so I'll leave the explanation in place for others that come to this issue.
The only place StatusFailErrors can come from is https://github.com/teampoltergeist/poltergeist/blob/master/lib/capybara/poltergeist/client/browser.coffee#L111
That shows it can come from either timing out while there are open requests (but the second parameter in your log is null
so it's not that), or from the request actually failing. The null
parameter would tend to indicate it is because the request is actually failing.
Oh, and is there a specific reason you're still on Capybara 2.7.1?? That's a pretty old version.
This is literally my first day of work at a new company and I was trying to get everything set up.
So I don't really know why we're using that version of Capybara, but I'll update as soon as I can!
Thanks for the swift reply
Related to #677 and #791. Since both are closed, I'm opening a new discussion.
Problem
When running tests, some will randomly fail. The error is:
Output with
debug: true
:Links redacted for brevity and privacy.
The code it fails on is always
visit <path name>
Versions
url_whitelist: %w(<3rd party> <local testing domain>)
I have to redact the links.Things I've Tried
Other Comments
Some people say it only fails on their first test. For me, it's seemingly random as to what tests fail.
There are no iframes on the pages that fail.