1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_dispatch/system_testing
yuuji.yaginuma 2ee4058cc5 Do not take screenshot if driver does not support screenshot
`Capybara::RackTest::Driver` does not support taking screenshots. If call
`#save_screenshot` on `Capybara::RackTest::Driver` will raise the error.

```ruby
Error:
UsersTest#test_visiting_the_index:
Capybara::NotSupportedByDriverError: Capybara::Driver::Base#save_screenshot
```

To prevent errors, if driver does not support screenshot, do not call it.
2017-03-04 17:40:51 +09:00
..
test_helpers Do not take screenshot if driver does not support screenshot 2017-03-04 17:40:51 +09:00
browser.rb Change SystemTestCase.driven_by to use setup/teardown hooks 2017-02-24 13:22:22 -03:00
driver.rb Change SystemTestCase.driven_by to use setup/teardown hooks 2017-02-24 13:22:22 -03:00
server.rb Fix default host in setup, move teardown to helper file 2017-02-20 15:07:35 -05:00