diff --git a/integrations/pull_merge_test.go b/integrations/pull_merge_test.go index 04e68ff3d..b5edb41ee 100644 --- a/integrations/pull_merge_test.go +++ b/integrations/pull_merge_test.go @@ -194,7 +194,7 @@ func TestCantMergeWorkInProgress(t *testing.T) { req := NewRequest(t, "GET", resp.Header().Get("Location")) resp = session.MakeRequest(t, req, http.StatusOK) htmlDoc := NewHTMLParser(t, resp.Body) - text := strings.TrimSpace(htmlDoc.doc.Find(".attached.merge-section.no-header > .text.grey").Last().Text()) + text := strings.TrimSpace(htmlDoc.doc.Find(".merge-section > .item").Last().Text()) assert.NotEmpty(t, text, "Can't find WIP text") // remove from lang diff --git a/integrations/pull_status_test.go b/integrations/pull_status_test.go index 95ed755fb..000278479 100644 --- a/integrations/pull_status_test.go +++ b/integrations/pull_status_test.go @@ -114,7 +114,7 @@ func TestPullCreate_EmptyChangesWithCommits(t *testing.T) { resp := session.MakeRequest(t, req, http.StatusOK) doc := NewHTMLParser(t, resp.Body) - text := strings.TrimSpace(doc.doc.Find(".item.text.green").Text()) - assert.EqualValues(t, "This pull request can be merged automatically.", text) + text := strings.TrimSpace(doc.doc.Find(".merge-section").Text()) + assert.Contains(t, text, "This pull request can be merged automatically.") }) } diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index 6f1898007..77b02f67a 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -91,7 +91,7 @@ {{else if eq .Type 1}}
{{else if eq .Type 2}} {{else if eq .Type 28}}