Update Ruby tests for Chrome v74
@@ -27,22 +27,14 @@ module Selenium
driver.find_element(id: 'imageButton').click
end
- it 'should raise wrong error if different element receives click in Chrome', only: {browser: %i[chrome]} do
- driver.navigate.to url_for('click_tests/overlapping_elements.html')
- element_error = 'Other element would receive the click: <div id="over"><\/div>'
- error = /is not clickable at point \(\d+, \d+\)\. #{element_error}/
- expect { driver.find_element(id: 'contents').click }
- .to raise_error(Selenium::WebDriver::Error::UnknownError, error)
- end
-
# Safari returns "click intercepted" error instead of "element click intercepted"
- it 'should raise if different element receives click', except: {browser: %i[chrome safari safari_preview]} do
+ it 'should raise if different element receives click', except: {browser: %i[safari safari_preview]} do
driver.navigate.to url_for('click_tests/overlapping_elements.html')
expect { driver.find_element(id: 'contents').click }.to raise_error(Error::ElementClickInterceptedError)
end
# Safari returns "click intercepted" error instead of "element click intercepted"
- it 'should raise if element is partially covered', except: {browser: %i[chrome safari safari_preview]} do
+ it 'should raise if element is partially covered', except: {browser: %i[safari safari_preview]} do
driver.navigate.to url_for('click_tests/overlapping_elements.html')
expect { driver.find_element(id: 'other_contents').click }.to raise_error(Error::ElementClickInterceptedError)
end
