Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Do not take screenshot if driver does not support screenshot #28264
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.
Can you add a test for this in the screenshot test file? Here's a link to that file https://github.com/rails/rails/blob/master/actionpack/test/dispatch/system_testing/screenshot_helper_test.rb