diff options
author | Phil Hughes <me@iamphill.com> | 2016-08-31 13:41:16 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-08-31 13:41:16 +0300 |
commit | 97d6f5b6ded829d1f7e792c59ae5eb4b2aae7c70 (patch) | |
tree | 8260c298f4fd7a1dbe8350dac3d4d5fd8903104e /spec | |
parent | 4d042afeced540c0acd887714d8ec7c962b7c507 (diff) |
Fixed escaping issue with labels filter
Closes #15552
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/issues/filter_issues_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/features/issues/filter_issues_spec.rb b/spec/features/issues/filter_issues_spec.rb index e262f285868..0e9f814044e 100644 --- a/spec/features/issues/filter_issues_spec.rb +++ b/spec/features/issues/filter_issues_spec.rb @@ -8,6 +8,7 @@ describe 'Filter issues', feature: true do let!(:milestone) { create(:milestone, project: project) } let!(:label) { create(:label, project: project) } let!(:issue1) { create(:issue, project: project) } + let!(:wontfix) { create(:label, project: project, title: "Won't fix") } before do project.team << [user, :master] @@ -107,6 +108,15 @@ describe 'Filter issues', feature: true do end expect(find('.js-label-select .dropdown-toggle-text')).to have_content(label.title) end + + it 'filters by wont fix labels' do + find('.dropdown-menu-labels a', text: label.title).click + page.within '.labels-filter' do + expect(page).to have_content wontfix.title + click_link wontfix.title + end + expect(find('.js-label-select .dropdown-toggle-text')).to have_content(wontfix.title) + end end describe 'Filter issues for assignee and label from issues#index' do |