Defect #33846 » test_for_33846.patch
| test/system/inline_autocomplete_test.rb | ||
|---|---|---|
|
page.has_css?('.tribute-container li', minimum: 1)
|
||
|
end
|
||
|
def test_inline_autocomplete_for_issues_should_escape_html_elements
|
||
|
issue = Issue.generate!(subject: 'This issue has a <select> element', project_id: 1, tracker_id: 1)
|
||
|
log_user('jsmith', 'jsmith')
|
||
|
visit 'projects/1/issues/new'
|
||
|
fill_in 'Description', :with => '#This'
|
||
|
within('.tribute-container') do
|
||
|
assert page.has_text? "Bug ##{issue.id}: This issue has a <select> element"
|
||
|
end
|
||
|
end
|
||
|
end
|
||