class Rails::Generators::DevcontainerGenerator

def system_test_configuration

def system_test_configuration
  optimize_indentation(<<-'RUBY', 2).chomp
    if ENV["CAPYBARA_SERVER_PORT"]
      served_by host: "rails-app", port: ENV["CAPYBARA_SERVER_PORT"]
      driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ], options: {
        browser: :remote,
        url: "http://#{ENV["SELENIUM_HOST"]}:4444"
      }
    else
      driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ]
    end
  RUBY
end