DEV: Enable concurrent system tests (#19632)

Currently the `turbo:spec` task will fail when encountering system
tests as Capypara tries to use the same port for each process.

This simple change uses the same strategy as for databases, by just
incrementing the port number by `TEST_ENV_NUMBER` for each process.
This commit is contained in:
Ted Johansson 2022-12-28 10:06:50 +08:00 committed by GitHub
parent 070eac16a8
commit 462e14e279
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ RSpec.configure do |config|
Capybara.configure do |capybara_config|
capybara_config.server_host = "localhost"
capybara_config.server_port = 31337
capybara_config.server_port = 31337 + ENV['TEST_ENV_NUMBER'].to_i
end
chrome_browser_options = Selenium::WebDriver::Chrome::Options.new(