a11yist/test/application_system_test_case.rb

17 lines
510 B
Ruby
Raw Normal View History

2024-07-15 14:31:54 +02:00
# frozen_string_literal: true
2024-09-05 22:54:38 +02:00
require "test_helper"
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
2024-07-23 01:06:45 +02:00
driven_by(:selenium, using: :headless_chrome,
2024-09-05 22:54:38 +02:00
options: { browser: :remote,
url: ENV.fetch("SELENIUM_REMOTE_URL", nil) })
2024-07-23 01:06:45 +02:00
def setup
2024-09-05 22:54:38 +02:00
Capybara.server_host = "0.0.0.0" # bind to all interfaces
Capybara.app_host = "http://#{IPSocket.getaddress(Socket.gethostname)}" if ENV["SELENIUM_REMOTE_URL"].present?
2024-07-23 01:06:45 +02:00
super
end
end