-
Notifications
You must be signed in to change notification settings - Fork 126
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
Use electron in place of phantomjs #4409
Comments
New implementation is up and being tested on the |
I've noticed two things that cause Electron to fail in places where Phantom didn't:
|
All tests are passing locally but continue to have issues in the Travis environment. The good news is that it's at least 25% faster with a lot more room for improvement. |
Travis appears to be tripping over selectors for certain form elements. This isn't happening locally. I'm going to try to debug this in docker. |
Successfully replicated it in docker. Definitely looks like some extra complexity introduced by Edit: Yep. The |
Turns out that using .setValue doesn't trigger the So, I wrote a snippet that uses the arrow keys instead of the mouse. This works fine in xvfb, but not in OSX. 🤦 There are still a couple of other issues I need to tackle, most importantly figuring out what is causing HCA not to validate: https://travis-ci.org/alexose/vets-website/jobs/185638483#L2492-L2524 |
Only one set of problems left at this point, which is the edit screen test in |
Almost there, but I'm still seeing an issue with the accessibility tests. There's also some new work to be done now that #4481 has been merged. |
Not moving over to vets.gov-team as this is captured in master ticket over there and will close it when that closes https://github.com/department-of-veterans-affairs/vets.gov-team/issues/578 |
Done! |
Yaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaay!!!!! 🎉 |
Not only is PhantomJS not being super actively maintained, it is also notably slower than Electron.
It should be pretty straightforward to swap PhantomJS with Electron without having to change the tests much. However, due to subtle differences, we will have to repair some failing tests.
The text was updated successfully, but these errors were encountered: