From 6de54b0de1589d361186e91ec485dfae32a3bb58 Mon Sep 17 00:00:00 2001 From: Alex Rodionov Date: Mon, 6 May 2019 08:33:31 +0600 Subject: [PATCH] Update Ruby tests for Chrome v74 --- .../integration/selenium/webdriver/element_spec.rb | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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