mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-25 19:26:09 +01:00
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.
This commit is contained in:
parent
94d7523f83
commit
4036448c02
|
@ -100,6 +100,6 @@ func TestLFSRender(t *testing.T) {
|
||||||
req = NewRequest(t, "GET", lfsFindPath)
|
req = NewRequest(t, "GET", lfsFindPath)
|
||||||
resp = session.MakeRequest(t, req, http.StatusOK)
|
resp = session.MakeRequest(t, req, http.StatusOK)
|
||||||
doc := NewHTMLParser(t, resp.Body).doc
|
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")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue