Don't rename already specific errors in Safari driver

This commit is contained in:
Thomas Walpole 2019-06-10 17:37:21 -07:00
parent d06378a375
commit a13eaa68e7
2 changed files with 7 additions and 1 deletions

View File

@ -16,7 +16,9 @@ class Capybara::Selenium::SafariNode < Capybara::Selenium::Node
return find_css('th:first-child,td:first-child')[0].click(keys, options)
end
raise
rescue ::Selenium::WebDriver::Error::WebDriverError
rescue ::Selenium::WebDriver::Error::WebDriverError => e
raise unless e.instance_of? ::Selenium::WebDriver::Error::WebDriverError
# Safari doesn't return a specific error here - assume it's an ElementNotInteractableError
raise ::Selenium::WebDriver::Error::ElementNotInteractableError,
'Non distinct error raised in #click, translated to ElementNotInteractableError for retry'

View File

@ -212,6 +212,10 @@ class TestApp < Sinatra::Base
end
end
get '/apple-touch-icon-precomposed.png' do
halt(404)
end
class << self
attr_accessor :form_post_count
end