X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=tests%2Fclub%2Fwpia%2Fgigi%2FtestUtils%2FSEClientTest.java;h=32cb1d84f380c2b3913ee86e796b8f2e7d757262;hb=HEAD;hp=004f34f476b2b262dc56b56184e8806ca935e0a8;hpb=8818e81eee23a66ef6c9cc5d056bc25c79234274;p=gigi.git diff --git a/tests/club/wpia/gigi/testUtils/SEClientTest.java b/tests/club/wpia/gigi/testUtils/SEClientTest.java index 004f34f4..32cb1d84 100644 --- a/tests/club/wpia/gigi/testUtils/SEClientTest.java +++ b/tests/club/wpia/gigi/testUtils/SEClientTest.java @@ -5,6 +5,7 @@ import static org.junit.Assert.*; import java.io.IOException; import club.wpia.gigi.GigiApiException; +import club.wpia.gigi.dbObjects.CATS.CATSType; import club.wpia.gigi.dbObjects.Group; import club.wpia.gigi.pages.admin.support.SupportEnterTicketPage; @@ -16,7 +17,8 @@ public abstract class SEClientTest extends ClientTest { public SEClientTest() throws IOException, GigiApiException { grant(u, Group.SUPPORTER); - cookie = login(email, TEST_PASSWORD); + addChallenge(u.getId(), CATSType.SUPPORT_DP_CHALLENGE_NAME); + cookie = cookieWithCertificateLogin(u); assertEquals(302, post(cookie, SupportEnterTicketPage.PATH, "ticketno=a20140808.8&setTicket=action", 0).getResponseCode()); }