gitlab-org--gitlab-foss/spec/support/helpers/mobile_helpers.rb
Clement Ho 0d77b9c9ff Merge branch 'master' into 'bootstrap4'
# Conflicts:
#   app/views/projects/jobs/index.html.haml
2018-04-24 00:21:38 +00:00

17 lines
313 B
Ruby

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