summaryrefslogtreecommitdiffstats
path: root/integrations/auth_ldap_test.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-10-28 22:33:14 +0000
committerGitHub <noreply@github.com>2020-10-28 22:33:14 +0000
commitbeb6bf4261ace56f9c97c03f709b4fe29746b3d7 (patch)
treed6c9eb6bf74826bd3662c10da43730e9214e7486 /integrations/auth_ldap_test.go
parentb64978d0bc82efd1c99d1200eff8bb592c91142f (diff)
downloadgitea-beb6bf4261ace56f9c97c03f709b4fe29746b3d7.tar.gz
gitea-beb6bf4261ace56f9c97c03f709b4fe29746b3d7.zip
Remove obsolete change of email on profile page (#13341)
* Remove obsolete change of email on profile page The change email on the account profile page is out-of-date and unnecessary. Changing email should be done using the account page. Fix #13336 Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'integrations/auth_ldap_test.go')
-rw-r--r--integrations/auth_ldap_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/auth_ldap_test.go b/integrations/auth_ldap_test.go
index 520a611eab..1569458418 100644
--- a/integrations/auth_ldap_test.go
+++ b/integrations/auth_ldap_test.go
@@ -141,7 +141,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.GetInputValueByName("email"))
+ assert.Equal(t, u.Email, htmlDoc.Find(`label[for="email"]`).Siblings().First().Text())
}
func TestLDAPUserSync(t *testing.T) {