mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-02-23 03:45:47 -05:00
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:
parent
dfcf3f116b
commit
1698210ead
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue