diff options
author | Jacob Schatz <jschatz@gitlab.com> | 2016-06-10 18:23:39 +0300 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2016-06-10 18:23:39 +0300 |
commit | 7aa67688127a4ff4553ae6f8ff66e9757275ea39 (patch) | |
tree | ff2a6e85f6fa7782c253bcada4af160e83e47d9e /spec | |
parent | 133d5c1c64b9d9265736a8b6277fcd73730c6612 (diff) | |
parent | d301791c2aa101b68f9b5abda24f20dc24a85830 (diff) |
Merge branch 'label-filter-fix' into 'master'
Fixed issue where label filtering didnt work
## What does this MR do?
The filterable option was missing which meant labels in the dropdown couldn't be filtered. This fixes that.
## What are the relevant issue numbers?
Closes #18375
See merge request !4556
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/issues/filter_by_labels_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/features/issues/filter_by_labels_spec.rb b/spec/features/issues/filter_by_labels_spec.rb index 0ec8b6b180a..16c619c9288 100644 --- a/spec/features/issues/filter_by_labels_spec.rb +++ b/spec/features/issues/filter_by_labels_spec.rb @@ -199,4 +199,19 @@ feature 'Issue filtering by Labels', feature: true do end end end + + context 'dropdown filtering', js: true do + it 'should filter by label name' do + page.within '.labels-filter' do + click_button 'Label' + wait_for_ajax + fill_in 'label-name', with: 'bug' + + page.within '.dropdown-content' do + expect(page).not_to have_content 'enhancement' + expect(page).to have_content 'bug' + end + end + end + end end |