very basic system tests
All checks were successful
/ Text (push) Successful in 1m4s
/ Checkout (push) Successful in 1m11s

This commit is contained in:
david 2024-07-23 01:06:45 +02:00
parent 345a932514
commit c31d4266cd
12 changed files with 114 additions and 185 deletions

View file

@ -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