X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=tests%2Fclub%2Fwpia%2Fgigi%2Fpages%2Faccount%2FTestChangePassword.java;h=73d23c56e8e3e99403da209b1d267446787e5c1e;hp=e18ec02a5ea5be4f108d1423fda46e0a3bc23f99;hb=411186b81b18da08eb9139a3239ab9d1e8892991;hpb=c53fe0c99f2b3608d323de170231760370373b73 diff --git a/tests/club/wpia/gigi/pages/account/TestChangePassword.java b/tests/club/wpia/gigi/pages/account/TestChangePassword.java index e18ec02a..73d23c56 100644 --- a/tests/club/wpia/gigi/pages/account/TestChangePassword.java +++ b/tests/club/wpia/gigi/pages/account/TestChangePassword.java @@ -107,4 +107,19 @@ public class TestChangePassword extends ClientTest { } + @Test + public void testChangePasswordCertLogin() throws IOException, GigiApiException { + // no cert login + String np = URLEncoder.encode(TEST_PASSWORD + "v1", "UTF-8"); + String error = executeBasicWebInteraction(cookie, path, "pword1=" + np + "&pword2=" + np); + assertNotNull(error); + + // cert login + cookie = cookieWithCertificateLogin(u); + error = executeBasicWebInteraction(cookie, path, "pword1=" + np + "&pword2=" + np); + assertNull(error); + + cookie = login(u.getEmail(), TEST_PASSWORD); + loginCertificate = null; + } }