diff options
author | Fatih Acet <acetfatih@gmail.com> | 2017-01-25 19:54:41 +0000 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2017-01-25 19:54:41 +0000 |
commit | 7ce79f31670f3beaf5b29b06144a34e32b7cc4ec (patch) | |
tree | ceacd7cc3b3a66a67d45f9d4f67ad528db808929 /spec/features/issues | |
parent | 94715834cef03ab5e7bda0bb558a650f39d41e94 (diff) | |
parent | 2c45a73c8e0b07aec0d688a75beb54ebfd08ac07 (diff) | |
download | gitlab-ce-7ce79f31670f3beaf5b29b06144a34e32b7cc4ec.tar.gz |
Merge branch 'label-select-toggle' into 'master'
kamil-test-branch
Fixed label select toggle not updating correctly
Closes #26119
See merge request !8601
Diffstat (limited to 'spec/features/issues')
-rw-r--r-- | spec/features/issues/form_spec.rb | 16 |
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 |