@@ -28,7 +28,7 @@ func TestViewRepo(t *testing.T) {
2828 resp := session .MakeRequest (t , req , http .StatusOK )
2929
3030 htmlDoc := NewHTMLParser (t , resp .Body )
31- noDescription := htmlDoc .doc .Find ("# repo-desc " ).Children ()
31+ noDescription := htmlDoc .doc .Find (". repo-description " ).Children ()
3232 repoTopics := htmlDoc .doc .Find ("#repo-topics" ).Children ()
3333 repoSummary := htmlDoc .doc .Find (".repository-summary" ).Children ()
3434
@@ -191,7 +191,7 @@ func TestViewAsRepoAdmin(t *testing.T) {
191191 resp := session .MakeRequest (t , req , http .StatusOK )
192192
193193 htmlDoc := NewHTMLParser (t , resp .Body )
194- noDescription := htmlDoc .doc .Find ("# repo-desc " ).Children ()
194+ noDescription := htmlDoc .doc .Find (". repo-description " ).Children ()
195195 repoTopics := htmlDoc .doc .Find ("#repo-topics" ).Children ()
196196 repoSummary := htmlDoc .doc .Find (".repository-summary" ).Children ()
197197
@@ -211,7 +211,7 @@ func TestViewFileInRepo(t *testing.T) {
211211 resp := session .MakeRequest (t , req , http .StatusOK )
212212
213213 htmlDoc := NewHTMLParser (t , resp .Body )
214- description := htmlDoc .doc .Find ("# repo-desc " )
214+ description := htmlDoc .doc .Find (". repo-description " )
215215 repoTopics := htmlDoc .doc .Find ("#repo-topics" )
216216 repoSummary := htmlDoc .doc .Find (".repository-summary" )
217217
@@ -230,7 +230,7 @@ func TestBlameFileInRepo(t *testing.T) {
230230 resp := session .MakeRequest (t , req , http .StatusOK )
231231
232232 htmlDoc := NewHTMLParser (t , resp .Body )
233- description := htmlDoc .doc .Find ("# repo-desc " )
233+ description := htmlDoc .doc .Find (". repo-description " )
234234 repoTopics := htmlDoc .doc .Find ("#repo-topics" )
235235 repoSummary := htmlDoc .doc .Find (".repository-summary" )
236236
@@ -249,7 +249,7 @@ func TestViewRepoDirectory(t *testing.T) {
249249 resp := session .MakeRequest (t , req , http .StatusOK )
250250
251251 htmlDoc := NewHTMLParser (t , resp .Body )
252- description := htmlDoc .doc .Find ("# repo-desc " )
252+ description := htmlDoc .doc .Find (". repo-description " )
253253 repoTopics := htmlDoc .doc .Find ("#repo-topics" )
254254 repoSummary := htmlDoc .doc .Find (".repository-summary" )
255255
0 commit comments