A lot :)
This commit is contained in:
parent
aad67af0d1
commit
63fc206c27
153 changed files with 2043 additions and 646 deletions
|
|
@ -1,14 +1,15 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'test_helper'
|
||||
require "test_helper"
|
||||
|
||||
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
|
||||
driven_by(:selenium, using: :headless_chrome,
|
||||
options: { browser: :remote, url: ENV.fetch('SELENIUM_REMOTE_URL', nil) })
|
||||
options: { browser: :remote,
|
||||
url: ENV.fetch("SELENIUM_REMOTE_URL", nil) })
|
||||
|
||||
def setup
|
||||
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?
|
||||
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?
|
||||
|
||||
super
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue