aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/repo_test.go
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2019-05-06 21:43:40 +0300
committerGitHub <noreply@github.com>2019-05-06 21:43:40 +0300
commitd9d538c8a170d52128bc18bde23c5f263e31f3df (patch)
treeed9fff43eb74aca728fa85dea037b8a43603c61f /integrations/repo_test.go
parent01ebd52a1fa2a5a71ff6609f04c3338e7e4795d4 (diff)
downloadgitea-d9d538c8a170d52128bc18bde23c5f263e31f3df.tar.gz
gitea-d9d538c8a170d52128bc18bde23c5f263e31f3df.zip
Refactor table width to have more info shown in file list (#6867)
* Refactor table width to have more info shown in file list * Remove unnecesary semicolon * Fix tests for changed html structure
Diffstat (limited to 'integrations/repo_test.go')
-rw-r--r--integrations/repo_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/repo_test.go b/integrations/repo_test.go
index 71ad0d9105..37f163a9fb 100644
--- a/integrations/repo_test.go
+++ b/integrations/repo_test.go
@@ -86,7 +86,7 @@ func TestViewRepoWithSymlinks(t *testing.T) {
resp := session.MakeRequest(t, req, http.StatusOK)
htmlDoc := NewHTMLParser(t, resp.Body)
- files := htmlDoc.doc.Find("#repo-files-table > TBODY > TR > TD.name")
+ files := htmlDoc.doc.Find("#repo-files-table > TBODY > TR > TD.name > SPAN")
items := files.Map(func(i int, s *goquery.Selection) string {
cls, _ := s.Find("SPAN").Attr("class")
file := strings.Trim(s.Find("A").Text(), " \t\n")