mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-03 08:55:20 +02:00
Update instance title in tests
This commit is contained in:
parent
8e33f82a85
commit
2599737033
6 changed files with 25 additions and 25 deletions
|
@ -189,7 +189,7 @@ func TestInHistoryButton(t *testing.T) {
|
|||
func TestTitleDisplayName(t *testing.T) {
|
||||
session := emptyTestSession(t)
|
||||
title := GetHTMLTitle(t, session, "/")
|
||||
assert.Equal(t, "Gitea: Git with a cup of tea", title)
|
||||
assert.Equal(t, "Forgejo: Beyond coding. We Forge.", title)
|
||||
}
|
||||
|
||||
func TestHomeDisplayName(t *testing.T) {
|
||||
|
@ -197,7 +197,7 @@ func TestHomeDisplayName(t *testing.T) {
|
|||
req := NewRequest(t, "GET", "/")
|
||||
resp := session.MakeRequest(t, req, http.StatusOK)
|
||||
htmlDoc := NewHTMLParser(t, resp.Body)
|
||||
assert.Equal(t, "Gitea: Git with a cup of tea", strings.TrimSpace(htmlDoc.Find("h1.title").Text()))
|
||||
assert.Equal(t, "Forgejo: Beyond coding. We Forge.", strings.TrimSpace(htmlDoc.Find("h1.title").Text()))
|
||||
}
|
||||
|
||||
func TestOpenGraphDisplayName(t *testing.T) {
|
||||
|
@ -206,7 +206,7 @@ func TestOpenGraphDisplayName(t *testing.T) {
|
|||
resp := session.MakeRequest(t, req, http.StatusOK)
|
||||
htmlDoc := NewHTMLParser(t, resp.Body)
|
||||
ogTitle, _ := htmlDoc.Find("meta[property='og:title']").Attr("content")
|
||||
assert.Equal(t, "Gitea: Git with a cup of tea", ogTitle)
|
||||
assert.Equal(t, "Forgejo: Beyond coding. We Forge.", ogTitle)
|
||||
ogSiteName, _ := htmlDoc.Find("meta[property='og:site_name']").Attr("content")
|
||||
assert.Equal(t, "Gitea: Git with a cup of tea", ogSiteName)
|
||||
assert.Equal(t, "Forgejo: Beyond coding. We Forge.", ogSiteName)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue