diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-13 19:58:55 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-13 19:58:55 +0300 |
commit | 72f6f46e11ba78cb695320af717f771a739099f4 (patch) | |
tree | 58b868f36a922658a563ed3ec89b08c1104778ab /spec/features | |
parent | 33db51f9154f8421dfdc2e07d04684b1c1f404d9 (diff) | |
parent | c928accd954e5812ccc7d2b0887028da554f2ef3 (diff) |
Merge remote-tracking branch 'origin/master' into artifacts-expire-date
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/issues/bulk_assigment_labels_spec.rb | 17 |
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 |