@@ -28,11 +28,9 @@ func TestViewRepo(t *testing.T) {
28
28
resp := session .MakeRequest (t , req , http .StatusOK )
29
29
30
30
htmlDoc := NewHTMLParser (t , resp .Body )
31
- noDescription := htmlDoc .doc .Find (".repo-description" ).Children ()
32
31
repoTopics := htmlDoc .doc .Find ("#repo-topics" ).Children ()
33
32
repoSummary := htmlDoc .doc .Find (".repository-summary" ).Children ()
34
33
35
- assert .True (t , noDescription .HasClass ("no-description" ))
36
34
assert .True (t , repoTopics .HasClass ("repo-topic" ))
37
35
assert .True (t , repoSummary .HasClass ("repository-menu" ))
38
36
@@ -177,30 +175,6 @@ func TestViewRepoWithSymlinks(t *testing.T) {
177
175
assert .Equal (t , "link_link: svg octicon-file-symlink-file" , items [4 ])
178
176
}
179
177
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
-
204
178
// TestViewFileInRepo repo description, topics and summary should not be displayed when viewing a file
205
179
func TestViewFileInRepo (t * testing.T ) {
206
180
defer tests .PrepareTestEnv (t )()
0 commit comments