diff options
author | Phil Hughes <me@iamphill.com> | 2016-06-09 12:44:17 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-06-09 19:13:51 +0300 |
commit | d301791c2aa101b68f9b5abda24f20dc24a85830 (patch) | |
tree | 3f130afa40d35140d6e9f41c5e4ba35415c27b53 /spec/features | |
parent | e796555bdb9884a34a5dcef595815594484aac41 (diff) |
Added tests
Diffstat (limited to 'spec/features')
-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 |