diff options
author | Jose Ivan Vargas Lopez <jvargas@gitlab.com> | 2016-11-14 12:56:52 -0600 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-01-25 11:53:43 -0600 |
commit | ae65272bbf6f66162730f373bfa0236c67276c11 (patch) | |
tree | c4c82a377ae9c488e4dab39ad64b66c8f166a116 /spec/support | |
parent | b55c1bc4b5fb8d259ba9f264eff607f81012fa39 (diff) | |
download | gitlab-ce-ae65272bbf6f66162730f373bfa0236c67276c11.tar.gz |
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
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/mobile_helpers.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/support/mobile_helpers.rb b/spec/support/mobile_helpers.rb new file mode 100644 index 00000000000..20d5849bcab --- /dev/null +++ b/spec/support/mobile_helpers.rb @@ -0,0 +1,13 @@ +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 |