Skip to content

Commit ebc2888

Browse files
committed
Another problem masked these problems
1 parent fd11726 commit ebc2888

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ services:
1313
- HISTFILE=/app/.bash_history
1414
- SELENIUM_HOST=selenium
1515
- SELENIUM_PORT=4444
16-
- TEST_APP_HOST=shell
16+
- TEST_APP_HOST=web
1717
- TEST_APP_PORT=3001
1818
ports:
1919
- "3000"

demo/test/application_system_test_case.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def remote_selenium? = @remote_selenium ||= ENV["SELENIUM_HOST"].present? || ENV
2424
if remote_selenium?
2525
Capybara.server_host = "0.0.0.0"
2626
Capybara.server_port = ENV.fetch("TEST_APP_PORT", 3001)
27-
Capybara.app_host = "http://#{ENV.fetch('TEST_APP_HOST', 'shell')}:#{ENV.fetch('TEST_APP_PORT', Capybara.server_port)}"
27+
Capybara.app_host = "http://#{ENV.fetch('TEST_APP_HOST', 'web')}:#{ENV.fetch('TEST_APP_PORT', Capybara.server_port)}"
2828
end
2929

3030
Capybara::Screenshot.enabled = true

demo/test/system/bootstrap_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class BootstrapTest < ApplicationSystemTestCase
7171
#{html}
7272
MD
7373
end
74-
augmented_readme.gsub!(/127.0.0.1:\d+/, "test.host")
74+
augmented_readme.gsub!(/(127.0.0.1:\d+|web:3001)/, "test.host")
7575
File.write(File.expand_path("../../../README.md", __dir__), augmented_readme)
7676
end
7777

0 commit comments

Comments
 (0)