summaryrefslogtreecommitdiff
path: root/spec/features/issues
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-08-31 11:41:16 +0100
committerPhil Hughes <me@iamphill.com>2016-08-31 11:41:16 +0100
commit97d6f5b6ded829d1f7e792c59ae5eb4b2aae7c70 (patch)
tree8260c298f4fd7a1dbe8350dac3d4d5fd8903104e /spec/features/issues
parent4d042afeced540c0acd887714d8ec7c962b7c507 (diff)
downloadgitlab-ce-97d6f5b6ded829d1f7e792c59ae5eb4b2aae7c70.tar.gz
Fixed escaping issue with labels filterlabel-dropdown-encode
Closes #15552
Diffstat (limited to 'spec/features/issues')
-rw-r--r--spec/features/issues/filter_issues_spec.rb10
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