@@ -28,11 +28,9 @@ 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-description" ).Children ()
3231 repoTopics := htmlDoc .doc .Find ("#repo-topics" ).Children ()
3332 repoSummary := htmlDoc .doc .Find (".repository-summary" ).Children ()
3433
35- assert .True (t , noDescription .HasClass ("no-description" ))
3634 assert .True (t , repoTopics .HasClass ("repo-topic" ))
3735 assert .True (t , repoSummary .HasClass ("repository-menu" ))
3836
@@ -177,30 +175,6 @@ func TestViewRepoWithSymlinks(t *testing.T) {
177175 assert .Equal (t , "link_link: svg octicon-file-symlink-file" , items [4 ])
178176}
179177
180- // TestViewAsRepoAdmin tests PR #2167
181- func TestViewAsRepoAdmin (t * testing.T ) {
182- for user , expectedNoDescription := range map [string ]bool {
183- "user2" : true ,
184- "user4" : false ,
185- } {
186- defer tests .PrepareTestEnv (t )()
187-
188- session := loginUser (t , user )
189-
190- req := NewRequest (t , "GET" , "/user2/repo1.git" )
191- resp := session .MakeRequest (t , req , http .StatusOK )
192-
193- htmlDoc := NewHTMLParser (t , resp .Body )
194- noDescription := htmlDoc .doc .Find (".repo-description" ).Children ()
195- repoTopics := htmlDoc .doc .Find ("#repo-topics" ).Children ()
196- repoSummary := htmlDoc .doc .Find (".repository-summary" ).Children ()
197-
198- assert .Equal (t , expectedNoDescription , noDescription .HasClass ("no-description" ))
199- assert .True (t , repoTopics .HasClass ("repo-topic" ))
200- assert .True (t , repoSummary .HasClass ("repository-menu" ))
201- }
202- }
203-
204178// TestViewFileInRepo repo description, topics and summary should not be displayed when viewing a file
205179func TestViewFileInRepo (t * testing.T ) {
206180 defer tests .PrepareTestEnv (t )()
0 commit comments