From 1698210eadba58dcd32869f24e843f30d140b081 Mon Sep 17 00:00:00 2001 From: Gusted Date: Thu, 30 Jan 2025 08:04:08 +0000 Subject: [PATCH] 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 Reviewed-by: Michael Kriese Co-authored-by: Gusted Co-committed-by: Gusted --- tests/integration/admin_user_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/admin_user_test.go b/tests/integration/admin_user_test.go index eafa713e68..6e0499d949 100644 --- a/tests/integration/admin_user_test.go +++ b/tests/integration/admin_user_test.go @@ -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) {