mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-27 04:07:08 +00:00
[v10.0/forgejo] fix: revert issue rendering for <a>
element (#7177)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/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 Co-authored-by: Gusted <postmaster@gusted.xyz> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7177 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org> Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
This commit is contained in:
parent
c2158b2a1f
commit
40f1e0b1ff
2 changed files with 6 additions and 2 deletions
|
@ -73,7 +73,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