mattheworiordan / capybara-screenshot

Automatically save screen shots when a Capybara scenario fails
MIT License
1.02k stars 168 forks source link

Very long output string as filename of screenshot output #260

Closed Big-Gray-Al closed 5 years ago

Big-Gray-Al commented 5 years ago

Capybara-Screenshot is giving me a very long (>220 000) string of random characters in the terminal output:

_[Screenshot]: tmp/screenshots/failures_r_spec_examplegroupsspec_name270.png ]1337;File=name=ZmFpbHVyZXNfcl9[+ 200 000 additional characters...]

I tried squelching it by adding the following to

before(:each type: :system) in my support/system.rb

Capybara::Screenshot::RSpec.add_link_to_screenshot_for_failed_examples = false But I am still getting it in my test output. Is this expected behaviour?

Big-Gray-Al commented 5 years ago

resolved this by replacing: gem 'chromedriver-helper'

with

gem 'webdrivers', '~> 3.0'

although if I allow it to go to v4.0 the error comes back