summaryrefslogtreecommitdiff
path: root/spec/features/issues
diff options
context:
space:
mode:
authorBryce Johnson <bryce@gitlab.com>2017-06-21 07:33:39 +0000
committerPhil Hughes <me@iamphill.com>2017-06-21 07:33:39 +0000
commitfbab37f15a33c936ab92d0d523318bf6573bdc0f (patch)
tree59f9e0e287bd0c57e248831ea7a1ee79c07da09e /spec/features/issues
parentb2e1d32e7a74b22b23e8ab052bd29e15bb8a4f1e (diff)
downloadgitlab-ce-fbab37f15a33c936ab92d0d523318bf6573bdc0f.tar.gz
Bulk edit scroll fix
Diffstat (limited to 'spec/features/issues')
-rw-r--r--spec/features/issues/bulk_assignment_labels_spec.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/features/issues/bulk_assignment_labels_spec.rb b/spec/features/issues/bulk_assignment_labels_spec.rb
index 2eb04df3cb3..a99c19cb787 100644
--- a/spec/features/issues/bulk_assignment_labels_spec.rb
+++ b/spec/features/issues/bulk_assignment_labels_spec.rb
@@ -16,6 +16,21 @@ feature 'Issues > Labels bulk assignment', feature: true do
gitlab_sign_in user
end
+ context 'sidebar' do
+ before do
+ enable_bulk_update
+ end
+
+ it 'is present when bulk edit is enabled' do
+ expect(page).to have_css('.issuable-sidebar')
+ end
+
+ it 'is not present when bulk edit is disabled' do
+ disable_bulk_update
+ expect(page).not_to have_css('.issuable-sidebar')
+ end
+ end
+
context 'can bulk assign' do
before do
enable_bulk_update
@@ -398,4 +413,8 @@ feature 'Issues > Labels bulk assignment', feature: true do
visit namespace_project_issues_path(project.namespace, project)
click_button 'Edit Issues'
end
+
+ def disable_bulk_update
+ click_button 'Cancel'
+ end
end