very basic system tests
This commit is contained in:
parent
345a932514
commit
c31d4266cd
12 changed files with 114 additions and 185 deletions
|
|
@ -3,5 +3,13 @@
|
|||
require 'test_helper'
|
||||
|
||||
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
|
||||
driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
|
||||
driven_by(:selenium, using: :headless_chrome,
|
||||
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?
|
||||
|
||||
super
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue