[openstreetmap/openstreetmap-website] Replace PhantomJS (#2544)

Andy Allan notifications at github.com
Wed Feb 19 12:01:15 UTC 2020

We currently use PhantomJS for our system tests. It's a headless webbrowser that supports javascript. The dependency is quite indirect, namely:

System Tests -> Capybara -> Poltergeist -> PhantomJS

PhantomJS last had a release in 2016, and was officially abandoned in 2017. We're starting to feel its age, since the javascript features it supports are falling a long way behind what is now used in browsers.

In recent years, both firefox and chrome have gained support for running in headless mode, which means we could use one or other of them for our tests instead. Additionally, a standard for "driving" these has emerged, known as the webdriver API. This, along with selenium, would replace the poltergeist part as the glue between the testing framework and the browser binary itself. So we would end up with:

System Tests -> Capybara -> Selenium -> (Webdriver API) -> Gecko

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200219/a384ff9e/attachment.htm>

More information about the rails-dev mailing list