Skip to content

Commit

Permalink
Stabilize full screen window tests
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed Mar 2, 2018
1 parent c034c2e commit 12b76c5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rb/spec/integration/selenium/webdriver/window_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ module WebDriver
window.size = old_size = Dimension.new(200, 200)

window.maximize

wait.until { window.size != old_size }

new_size = window.size
Expand All @@ -117,13 +116,12 @@ module WebDriver

# Edge: Not Yet - https://dev.windows.com/en-us/microsoft-edge/platform/status/webdriver/details/
it 'can make window full screen', only: {window_manager: true, browser: [:ie, :firefox]} do
window.maximize
old_size = window.size
window.size = old_size = Dimension.new(200, 200)

window.full_screen
wait.until { window.size != old_size }
new_size = window.size

new_size = window.size
expect(new_size.width).to be > old_size.width
expect(new_size.height).to be > old_size.height
end
Expand Down

0 comments on commit 12b76c5

Please sign in to comment.