diff options
author | Earl Warren <contact@earl-warren.org> | 2024-04-25 23:00:11 +0200 |
---|---|---|
committer | Earl Warren <contact@earl-warren.org> | 2024-04-25 23:00:11 +0200 |
commit | 4036448c0251860fbe0d42f58c5757822b4aba1e (patch) | |
tree | fe13b45643631ef2c41c9a4bd49c5166a847fde2 /tests/integration/lfs_view_test.go | |
parent | Merge pull request '[BUG] save empty comments' (#3442) from oliverpool/forgej... (diff) | |
download | forgejo-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.go | 2 |
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") }) } |