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.sampleu.krad.compview; 017 018 import org.kuali.rice.testtools.common.JiraAwareFailable; 019 import org.kuali.rice.testtools.selenium.WebDriverLegacyITBase; 020 021 /** 022 * Tests the Component section in Rice. 023 * 024 * @author Kuali Rice Team (rice.collab@kuali.org) 025 */ 026 public abstract class UifTooltipAftBase extends WebDriverLegacyITBase { 027 028 /** 029 * /kr-krad/uicomponents?viewId=UifCompView&methodToCall=start&pageId=UifCompView-Page10 030 */ 031 public static final String BOOKMARK_URL = "/kr-krad/uicomponents?viewId=UifCompView&methodToCall=start&pageId=UifCompView-Page10"; 032 033 private static final String NAME_FIELD_1 = "field1"; 034 private static final String NAME_FIELD_2 = "field2"; 035 036 @Override 037 protected String getBookmarkUrl() { 038 return BOOKMARK_URL; 039 } 040 041 protected void navigation() throws Exception { 042 waitAndClickKRAD(); 043 waitAndClickByXpath(KITCHEN_SINK_XPATH); 044 switchToWindow(KUALI_UIF_COMPONENTS_WINDOW_XPATH); 045 } 046 047 protected void testUifTooltipNav(JiraAwareFailable failable) throws Exception { 048 navigation(); 049 waitAndClickByLinkText("Other Examples"); 050 testUifTooltip(NAME_FIELD_1, NAME_FIELD_2); 051 passed(); 052 } 053 054 protected void testUifTooltipBookmark(JiraAwareFailable failable) throws Exception { 055 testUifTooltip(NAME_FIELD_1, NAME_FIELD_2); 056 passed(); 057 } 058 }