001 /*
002 * Copyright 2011 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl1.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016
017 package edu.samplu.mainmenu.test;
018
019 import edu.samplu.common.UpgradedSeleniumITBase;
020 import org.junit.Test;
021
022
023 /**
024 * tests whether the Attribute Definition Look UP is working ok
025 *
026 * @author Kuali Rice Team (rice.collab@kuali.org)
027 */
028 public class AttributeDefinitionLookUpIT extends UpgradedSeleniumITBase{
029 @Override
030 public String getTestUrl() {
031 return PORTAL;
032 }
033
034 @Test
035 public void testAttributeDefinitionLookUp() throws Exception {
036 selenium.click("link=Attribute Definition Lookup");
037 selenium.waitForPageToLoad("30000");
038 selenium.selectFrame("iframeportlet");
039 selenium.click("css=button:contains(earch)");
040 Thread.sleep(3000);
041 selenium.waitForPageToLoad("30000");
042 selenium.isTextPresent("Actions"); // there are no actions, but the header is the only unique text from searching
043 selenium.click("link=1000");
044 selenium.waitForPageToLoad("30000");
045
046 selenium.isTextPresent("Attribute Inquiry");
047 selenium.isTextPresent("KRMS Attributes");
048 selenium.isTextPresent("Attribute Label");
049 selenium.isTextPresent("1000");
050 selenium.isTextPresent("peopleFlowId");
051 selenium.isTextPresent("KR-RULE");
052 selenium.isTextPresent("PeopleFlow");
053 // selenium.selectFrame("name=fancybox-frame1343151577256"); // TODO parse source to get name
054 // selenium.click("css=button:contains(Close)"); // looks lower case, but is upper
055 // Thread.sleep(500);
056 // selenium.click("css=button:contains(cancel)");
057
058 // AttributeDefinition's don't have actions (yet)
059 // selenium.click("id=u80");
060 // selenium.waitForPageToLoad("30000");
061 // selenium.click("id=u86");
062 // selenium.waitForPageToLoad("30000");
063 // selenium.selectWindow("null");
064 // selenium.click("xpath=(//input[@name='imageField'])[2]");
065 // selenium.waitForPageToLoad("30000");
066 }
067 }