Skip to content

Commit

Permalink
[rb] address flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Aug 26, 2023
1 parent 0b16280 commit c41e112
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rb/spec/integration/selenium/webdriver/window_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ module WebDriver

it 'can minimize the window', except: {browser: %i[chrome edge], headless: true} do
window.minimize
expect(driver.execute_script('return document.hidden;')).to be true
expect {
wait.until { driver.execute_script('return document.hidden;') }
}.not_to raise_error
end
end
end # WebDriver
Expand Down

0 comments on commit c41e112

Please sign in to comment.