Skip to content

Commit

Permalink
try tests again, can't tell what is actually fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Nov 2, 2023
1 parent 5588147 commit db1b88f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 6 additions & 2 deletions rb/spec/integration/selenium/webdriver/action_builder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ module WebDriver
expect(element.attribute(:value)).to eq('Clicked')
end

it 'moves to element with offset' do
it 'moves to element with offset', except: {browser: :firefox,
platform: %i[windows macosx],
reason: 'Some issues with resolution?'} do
driver.navigate.to url_for('javascriptPage.html')
origin = driver.find_element(id: 'keyUpArea')
destination = driver.find_element(id: 'clickField')
Expand Down Expand Up @@ -317,7 +319,9 @@ module WebDriver
end

describe '#scroll_by' do
it 'scrolls by given amount' do
it 'scrolls by given amount', except: {browser: :firefox,
platform: :macosx,
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.round
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ module Firefox
page: {width: 30})).to include(magic_number)
end

it 'prints full page', except: {platform: :windows, reason: 'Some issues with resolution?'} do
it 'prints full page', except: [{platform: :windows,
reason: 'Some issues with resolution?'},
{platform: :macosx,
reason: 'showing half resolution of what expected'}] do
viewport_width = driver.execute_script('return window.innerWidth;')
viewport_height = driver.execute_script('return window.innerHeight;')

Expand Down

0 comments on commit db1b88f

Please sign in to comment.