department-of-veterans-affairs / vets-website

Frontend for VA.gov
Creative Commons Zero v1.0 Universal
241 stars 124 forks source link

Wrap electron binary in order to hide the window for local tests #4857

Closed alexose-gov closed 7 years ago

alexose-gov commented 7 years ago

One bummer about electron: The current version of Chromedriver doesn't allow it to hide (or resize) the viewport.

It is possible to work around this by not calling the electron binary directly, but instead calling a Node wrapper. This is how spectron does it.

(We can also leverage this to get the developer tools working, which would be a nice addition)

alexose-gov commented 7 years ago

Moving to vets.gov-team