-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Build testing: Broken webdriver task #1088
Comments
I found the problem - the #1089 solves the problem. If you have made a pull request and want it to pass the tests, I recommend rebasing off of that branch. Here's what you would do:
That will place the
|
Moving onwards, the whole testing infrastructure should be rethought a bit. I would hope to move to more accurate and consistent automated tests and limit the webdriver tests purely just for parsing (as the rendering should be consistent if the parsed values are the same across browsers). |
Fixed |
There's a bug in the testing process with the
webdriver
task - nobody's pull requests are passing. I've tracked down the problem toinitBrowser
intests/utils.js
- the browser is never initialized (the.init(settings)
promise never resolves). I believe that the selenium server that is needed to perform the tests is not being started.The browser object is created using wd, which explains that:
Starting the selenium server
I've tried installing and running
selenium-standalone
on my machine, and after removingport: 4445
(line 35 ofutils.js
), I got the webdriver test to get a bit further - several browsers pop up on my machine before the test fails.html2canvas
tests using Travis, so I'm guessing this guide is relevant. This would make sense sinceutils.js
uses the environment variablesSAUCE_USERNAME
andSAUCE_ACCESS_KEY
as described in those instructions. Where I'm stuck is where they describe starting a web server, which I believe isn't happening in our tests. Just not sure how to set that up here.It's a shame, I think many/most current PRs are failing just because of this problem!
Related issues/pull requests
#782, #941, #1084, #1085, #1086, #1087
The text was updated successfully, but these errors were encountered: