Project

General

Profile

Defect #33846 » test_for_33846.patch

Marius BĂLTEANU, 2020-12-05 18:10

View differences:

test/system/inline_autocomplete_test.rb
129 129

  
130 130
    page.has_css?('.tribute-container li', minimum: 1)
131 131
  end
132

  
133
  def test_inline_autocomplete_for_issues_should_escape_html_elements
134
    issue = Issue.generate!(subject: 'This issue has a <select> element', project_id: 1, tracker_id: 1)
135

  
136
    log_user('jsmith', 'jsmith')
137
    visit 'projects/1/issues/new'
138

  
139
    fill_in 'Description', :with => '#This'
140

  
141
    within('.tribute-container') do
142
      assert page.has_text? "Bug ##{issue.id}: This issue has a <select> element"
143
    end
144
  end
132 145
end
(7-7/8)