mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 11:02:46 +08:00
71595647a5
What motivated this change? We are currently working on allowing system tests to be run within a Docker container. While system tests are usually ran in chrome headless mode, it is useful to also be able to run the system tests with chrome in the non-headless mode. However, running a GUI application from within a docker container is not usually recommended and from our research quite difficult. As such, we want to allow running system tests against a remote browser. For example, one can run a `chromedriver` server on localhost and then configure Capybara to connect to the `chromedriver` from within the container. What does this change do? This change adds support for a `CAPYBARA_REMOTE_DRIVER_URL` env variable which will switch Capybara to use the remote driver instead of the `chrome` driver. Currently, we expect the remote driver to be a `chromedriver` server. |
||
---|---|---|
.. | ||
fabricators | ||
fixtures | ||
helpers | ||
import_export | ||
initializers | ||
integration | ||
integrity | ||
jobs | ||
lib | ||
mailers | ||
models | ||
multisite | ||
requests | ||
script/import_scripts | ||
serializers | ||
services | ||
support | ||
system | ||
tasks | ||
views | ||
rails_helper.rb | ||
regenerate_swagger_docs | ||
swagger_helper.rb |