Skip to content

Commit

Permalink
[rb] fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Sep 24, 2023
1 parent 44ac51f commit bf5d592
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rb/spec/integration/selenium/webdriver/action_builder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,10 @@ module WebDriver
iframe = driver.find_element(tag_name: 'iframe')
driver.switch_to.frame(iframe)
checkbox = driver.find_element(name: 'scroll_checkbox')
sleep 0.5
expect(in_viewport?(checkbox)).to be true

expect {
wait.until { in_viewport?(checkbox) }
}.not_to raise_error
end

it 'raises MoveTargetOutOfBoundsError when origin offset is out of viewport',
Expand Down

0 comments on commit bf5d592

Please sign in to comment.