gitlab-org--gitlab-foss/spec/support/mobile_helpers.rb
Jose Ivan Vargas Lopez ae65272bbf Fixed Issuable sidebar so it remains closed on mobile/smaller screen devices
Added test to replicate the bug, also added a couple of helpers that can be reused
on the testing suite to resize the browser window, these helpers are located on the
spec/support/mobile_helpers.rb
2017-01-25 11:53:43 -06:00

13 lines
230 B
Ruby

module MobileHelpers
def resize_screen_sm
resize_window(900, 768)
end
def restore_window_size
resize_window(1366, 768)
end
def resize_window(width, height)
page.driver.resize_window width, height
end
end