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.ITUtil; 020 import edu.samplu.common.UpgradedSeleniumITBase; 021 import org.junit.Test; 022 023 024 /** 025 * tests whether the Attribute Definition Look UP is working ok 026 * 027 * @author Kuali Rice Team (rice.collab@kuali.org) 028 */ 029 public class AttributeDefinitionLookUpIT extends UpgradedSeleniumITBase{ 030 @Override 031 public String getTestUrl() { 032 return ITUtil.PORTAL; 033 } 034 035 @Test 036 public void testAttributeDefinitionLookUp() throws Exception { 037 waitAndClick("link=Attribute Definition Lookup"); 038 waitForPageToLoad(); 039 selectFrame("iframeportlet"); 040 waitAndClick("css=button:contains(earch)"); 041 Thread.sleep(3000); 042 waitForPageToLoad(); 043 isTextPresent("Actions"); // there are no actions, but the header is the only unique text from searching 044 waitAndClick("link=1000"); 045 waitForPageToLoad(); 046 047 isTextPresent("Attribute Inquiry"); 048 isTextPresent("KRMS Attributes"); 049 isTextPresent("Attribute Label"); 050 isTextPresent("1000"); 051 isTextPresent("peopleFlowId"); 052 isTextPresent("KR-RULE"); 053 isTextPresent("PeopleFlow"); 054 // selectFrame("name=fancybox-frame1343151577256"); // TODO parse source to get name 055 // waitAndClick("css=button:contains(Close)"); // looks lower case, but is upper 056 // Thread.sleep(500); 057 // waitAndClick("css=button:contains(cancel)"); 058 059 // AttributeDefinition's don't have actions (yet) 060 // waitAndClick("id=u80"); 061 // waitForPageToLoad(); 062 // waitAndClick("id=u86"); 063 // waitForPageToLoad(); 064 // selectWindow("null"); 065 // waitAndClick("xpath=(//input[@name='imageField'])[2]"); 066 // waitForPageToLoad(); 067 } 068 }