]> WPIA git - gigi.git/blob - tests/club/wpia/gigi/testUtils/SEClientTest.java
004f34f476b2b262dc56b56184e8806ca935e0a8
[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.Group;
9 import club.wpia.gigi.pages.admin.support.SupportEnterTicketPage;
10
11 /**
12  * Superclass for testsuites in a scenario where there is a supporter, who is
13  * already logged on.
14  */
15 public abstract class SEClientTest extends ClientTest {
16
17     public SEClientTest() throws IOException, GigiApiException {
18         grant(u, Group.SUPPORTER);
19         cookie = login(email, TEST_PASSWORD);
20         assertEquals(302, post(cookie, SupportEnterTicketPage.PATH, "ticketno=a20140808.8&setTicket=action", 0).getResponseCode());
21     }
22
23 }