scaffold project header test

This commit is contained in:
oliverpool 2024-03-19 09:05:41 +01:00 committed by hazycora
parent ab3ca7261f
commit 622f53d39f
No known key found for this signature in database
GPG key ID: 215AF1F81F86940E
2 changed files with 25 additions and 0 deletions

View file

@ -69,3 +69,15 @@
type: 2
created_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

View file

@ -59,3 +59,16 @@ func TestOrgProjectAccess(t *testing.T) {
req = NewRequest(t, "GET", "/org3/-/projects")
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()
}