diff --git a/rb/spec/integration/selenium/webdriver/element_spec.rb b/rb/spec/integration/selenium/webdriver/element_spec.rb
index e79050f3eac67..79027303ee2ca 100644
--- a/rb/spec/integration/selenium/webdriver/element_spec.rb
+++ b/rb/spec/integration/selenium/webdriver/element_spec.rb
@@ -27,22 +27,14 @@ module WebDriver
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>'
- 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