Correctly output driven_by
setting for Development Containers
Currently, `ENV["SELENIUM_HOST"]` is evaluated when generating a file. So the result was the following. ``` driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ], options: { browser: :remote, url: "http://:4444" } ``` This PR fixes to output the URL setting just as a string. The after result is the following. ``` driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ], options: { browser: :remote, url: "http://#{ENV["SELENIUM_HOST"]}:4444" } ```
This commit is contained in:
parent
827f4ef15c
commit
44a64ce904
@ -148,7 +148,7 @@ def local_rails_mount
|
||||
end
|
||||
|
||||
def system_test_configuration
|
||||
<<~RUBY
|
||||
<<~'RUBY'
|
||||
if ENV["CAPYBARA_SERVER_PORT"]
|
||||
served_by host: "rails-app", port: ENV["CAPYBARA_SERVER_PORT"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user