From 3adb8d527f6300cfea13e8638ff34f720fdae20a Mon Sep 17 00:00:00 2001 From: Larry Reid Date: Fri, 27 Jun 2025 14:24:30 +0000 Subject: [PATCH] Another problem masked these problems --- compose.yml | 2 +- demo/test/application_system_test_case.rb | 2 +- demo/test/system/bootstrap_test.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compose.yml b/compose.yml index b33cd5d5..96657d0b 100644 --- a/compose.yml +++ b/compose.yml @@ -13,7 +13,7 @@ services: - HISTFILE=/app/.bash_history - SELENIUM_HOST=selenium - SELENIUM_PORT=4444 - - TEST_APP_HOST=shell + - TEST_APP_HOST=web - TEST_APP_PORT=3001 ports: - "3000" diff --git a/demo/test/application_system_test_case.rb b/demo/test/application_system_test_case.rb index 7127aabd..0bb93abb 100644 --- a/demo/test/application_system_test_case.rb +++ b/demo/test/application_system_test_case.rb @@ -28,7 +28,7 @@ def remote_selenium? = @remote_selenium ||= ENV["SELENIUM_HOST"].present? || ENV if remote_selenium? Capybara.server_host = "0.0.0.0" Capybara.server_port = ENV.fetch("TEST_APP_PORT", 3001) - Capybara.app_host = "http://#{ENV.fetch('TEST_APP_HOST', 'shell')}:#{ENV.fetch('TEST_APP_PORT', Capybara.server_port)}" + Capybara.app_host = "http://#{ENV.fetch('TEST_APP_HOST', 'web')}:#{ENV.fetch('TEST_APP_PORT', Capybara.server_port)}" end Capybara::Screenshot.enabled = true diff --git a/demo/test/system/bootstrap_test.rb b/demo/test/system/bootstrap_test.rb index c5c0d300..811e0eec 100644 --- a/demo/test/system/bootstrap_test.rb +++ b/demo/test/system/bootstrap_test.rb @@ -74,7 +74,7 @@ class BootstrapTest < ApplicationSystemTestCase #{html} MD end - augmented_readme.gsub!(/(127.0.0.1:\d+|shell:3001)/, "test.host") + augmented_readme.gsub!(/(127.0.0.1:\d+|web:3001)/, "test.host") File.write(File.expand_path("../../../README.md", __dir__), augmented_readme) end