001 /* 002 * Copyright 2005-2013 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/ecl2.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 package edu.samplu.krad.compview; 017 018 import edu.samplu.common.ITUtil; 019 import edu.samplu.common.WebDriverLegacyITBase; 020 021 import junit.framework.Assert; 022 import org.junit.Test; 023 024 import static com.thoughtworks.selenium.SeleneseTestBase.assertTrue; 025 026 /** 027 * Selenium test that tests that tooltips are rendered on mouse over and focus events and hidden on 028 * mouse out and blur events 029 * 030 * @author Kuali Rice Team (rice.collab@kuali.org) 031 */ 032 public class UifTooltipNavIT extends WebDriverLegacyITBase { 033 private static final String NAME_FIELD_1 = "field1"; 034 private static final String NAME_FIELD_2 = "field2"; 035 @Override 036 public String getTestUrl() { 037 // open Other Examples page in kitchen sink view 038 return ITUtil.PORTAL; 039 } 040 041 @Test 042 public void testTooltip() throws Exception { 043 waitAndClickKRAD(); 044 waitAndClickByXpath(KITCHEN_SINK_XPATH); 045 switchToWindow(KUALI_UIF_COMPONENTS_WINDOW_XPATH); 046 waitAndClickByLinkText("Other Examples"); 047 super.testUifTooltip(NAME_FIELD_1, NAME_FIELD_2); 048 } 049 }