chore: fix ci failure (#6738)

- #6727 added this test and #6726 modified it to also include webauthn
users. The former was not rebased on the latter when it was merged.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6738
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
This commit is contained in:
Gusted 2025-01-30 08:04:08 +00:00 committed by Gusted
parent dfcf3f116b
commit 1698210ead

View file

@ -38,7 +38,8 @@ func TestAdminViewUsers(t *testing.T) {
htmlDoc := NewHTMLParser(t, resp.Body)
// 6th column is the 2FA column.
htmlDoc.AssertElement(t, ".admin-setting-content table tbody tr td:nth-child(6) .octicon-check", true)
// One user that has TOTP and another user that has WebAuthn.
assert.EqualValues(t, 2, htmlDoc.Find(".admin-setting-content table tbody tr td:nth-child(6) .octicon-check").Length())
})
t.Run("Normal user", func(t *testing.T) {