X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=tests%2Fclub%2Fwpia%2Fgigi%2Fpages%2Faccount%2FTestChangePassword.java;h=e18ec02a5ea5be4f108d1423fda46e0a3bc23f99;hp=7a2a6a923f7187f0d7e5bc018f55216713529b4d;hb=eebeeee1e9fa524482d5f0029d7a70ce9aedd5e8;hpb=69db7a1c8242003bde28e9d8c0be20ea3aa5c693 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