diff options
author | Phil Hughes <me@iamphill.com> | 2017-06-21 10:33:40 +0300 |
---|---|---|
committer | kushalpandya <kushal@gitlab.com> | 2017-06-21 15:27:40 +0300 |
commit | d61450a36372aaf0b3ce242a88a972f69809091d (patch) | |
tree | b2ba4f2231a5bb550e44899d07a575844b878044 /spec/features | |
parent | a6a834fddf769645cd6cae3247e91fde095fc689 (diff) |
Merge branch 'bulk-edit-scroll-fix' into 'master'
Bulk edit scroll fix
Closes #33870
See merge request !12219
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/issues/bulk_assignment_labels_spec.rb | 19 |
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 95b4930cd32..67a098dd6c9 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 login_as 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 |