summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2016-08-31 20:15:47 +0000
committerFatih Acet <acetfatih@gmail.com>2016-08-31 20:15:47 +0000
commitb5a1c9ffa017ca800d156f5fbe0387eb80199ddd (patch)
treeb99601cbcf56427070a84cd9a44fffc9f214660f /spec
parent46b5fc2cf2e0a505b2678e224825d134f7a29e78 (diff)
parent97d6f5b6ded829d1f7e792c59ae5eb4b2aae7c70 (diff)
downloadgitlab-ce-b5a1c9ffa017ca800d156f5fbe0387eb80199ddd.tar.gz
Merge branch 'label-dropdown-encode' into 'master'
Fixed escaping issue with labels filter ## What does this MR do? Encodes label names to stop any JS errors. ## What are the relevant issue numbers? Closes #15552 See merge request !6123
Diffstat (limited to 'spec')
-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