lib/capybara/screenshot/diff/stabilization.rb in capybara-screenshot-diff-0.13.1 vs lib/capybara/screenshot/diff/stabilization.rb in capybara-screenshot-diff-0.14.0

- old
+ new

@@ -98,12 +98,10 @@ } return null; JS blurred_input = page.driver.send :unwrap_script_result, active_element end - if Capybara::Screenshot.hide_caret - execute_script("$('*').css('caret-color','transparent')") - end + execute_script("$('*').css('caret-color','transparent')") if Capybara::Screenshot.hide_caret blurred_input end def take_right_size_screenshot(comparison) save_screenshot(comparison.new_file_name)