mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
ec99107a29
Capybara drivers can handle some options such like `url`. ### before ``` # test/test_helper.rb Capybara.register_driver :remote_chrome do |app| Capybara::Selenium::Driver.new(app, browser: :chrome, url: "http://example.com/wd/hub") end # test/application_system_test_case.rb class ApplicationSystemTestCase < ActionDispatch::SystemTestCase driven_by :remote_chrome end ``` ### after ``` # test/application_system_test_case.rb class ApplicationSystemTestCase < ActionDispatch::SystemTestCase driven_by :selenium, using: :chrome, screen_size: [1400, 1400], options: {url: "http://chrome:4444/wd/hub"} end ``` |
||
---|---|---|
.. | ||
driver_test.rb | ||
screenshot_helper_test.rb | ||
server_test.rb | ||
system_test_case_test.rb |