mirror of
https://github.com/go-gitea/gitea.git
synced 2024-05-11 05:55:29 +00:00
Replace more icons with SVG, repo search tweaks (#13860)
* Replace more icons with SVG - Replace remaining icons on admin page with SVG - Fix vertical menu background on arc-green - Minor improvments to frontpage repo search - More icon replacements here and there * fix integration * whitespace tweak * add comment Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
@ -172,14 +172,14 @@ func TestLDAPUserSync(t *testing.T) {
|
||||
assert.Equal(t, u.UserName, strings.TrimSpace(tds.Find("td:nth-child(2) a").Text()))
|
||||
assert.Equal(t, u.Email, strings.TrimSpace(tds.Find("td:nth-child(3) span").Text()))
|
||||
if u.IsAdmin {
|
||||
assert.True(t, tds.Find("td:nth-child(5) i").HasClass("fa-check-square-o"))
|
||||
assert.True(t, tds.Find("td:nth-child(5) svg").HasClass("octicon-check"))
|
||||
} else {
|
||||
assert.True(t, tds.Find("td:nth-child(5) i").HasClass("fa-square-o"))
|
||||
assert.True(t, tds.Find("td:nth-child(5) svg").HasClass("octicon-x"))
|
||||
}
|
||||
if u.IsRestricted {
|
||||
assert.True(t, tds.Find("td:nth-child(6) i").HasClass("fa-check-square-o"))
|
||||
assert.True(t, tds.Find("td:nth-child(6) svg").HasClass("octicon-check"))
|
||||
} else {
|
||||
assert.True(t, tds.Find("td:nth-child(6) i").HasClass("fa-square-o"))
|
||||
assert.True(t, tds.Find("td:nth-child(6) svg").HasClass("octicon-x"))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user