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.configview;
017
018 import org.kuali.rice.testtools.common.JiraAwareFailable;
019 import org.kuali.rice.testtools.selenium.WebDriverLegacyITBase;
020
021 /**
022 * @author Kuali Rice Team (rice.collab@kuali.org)
023 */
024 public abstract class Help2AftBase extends WebDriverLegacyITBase {
025
026 /**
027 * /kr-krad/configuration-test-view-uif-controller?viewId=ConfigurationTestView-Help&methodToCall=start
028 */
029 public static final String BOOKMARK_URL = "/kr-krad/configuration-test-view-uif-controller?viewId=ConfigurationTestView-Help&methodToCall=start";
030
031 @Override
032 protected String getBookmarkUrl() {
033 return BOOKMARK_URL;
034 }
035
036 protected void navigation() throws Exception {
037 waitAndClickKRAD();
038 waitAndClickByXpath(CONFIGURATION_VIEW_XPATH);
039 switchToWindow(CONFIGURATION_VIEW_WINDOW_TITLE);
040 waitAndClickByLinkText("Help");
041 Thread.sleep(5000);
042 selectFrameIframePortlet();
043 }
044
045 protected void testHelp2Nav(JiraAwareFailable failable) throws Exception {
046 navigation();
047 testViewHelp2();
048 navigation();
049 testExternalHelp2();
050 navigation();
051 testDisplayOnlyExternalHelp2();
052 navigation();
053 testMissingExternalHelp2();
054 passed();
055 }
056
057 protected void testHelp2Bookmark(JiraAwareFailable failable) throws Exception {
058 testViewHelp();
059 testPageHelp();
060 testTooltipHelp();
061 testDisplayOnlyTooltipHelp();
062 testMissingTooltipHelp();
063 passed();
064 }
065 }