summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-01-16 16:56:53 -0500
committerPhil Hughes <me@iamphill.com>2017-01-16 16:56:53 -0500
commit2c45a73c8e0b07aec0d688a75beb54ebfd08ac07 (patch)
treeb73ab29c22c5e8299435a083a22188210c24cc64 /spec/features
parent79373bdc5c025f189f3f17162945765a2617e820 (diff)
downloadgitlab-ce-label-select-toggle.tar.gz
Fixed label select toggle not updating correctlylabel-select-toggle
Closes #26119
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/issues/form_spec.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/features/issues/form_spec.rb b/spec/features/issues/form_spec.rb
index 8771cc8e157..741ca95f1ca 100644
--- a/spec/features/issues/form_spec.rb
+++ b/spec/features/issues/form_spec.rb
@@ -68,6 +68,22 @@ describe 'New/edit issue', feature: true, js: true do
end
end
end
+
+ it 'correctly updates the dropdown toggle when removing a label' do
+ click_button 'Labels'
+
+ page.within '.dropdown-menu-labels' do
+ click_link label.title
+ end
+
+ expect(find('.js-label-select')).to have_content(label.title)
+
+ page.within '.dropdown-menu-labels' do
+ click_link label.title
+ end
+
+ expect(find('.js-label-select')).to have_content('Labels')
+ end
end
context 'edit issue' do