summaryrefslogtreecommitdiff
path: root/spec/features/issues
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-06-10 12:40:54 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2016-06-10 23:55:50 -0500
commit952660d2cf9b2e25b2014d117cce3bf4c93d6818 (patch)
tree96ac28191fd1a140b96ef48ebd7d74a1d8f533fd /spec/features/issues
parentff345f8ba11658c679b423e06bbc42b90af158eb (diff)
downloadgitlab-ce-952660d2cf9b2e25b2014d117cce3bf4c93d6818.tar.gz
Fixes a bug when assigning a label to multiple issuesfix-bulk-assign-labels
Fixes the case when we want to assign a label to multiple issues and one of the issues has already the label we want to apply.
Diffstat (limited to 'spec/features/issues')
-rw-r--r--spec/features/issues/bulk_assigment_labels_spec.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/features/issues/bulk_assigment_labels_spec.rb b/spec/features/issues/bulk_assigment_labels_spec.rb
index c58b87281a3..0fbc2062e39 100644
--- a/spec/features/issues/bulk_assigment_labels_spec.rb
+++ b/spec/features/issues/bulk_assigment_labels_spec.rb
@@ -83,6 +83,23 @@ feature 'Issues > Labels bulk assignment', feature: true do
end
end
+ context 'can assign a label to all issues when label is present' do
+ before do
+ issue2.labels << bug
+ issue2.labels << feature
+ visit namespace_project_issues_path(project.namespace, project)
+
+ check 'check_all_issues'
+ open_labels_dropdown ['bug']
+ update_issues
+ end
+
+ it do
+ expect(find("#issue_#{issue1.id}")).to have_content 'bug'
+ expect(find("#issue_#{issue2.id}")).to have_content 'bug'
+ end
+ end
+
context 'can bulk un-assign' do
context 'all labels to all issues' do
before do