BigW Consortium Gitlab

mobile_helpers.rb 313 Bytes
Newer Older
1
module MobileHelpers
2 3 4 5
  def resize_screen_xs
    resize_window(767, 768)
  end

6 7 8 9 10 11 12 13 14
  def resize_screen_sm
    resize_window(900, 768)
  end

  def restore_window_size
    resize_window(1366, 768)
  end

  def resize_window(width, height)
15
    Capybara.current_session.current_window.resize_to(width, height)
16 17
  end
end