]> WPIA git - gigi.git/blob - tests/club/wpia/gigi/testUtils/SEClientTest.java
Merge "upd: remove 'browser install'"
[gigi.git] / tests / club / wpia / gigi / testUtils / SEClientTest.java
1 package club.wpia.gigi.testUtils;
2
3 import static org.junit.Assert.*;
4
5 import java.io.IOException;
6
7 import club.wpia.gigi.GigiApiException;
8 import club.wpia.gigi.dbObjects.CATS.CATSType;
9 import club.wpia.gigi.dbObjects.Group;
10 import club.wpia.gigi.pages.admin.support.SupportEnterTicketPage;
11
12 /**
13  * Superclass for testsuites in a scenario where there is a supporter, who is
14  * already logged on.
15  */
16 public abstract class SEClientTest extends ClientTest {
17
18     public SEClientTest() throws IOException, GigiApiException {
19         grant(u, Group.SUPPORTER);
20         addChallenge(u.getId(), CATSType.SUPPORT_DP_CHALLENGE_NAME);
21         cookie = cookieWithCertificateLogin(u);
22         assertEquals(302, post(cookie, SupportEnterTicketPage.PATH, "ticketno=a20140808.8&setTicket=action", 0).getResponseCode());
23     }
24
25 }