X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=tests%2Fclub%2Fwpia%2Fgigi%2Fpages%2Faccount%2FTestChangePassword.java;h=e18ec02a5ea5be4f108d1423fda46e0a3bc23f99;hb=c1f537b51b61e8c7aadd58c0786511ce3e80e92e;hp=7a2a6a923f7187f0d7e5bc018f55216713529b4d;hpb=bccd4cc0dba0f89aa045b113bac46eb8cc1dab4e;p=gigi.git diff --git a/tests/club/wpia/gigi/pages/account/TestChangePassword.java b/tests/club/wpia/gigi/pages/account/TestChangePassword.java index 7a2a6a92..e18ec02a 100644 --- a/tests/club/wpia/gigi/pages/account/TestChangePassword.java +++ b/tests/club/wpia/gigi/pages/account/TestChangePassword.java @@ -5,10 +5,11 @@ import static org.junit.Assert.*; import java.io.IOException; import java.net.URLEncoder; +import org.hamcrest.CoreMatchers; import org.junit.Test; import club.wpia.gigi.GigiApiException; -import club.wpia.gigi.pages.account.ChangePasswordPage; +import club.wpia.gigi.testUtils.ArrayContains; import club.wpia.gigi.testUtils.ClientTest; public class TestChangePassword extends ClientTest { @@ -44,6 +45,9 @@ public class TestChangePassword extends ClientTest { assertTrue(isLoggedin(login(u.getEmail(), TEST_PASSWORD + "v2"))); assertFalse(isLoggedin(login(u.getEmail(), TEST_PASSWORD))); + String[] result = u.getAdminLog(); + assertThat(result, ArrayContains.contains(CoreMatchers.equalTo("User triggered password reset"))); + } @Test