001    /*
002     * Copyright 2006-2012 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.WebDriverLegacyITBase;
019    
020    import junit.framework.Assert;
021    import org.junit.Test;
022    
023    import static com.thoughtworks.selenium.SeleneseTestBase.assertTrue;
024    
025    /**
026     * Selenium test that tests that tooltips are rendered on mouse over and focus events and hidden on
027     * mouse out and blur events
028     * 
029     * @author Kuali Rice Team (rice.collab@kuali.org)
030     */
031    public class UifTooltipWDIT extends WebDriverLegacyITBase {
032        private static final String NAME_FIELD_1 = "field1";
033        private static final String NAME_FIELD_2 = "field2";
034        @Override
035        public String getTestUrl() {
036            // open Other Examples page in kitchen sink view
037            return "/kr-krad/uicomponents?viewId=UifCompView&methodToCall=start&pageId=UifCompView-Page10";
038        }
039    
040        @Test
041        public void testTooltip() throws Exception {
042            super.testUifTooltip(NAME_FIELD_1, NAME_FIELD_2);
043        }
044    }