mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-06-26 09:10:45 +00:00
scaffold project header test
This commit is contained in:
parent
231170ea8d
commit
36e696594d
|
@ -69,3 +69,15 @@
|
||||||
type: 2
|
type: 2
|
||||||
created_unix: 1688973000
|
created_unix: 1688973000
|
||||||
updated_unix: 1688973000
|
updated_unix: 1688973000
|
||||||
|
|
||||||
|
-
|
||||||
|
id: 7
|
||||||
|
title: project on org3
|
||||||
|
owner_id: 3
|
||||||
|
repo_id: 0
|
||||||
|
is_closed: false
|
||||||
|
creator_id: 3
|
||||||
|
board_type: 1
|
||||||
|
type: 3
|
||||||
|
created_unix: 1688973000
|
||||||
|
updated_unix: 1688973000
|
||||||
|
|
|
@ -59,3 +59,16 @@ func TestOrgProjectAccess(t *testing.T) {
|
||||||
req = NewRequest(t, "GET", "/org3/-/projects")
|
req = NewRequest(t, "GET", "/org3/-/projects")
|
||||||
session.MakeRequest(t, req, http.StatusNotFound)
|
session.MakeRequest(t, req, http.StatusNotFound)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestOrgProjectHeader(t *testing.T) {
|
||||||
|
defer tests.PrepareTestEnv(t)()
|
||||||
|
|
||||||
|
req := NewRequest(t, "GET", "/org3/-/projects/5")
|
||||||
|
resp := MakeRequest(t, req, http.StatusOK)
|
||||||
|
htmlDoc := NewHTMLParser(t, resp.Body)
|
||||||
|
menu := htmlDoc.Find(".page-content .secondary.menu a")
|
||||||
|
for _, l := range menu.Nodes {
|
||||||
|
t.Log(l.Attr) // check href attribute
|
||||||
|
}
|
||||||
|
t.FailNow()
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue