1 /*
2 * Copyright 2011 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/ecl1.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
17 package edu.samplu.mainmenu.test;
18
19 import edu.samplu.common.ITUtil;
20 import edu.samplu.common.UpgradedSeleniumITBase;
21 import org.junit.Test;
22
23
24 /**
25 * tests whether the Attribute Definition Look UP is working ok
26 *
27 * @author Kuali Rice Team (rice.collab@kuali.org)
28 */
29 public class AttributeDefinitionLookUpIT extends UpgradedSeleniumITBase{
30 @Override
31 public String getTestUrl() {
32 return ITUtil.PORTAL;
33 }
34
35 @Test
36 public void testAttributeDefinitionLookUp() throws Exception {
37 waitAndClick("link=Attribute Definition Lookup");
38 waitForPageToLoad();
39 selectFrame("iframeportlet");
40 waitAndClick("css=button:contains(earch)");
41 Thread.sleep(3000);
42 waitForPageToLoad();
43 isTextPresent("Actions"); // there are no actions, but the header is the only unique text from searching
44 waitAndClick("link=1000");
45 waitForPageToLoad();
46
47 isTextPresent("Attribute Inquiry");
48 isTextPresent("KRMS Attributes");
49 isTextPresent("Attribute Label");
50 isTextPresent("1000");
51 isTextPresent("peopleFlowId");
52 isTextPresent("KR-RULE");
53 isTextPresent("PeopleFlow");
54 // selectFrame("name=fancybox-frame1343151577256"); // TODO parse source to get name
55 // waitAndClick("css=button:contains(Close)"); // looks lower case, but is upper
56 // Thread.sleep(500);
57 // waitAndClick("css=button:contains(cancel)");
58
59 // AttributeDefinition's don't have actions (yet)
60 // waitAndClick("id=u80");
61 // waitForPageToLoad();
62 // waitAndClick("id=u86");
63 // waitForPageToLoad();
64 // selectWindow("null");
65 // waitAndClick("xpath=(//input[@name='imageField'])[2]");
66 // waitForPageToLoad();
67 }
68 }