mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 08:59:31 -05:00
Merge pull request 'fix(ui): /settings/lfs/find 500 error (take 2)' (#3465) from earl-warren/forgejo:wip-lfs-template into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3465 Reviewed-by: Otto <otto@codeberg.org>
This commit is contained in:
commit
7f187f9857
1 changed files with 1 additions and 1 deletions
|
@ -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