diff --git a/rb/spec/integration/selenium/webdriver/action_builder_spec.rb b/rb/spec/integration/selenium/webdriver/action_builder_spec.rb index 51b1f36d1ff15..12bf7712c22d5 100644 --- a/rb/spec/integration/selenium/webdriver/action_builder_spec.rb +++ b/rb/spec/integration/selenium/webdriver/action_builder_spec.rb @@ -301,8 +301,9 @@ module WebDriver end end - describe '#scroll_to', only: {browser: %i[chrome edge]} do - it 'scrolls to element' do + describe '#scroll_to', only: {browser: %i[chrome edge firefox]} do + it 'scrolls to element', + except: {browser: :firefox, reason: 'incorrect MoveTargetOutOfBoundsError'} do driver.navigate.to url_for('scrolling_tests/frame_with_nested_scrolling_frame_out_of_view.html') iframe = driver.find_element(tag_name: 'iframe') @@ -314,11 +315,11 @@ module WebDriver end end - describe '#scroll_by', only: {browser: %i[chrome edge]} do - it 'scrolls by given amount' do + describe '#scroll_by', only: {browser: %i[chrome edge firefox]} do + it 'scrolls by given amount', except: {browser: :firefox, reason: 'scrolls insufficient number of pixels'} do driver.navigate.to url_for('scrolling_tests/frame_with_nested_scrolling_frame_out_of_view.html') footer = driver.find_element(tag_name: 'footer') - delta_y = footer.rect.y + delta_y = footer.rect.y.round driver.action.scroll_by(0, delta_y).perform sleep 0.5 @@ -327,8 +328,9 @@ module WebDriver end end - describe '#scroll_from', only: {browser: %i[chrome edge]} do - it 'scrolls from element by given amount' do + describe '#scroll_from', only: {browser: %i[chrome edge firefox]} do + it 'scrolls from element by given amount', + except: {browser: :firefox, reason: 'incorrect MoveTargetOutOfBoundsError'} do driver.navigate.to url_for('scrolling_tests/frame_with_nested_scrolling_frame_out_of_view.html') iframe = driver.find_element(tag_name: 'iframe') scroll_origin = WheelActions::ScrollOrigin.element(iframe) @@ -341,7 +343,8 @@ module WebDriver expect(in_viewport?(checkbox)).to eq true end - it 'scrolls from element by given amount with offset' do + it 'scrolls from element by given amount with offset', + except: {browser: :firefox, reason: 'incorrect MoveTargetOutOfBoundsError'} do driver.navigate.to url_for('scrolling_tests/frame_with_nested_scrolling_frame_out_of_view.html') footer = driver.find_element(tag_name: 'footer') scroll_origin = WheelActions::ScrollOrigin.element(footer, 0, -50) diff --git a/rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb b/rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb index bf66ec6a09864..b638d62aae9e5 100644 --- a/rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb +++ b/rb/spec/integration/selenium/webdriver/spec_support/test_environment.rb @@ -208,6 +208,7 @@ def create_firefox_nightly_driver(**opts) def create_firefox_options(options) options ||= WebDriver::Options.firefox options.web_socket_url = true + options.log_level = 'TRACE' if WebDriver.logger.level == :debug options.add_argument('--headless') if ENV['HEADLESS'] options.binary ||= ENV['FIREFOX_BINARY'] if ENV.key?('FIREFOX_BINARY') options