mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-01 05:01:47 +02:00
fix: revert issue rendering for <a>
element (#7171)
- Issue title rendering can lead to nested `<a>` which is incorrect. So revert a portion of forgejo/forgejo#6715. - Integration test adjusted - Resolves forgejo/forgejo#7076 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7171 Reviewed-by: 0ko <0ko@noreply.codeberg.org> Co-authored-by: Gusted <postmaster@gusted.xyz> Co-committed-by: Gusted <postmaster@gusted.xyz>
This commit is contained in:
parent
140b28b60d
commit
9073ca8128
2 changed files with 6 additions and 2 deletions
|
@ -92,7 +92,11 @@ func TestDashboardTitleRendering(t *testing.T) {
|
|||
count := 0
|
||||
htmlDoc.doc.Find("#activity-feed .flex-item-main .title").Each(func(i int, s *goquery.Selection) {
|
||||
count++
|
||||
assert.EqualValues(t, ":exclamation: not rendered", s.Text())
|
||||
if s.IsMatcher(goquery.Single("a")) {
|
||||
assert.EqualValues(t, "❗ not rendered", s.Text())
|
||||
} else {
|
||||
assert.EqualValues(t, ":exclamation: not rendered", s.Text())
|
||||
}
|
||||
})
|
||||
|
||||
assert.EqualValues(t, 6, count)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue