Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mobile_helpers.rb « helpers « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9dc1f1de436462a37abc586446f415f07ab33ffb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module MobileHelpers
  def resize_screen_xs
    resize_window(575, 768)
  end

  def resize_screen_sm
    resize_window(767, 768)
  end

  def restore_window_size
    resize_window(1366, 768)
  end

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