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=ca4076d5c14224220bc0074ed56c0754bb8248b2;hpb=eebeeee1e9fa524482d5f0029d7a70ce9aedd5e8 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; + } }