1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.samplu.common;
17
18 import org.junit.Test;
19
20
21
22
23
24 public abstract class AdminMenuLegacyITBase extends MenuLegacyITBase {
25
26 public static final String CREATE_NEW_LOCATOR = "a[title='Create a new record']";
27 public static final String ADMIN_LOCATOR = "Administration";
28 public static final String LABEL_KUALI_KUALI_SYSTEMS = "KUALI - Kuali Systems";
29 public static final String LABEL_KUALI_DEFAULT = "KUALI : Default";
30
31 @Override
32 protected String getCreateNewLinkLocator() {
33 return CREATE_NEW_LOCATOR;
34 }
35
36 @Override
37 protected String getMenuLinkLocator() {
38 return ADMIN_LOCATOR;
39 }
40
41
42
43
44 public void testCreateNewCancel() throws Exception {
45 gotoCreateNew();
46 waitAndClickByName("methodToCall.cancel");
47 waitAndClickByName("methodToCall.processAnswer.button0");
48 passed();
49 }
50
51
52
53
54 public void testEditCancel() throws Exception {
55 gotoMenuLinkLocator();
56 waitAndClick("input[alt='search']");
57 waitAndClickByLinkText("edit");
58 waitAndClickByName("methodToCall.cancel");
59 waitAndClickByName("methodToCall.processAnswer.button0");
60 passed();
61 }
62 }