1 /**
2 * Copyright 2005-2013 The Kuali Foundation
3 *
4 * Licensed under the Educational Community License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/ecl2.php
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package edu.samplu.admin.test;
17
18 import edu.samplu.common.NavTemplateMethodSTBase;
19
20 /**
21 * @author Kuali Rice Team (rice.collab@kuali.org)
22 */
23 public abstract class AdminTmplMthdSTNavBase extends NavTemplateMethodSTBase {
24
25 public static final String CREATE_NEW_LOCATOR = "//img[contains(@alt,'create new')]";
26 // public static final String CREATE_NEW_LOCATOR = "//a[contains(@href,'command=initiate')]"; // not with IE8
27 // public static final String CREATE_NEW_LOCATOR = "//a[@title='Create a new record']"; // not with IE8
28 public static final String ADMIN_LOCATOR = "Administration";
29 public static final String LABEL_KUALI_KUALI_SYSTEMS = "KUALI - Kuali Systems";
30 public static final String LABEL_KUALI_DEFAULT = "KUALI : Default";
31
32 @Override
33 protected String getCreateNewLinkLocator() {
34 return CREATE_NEW_LOCATOR;
35 }
36
37 @Override
38 protected String getMenuLinkLocator() {
39 return ADMIN_LOCATOR;
40 }
41
42 /**
43 * tests that a getLinkLocator maintenance document can be cancelled
44 */
45 @Override
46 public void testCreateNewCancel() throws Exception {
47 gotoCreateNew();
48 testCancelConfirmation();
49 }
50
51 /**
52 * tests that a getLinkLocator maintenance document is created for an edit operation originating from a lookup screen
53 */
54 public void testEditCancel() throws Exception {
55 gotoMenuLinkLocator();
56 testSearchEditCancel();
57 }
58 }