diff options
author | Yarden Shoham <git@yardenshoham.com> | 2024-02-17 17:01:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-17 15:01:25 +0000 |
commit | 1d275c1748a75a01c270f5c306c5248808016aba (patch) | |
tree | 42695d0c481d8a50765e10d3dce0f872e17e0471 /tests | |
parent | 0157db84b13203877c098a258abeb387d59f3486 (diff) | |
download | gitea-1d275c1748a75a01c270f5c306c5248808016aba.tar.gz gitea-1d275c1748a75a01c270f5c306c5248808016aba.zip |
Fix labels referencing the wrong ID in the user profile settings (#29199)
2 instances of `for` with a wrong value and 1 `for` that had a reference
to a `name` instead of `id`.
---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/auth_ldap_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/auth_ldap_test.go b/tests/integration/auth_ldap_test.go index 2d69dfcfd7..3a5fdb97a6 100644 --- a/tests/integration/auth_ldap_test.go +++ b/tests/integration/auth_ldap_test.go @@ -179,7 +179,7 @@ func TestLDAPUserSignin(t *testing.T) { assert.Equal(t, u.UserName, htmlDoc.GetInputValueByName("name")) assert.Equal(t, u.FullName, htmlDoc.GetInputValueByName("full_name")) - assert.Equal(t, u.Email, htmlDoc.Find(`label[for="email"]`).Siblings().First().Text()) + assert.Equal(t, u.Email, htmlDoc.Find("#signed-user-email").Text()) } func TestLDAPAuthChange(t *testing.T) { |