summaryrefslogtreecommitdiffstats
path: root/tests/integration/lfs_view_test.go
diff options
context:
space:
mode:
authorEarl Warren <contact@earl-warren.org>2024-04-25 23:00:11 +0200
committerEarl Warren <contact@earl-warren.org>2024-04-25 23:00:11 +0200
commit4036448c0251860fbe0d42f58c5757822b4aba1e (patch)
treefe13b45643631ef2c41c9a4bd49c5166a847fde2 /tests/integration/lfs_view_test.go
parentMerge pull request '[BUG] save empty comments' (#3442) from oliverpool/forgej... (diff)
downloadforgejo-4036448c0251860fbe0d42f58c5757822b4aba1e.tar.xz
forgejo-4036448c0251860fbe0d42f58c5757822b4aba1e.zip
fix(ui): /settings/lfs/find 500 error (take 2)
Make the test actually fails on error and not just report failure on the output and succeed.
Diffstat (limited to '')
-rw-r--r--tests/integration/lfs_view_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/lfs_view_test.go b/tests/integration/lfs_view_test.go
index b50c075ccf..9dfcb3e698 100644
--- a/tests/integration/lfs_view_test.go
+++ b/tests/integration/lfs_view_test.go
@@ -100,6 +100,6 @@ func TestLFSRender(t *testing.T) {
req = NewRequest(t, "GET", lfsFindPath)
resp = session.MakeRequest(t, req, http.StatusOK)
doc := NewHTMLParser(t, resp.Body).doc
- assert.Contains(t, doc.Text(), "README.md")
+ assert.Equal(t, 1, doc.Find(`.sha.label[href="/user2/lfs/commit/73cf03db6ece34e12bf91e8853dc58f678f2f82d"]`).Length(), "could not find link to commit")
})
}