1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test/dispatch/system_testing
Fumiaki MATSUSHIMA ec99107a29 Pass options to driven_by
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
```
2017-03-13 19:59:01 +09:00
..
driver_test.rb Pass options to driven_by 2017-03-13 19:59:01 +09:00
screenshot_helper_test.rb Call system test driver per-instance rather than globally 2017-03-09 10:52:05 -05:00
server_test.rb Fix default host in setup, move teardown to helper file 2017-02-20 15:07:35 -05:00
system_test_case_test.rb Call system test driver per-instance rather than globally 2017-03-09 10:52:05 -05:00