summaryrefslogtreecommitdiffstats
path: root/integrations/pull_create_test.go
diff options
context:
space:
mode:
authorSorien <Sorien@users.noreply.github.com>2020-04-11 00:01:41 +0200
committerGitHub <noreply@github.com>2020-04-11 01:01:41 +0300
commitc97e9883801d28ca44b8b7049a4285c8d904eea8 (patch)
tree4477bbe9f8eaec7a5440eb77dbab8916bcbe2981 /integrations/pull_create_test.go
parentbc362ea3c611a94e7920a3cf4691fd108f874ef0 (diff)
downloadgitea-c97e9883801d28ca44b8b7049a4285c8d904eea8.tar.gz
gitea-c97e9883801d28ca44b8b7049a4285c8d904eea8.zip
Prettify Timeline (#10972)
Co-authored-by: mrsdizzie <info@mrsdizzie.com>
Diffstat (limited to 'integrations/pull_create_test.go')
-rw-r--r--integrations/pull_create_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/pull_create_test.go b/integrations/pull_create_test.go
index 639e421e0e..5a0a3eda08 100644
--- a/integrations/pull_create_test.go
+++ b/integrations/pull_create_test.go
@@ -98,10 +98,10 @@ func TestPullCreate_TitleEscape(t *testing.T) {
req = NewRequest(t, "GET", url)
resp = session.MakeRequest(t, req, http.StatusOK)
htmlDoc = NewHTMLParser(t, resp.Body)
- titleHTML, err := htmlDoc.doc.Find(".comments .event .text b").First().Html()
+ titleHTML, err := htmlDoc.doc.Find(".comment-list .timeline-item.event .text b").First().Html()
assert.NoError(t, err)
assert.Equal(t, "<strike>&lt;i&gt;XSS PR&lt;/i&gt;</strike>", titleHTML)
- titleHTML, err = htmlDoc.doc.Find(".comments .event .text b").Next().Html()
+ titleHTML, err = htmlDoc.doc.Find(".comment-list .timeline-item.event .text b").Next().Html()
assert.NoError(t, err)
assert.Equal(t, "&lt;u&gt;XSS PR&lt;/u&gt;", titleHTML)
})