From ae65272bbf6f66162730f373bfa0236c67276c11 Mon Sep 17 00:00:00 2001 From: Jose Ivan Vargas Lopez Date: Mon, 14 Nov 2016 12:56:52 -0600 Subject: 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 --- spec/support/mobile_helpers.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 spec/support/mobile_helpers.rb (limited to 'spec/support') 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 -- cgit v1.2.1