Skip to content

Commit

Permalink
Reduce window size in tests to 700x700 for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed Apr 29, 2019
1 parent 1857ae2 commit df40c28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rb/spec/integration/selenium/webdriver/window_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ module WebDriver
end

it 'can maximize the current window', except: {window_manager: false, browser: %i[ie firefox safari]} do
window.size = old_size = Dimension.new(800, 800)
window.size = old_size = Dimension.new(700, 700)

window.maximize
wait.until { window.size != old_size }
Expand All @@ -120,7 +120,7 @@ module WebDriver
# https://github.com/mozilla/geckodriver/issues/1281
it 'can make window full screen', only: {window_manager: true, browser: %i[chrome ie firefox safari_preview]},
exclude: [{driver: :remote, browser: :firefox, platform: :linux}, {browser: :chrome}] do
window.size = old_size = Dimension.new(800, 800)
window.size = old_size = Dimension.new(700, 700)

window.full_screen
wait.until { window.size != old_size }
Expand Down

0 comments on commit df40c28

Please sign in to comment.