summaryrefslogtreecommitdiffstats
path: root/integrations/issue_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/issue_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/issue_test.go')
-rw-r--r--integrations/issue_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/integrations/issue_test.go b/integrations/issue_test.go
index 1454d75885..9b1447bd8d 100644
--- a/integrations/issue_test.go
+++ b/integrations/issue_test.go
@@ -139,7 +139,7 @@ func testNewIssue(t *testing.T, session *TestSession, user, repo, title, content
htmlDoc = NewHTMLParser(t, resp.Body)
val := htmlDoc.doc.Find("#issue-title").Text()
assert.Equal(t, title, val)
- val = htmlDoc.doc.Find(".comment-list .comments .comment .render-content p").First().Text()
+ val = htmlDoc.doc.Find(".comment .render-content p").First().Text()
assert.Equal(t, content, val)
return issueURL
@@ -154,7 +154,7 @@ func testIssueAddComment(t *testing.T, session *TestSession, issueURL, content,
link, exists := htmlDoc.doc.Find("#comment-form").Attr("action")
assert.True(t, exists, "The template has changed")
- commentCount := htmlDoc.doc.Find(".comment-list .comments .comment .render-content").Length()
+ commentCount := htmlDoc.doc.Find(".comment-list .comment .render-content").Length()
req = NewRequestWithValues(t, "POST", link, map[string]string{
"_csrf": htmlDoc.GetCSRF(),
@@ -168,10 +168,10 @@ func testIssueAddComment(t *testing.T, session *TestSession, issueURL, content,
htmlDoc = NewHTMLParser(t, resp.Body)
- val := htmlDoc.doc.Find(".comment-list .comments .comment .render-content p").Eq(commentCount).Text()
+ val := htmlDoc.doc.Find(".comment-list .comment .render-content p").Eq(commentCount).Text()
assert.Equal(t, content, val)
- idAttr, has := htmlDoc.doc.Find(".comment-list .comments .comment").Eq(commentCount).Attr("id")
+ idAttr, has := htmlDoc.doc.Find(".comment-list .comment").Eq(commentCount).Attr("id")
idStr := idAttr[strings.LastIndexByte(idAttr, '-')+1:]
assert.True(t, has)
id, err := strconv.Atoi(idStr)
@@ -197,7 +197,7 @@ func TestIssueCommentClose(t *testing.T) {
req := NewRequest(t, "GET", issueURL)
resp := session.MakeRequest(t, req, http.StatusOK)
htmlDoc := NewHTMLParser(t, resp.Body)
- val := htmlDoc.doc.Find(".comment-list .comments .comment .render-content p").First().Text()
+ val := htmlDoc.doc.Find(".comment-list .comment .render-content p").First().Text()
assert.Equal(t, "Description", val)
}