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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-10-10 01:08:46 +0300
committerMike Greiling <mike@pixelcog.com>2017-10-10 01:08:46 +0300
commit301204c2a3e663d87809ba2595e7388b5d3463ff (patch)
tree1c80212c122718b96b3bfd62fe5cf181934deb88 /spec/features/boards
parent98b1b3fb87eb3f0f8bd16667266b591e79933ac2 (diff)
resize window when simulating dragging as horizontal scrolling causes issues in tests
Diffstat (limited to 'spec/features/boards')
-rw-r--r--spec/features/boards/boards_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/features/boards/boards_spec.rb b/spec/features/boards/boards_spec.rb
index 9c6c5d3739c..83ea9ee3b8b 100644
--- a/spec/features/boards/boards_spec.rb
+++ b/spec/features/boards/boards_spec.rb
@@ -560,6 +560,9 @@ describe 'Issue Boards', :js do
end
def drag(selector: '.board-list', list_from_index: 0, from_index: 0, to_index: 0, list_to_index: 0)
+ # ensure there is enough horizontal space for four boards
+ page.current_window.resize_to(2000, 800)
+
drag_to(selector: selector,
scrollable: '#board-app',
list_from_index: list_from_index,