]> git.openstreetmap.org Git - rails.git/commit
Adapt Selenium to work remotely as well as local.
authorPablo Brasero <pablo@pablobm.com>
Fri, 26 Sep 2025 12:39:19 +0000 (13:39 +0100)
committerPablo Brasero <pablo@pablobm.com>
Tue, 6 Jan 2026 11:39:05 +0000 (11:39 +0000)
commit84d500f18bf83930d11c9627b33a13e63756ee74
tree40a60949c0dae33c171a2c24e0569ec9b9b4d760
parent6a09691c47bb7ea80b3c1a2a420dd565afa270a6
Adapt Selenium to work remotely as well as local.

- Parallelel tests are not working with remote Selenium. For now
  let's detect the environment and disable parallel tests when
  remote.
- When using remote Selenium, the browser doesn't reset properly
  when changing preferences. As a result these are not applied.
  As a workaround, on remote we'll run a Selenium instance per
  different set of settings we need. This is not scalable, but
  for now it should be ok as there are only 3 sets.
- Tell WebMock not to interfere with requests between containers.
.devcontainer/compose.yaml
.devcontainer/devcontainer.json
test/application_system_test_case.rb
test/system/embed_test.rb
test/test_helper.rb