aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/repo_test.go
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-08-26 17:52:44 +0200
committerGitHub <noreply@github.com>2020-08-26 11:52:44 -0400
commit7d14d6c1c13f1eac4b9456c5db4c3594bc4dc237 (patch)
tree7c1b062b9d39d257c8e7968cbe92d19037e86374 /integrations/repo_test.go
parent69b3dd636201d340ab6bdfa49ed95456a4e5acb7 (diff)
downloadgitea-7d14d6c1c13f1eac4b9456c5db4c3594bc4dc237.tar.gz
gitea-7d14d6c1c13f1eac4b9456c5db4c3594bc4dc237.zip
Fix file table overflows (#12603)
- Fix overflow regression from https://github.com/go-gitea/gitea/pull/12553. - Fix submodule columns stretching the table - Refactor template to share more HTML nodes - Introduce CSS helper classes Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
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 3121b5135f..c1652aeb1d 100644
--- a/integrations/repo_test.go
+++ b/integrations/repo_test.go
@@ -148,7 +148,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.truncate")
items := files.Map(func(i int, s *goquery.Selection) string {
cls, _ := s.Find("SVG").Attr("class")
file := strings.Trim(s.Find("A").Text(), " \t\n")